mirror of https://github.com/requarks/wiki
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.
18 lines
394 B
18 lines
394 B
'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)
|
|
}
|
|
}
|