18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
'use strict'
|
|
|
|
import $ from 'jquery'
|
|
|
|
module.exports = (alerts, socket) => {
|
|
if ($('#page-type-create').length) {
|
|
let pageEntryPath = $('#page-type-create').data('entrypath')
|
|
|
|
// -> Discard
|
|
|
|
$('.btn-create-discard').on('click', (ev) => {
|
|
$('#modal-create-discard').toggleClass('is-active')
|
|
})
|
|
|
|
require('../components/editor.js')(alerts, pageEntryPath, socket)
|
|
}
|
|
}
|