You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
394 B

  1. 'use strict'
  2. import $ from 'jquery'
  3. module.exports = (alerts, socket) => {
  4. if ($('#page-type-create').length) {
  5. let pageEntryPath = $('#page-type-create').data('entrypath')
  6. // -> Discard
  7. $('.btn-create-discard').on('click', (ev) => {
  8. $('#modal-create-discard').toggleClass('is-active')
  9. })
  10. require('../components/editor.js')(alerts, pageEntryPath, socket)
  11. }
  12. }