mirror of https://github.com/requarks/wiki
parent
fec3eff3e7
commit
67bd4acdeb
File diff suppressed because one or more lines are too long
@ -1,15 +1,17 @@
|
|||||||
/* global $ */
|
'use strict'
|
||||||
|
|
||||||
if ($('#page-type-create').length) {
|
import $ from 'jquery'
|
||||||
let pageEntryPath = $('#page-type-create').data('entrypath') // eslint-disable-line no-unused-vars
|
|
||||||
|
|
||||||
// -> Discard
|
module.exports = (alerts, socket) => {
|
||||||
|
if ($('#page-type-create').length) {
|
||||||
|
let pageEntryPath = $('#page-type-create').data('entrypath')
|
||||||
|
|
||||||
$('.btn-create-discard').on('click', (ev) => {
|
// -> Discard
|
||||||
$('#modal-create-discard').toggleClass('is-active')
|
|
||||||
})
|
|
||||||
|
|
||||||
/* eslint-disable spaced-comment */
|
$('.btn-create-discard').on('click', (ev) => {
|
||||||
//=include ../components/editor.js
|
$('#modal-create-discard').toggleClass('is-active')
|
||||||
/* eslint-enable spaced-comment */
|
})
|
||||||
|
|
||||||
|
require('../components/editor.js')(alerts, pageEntryPath, socket)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue