wikijs-fork/client/js/pages/create.js

18 lines
394 B
JavaScript
Raw Normal View History

'use strict'
import $ from 'jquery'
module.exports = (alerts, socket) => {
if ($('#page-type-create').length) {
let pageEntryPath = $('#page-type-create').data('entrypath')
2016-09-11 02:53:21 +00:00
// -> Discard
$('.btn-create-discard').on('click', (ev) => {
$('#modal-create-discard').toggleClass('is-active')
})
require('../components/editor.js')(alerts, pageEntryPath, socket)
}
2017-02-09 01:52:37 +00:00
}