Sha256: c570ab7d3740a4b096844a2b00f17857103140fb4547a56d32e24f103a531401

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

document.addEventListener("DOMContentLoaded", function () {
  const openTrigger = document.querySelectorAll('[data-open-dialog]');
  const closeTrigger = document.querySelectorAll('[data-close-dialog]');
  openTrigger.forEach((open) => {
    open.addEventListener("click", () => {
      var openTriggerData = open.dataset.openDialog
      document.getElementById(openTriggerData).showModal()
    });
  })
  closeTrigger.forEach((close) => {
    close.addEventListener("click", () => {
      var closeTriggerData = close.dataset.closeDialog
      document.getElementById(closeTriggerData).close()
    })
  })
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-11.11.0.pre.alpha.renderer1 app/pb_kits/playbook/pb_dialog/dialogHelper.js
playbook_ui-11.11.0.pre.alpha.dialog1 app/pb_kits/playbook/pb_dialog/dialogHelper.js