Standard JS code conversion + fixes
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
|
||||
if($('#page-type-edit').length) {
|
||||
if ($('#page-type-edit').length) {
|
||||
let pageEntryPath = $('#page-type-edit').data('entrypath')
|
||||
|
||||
let pageEntryPath = $('#page-type-edit').data('entrypath');
|
||||
// -> Discard
|
||||
|
||||
//-> Discard
|
||||
$('.btn-edit-discard').on('click', (ev) => {
|
||||
$('#modal-edit-discard').toggleClass('is-active')
|
||||
})
|
||||
|
||||
$('.btn-edit-discard').on('click', (ev) => {
|
||||
$('#modal-edit-discard').toggleClass('is-active');
|
||||
});
|
||||
|
||||
//=include ../components/editor.js
|
||||
|
||||
}
|
||||
// =include ../components/editor.js
|
||||
}
|
||||
|
Reference in New Issue
Block a user