Converted all client code to Standard JS compliant
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* global $, Vue, alerts, _, usrData, usrDataName */
|
||||
|
||||
if ($('#page-type-admin-profile').length) {
|
||||
let vueProfile = new Vue({
|
||||
@@ -29,7 +30,9 @@ if ($('#page-type-admin-profile').length) {
|
||||
})
|
||||
} else if ($('#page-type-admin-users').length) {
|
||||
|
||||
// =include ../modals/admin-users-create.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../modals/admin-users-create.js
|
||||
/* eslint-enable spaced-comment */
|
||||
|
||||
} else if ($('#page-type-admin-users-edit').length) {
|
||||
let vueEditUser = new Vue({
|
||||
@@ -92,5 +95,7 @@ if ($('#page-type-admin-profile').length) {
|
||||
}
|
||||
})
|
||||
|
||||
// =include ../modals/admin-users-delete.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../modals/admin-users-delete.js
|
||||
/* eslint-enable spaced-comment */
|
||||
}
|
||||
|
@@ -1,12 +1,15 @@
|
||||
/* global $ */
|
||||
|
||||
if ($('#page-type-create').length) {
|
||||
let pageEntryPath = $('#page-type-create').data('entrypath')
|
||||
let pageEntryPath = $('#page-type-create').data('entrypath') // eslint-disable-line no-unused-vars
|
||||
|
||||
// -> Discard
|
||||
// -> Discard
|
||||
|
||||
$('.btn-create-discard').on('click', (ev) => {
|
||||
$('#modal-create-discard').toggleClass('is-active')
|
||||
})
|
||||
|
||||
// =include ../components/editor.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../components/editor.js
|
||||
/* eslint-enable spaced-comment */
|
||||
}
|
||||
|
@@ -1,12 +1,15 @@
|
||||
/* global $ */
|
||||
|
||||
if ($('#page-type-edit').length) {
|
||||
let pageEntryPath = $('#page-type-edit').data('entrypath')
|
||||
let pageEntryPath = $('#page-type-edit').data('entrypath') // eslint-disable-line no-unused-vars
|
||||
|
||||
// -> Discard
|
||||
// -> Discard
|
||||
|
||||
$('.btn-edit-discard').on('click', (ev) => {
|
||||
$('#modal-edit-discard').toggleClass('is-active')
|
||||
})
|
||||
|
||||
// =include ../components/editor.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../components/editor.js
|
||||
/* eslint-enable spaced-comment */
|
||||
}
|
||||
|
@@ -1,3 +1,4 @@
|
||||
/* global $, ace */
|
||||
|
||||
if ($('#page-type-source').length) {
|
||||
var scEditor = ace.edit('source-display')
|
||||
@@ -9,8 +10,10 @@ if ($('#page-type-source').length) {
|
||||
scEditor.setReadOnly(true)
|
||||
scEditor.renderer.updateFull()
|
||||
|
||||
let currentBasePath = ($('#page-type-source').data('entrypath') !== 'home') ? $('#page-type-source').data('entrypath') : ''
|
||||
let currentBasePath = ($('#page-type-source').data('entrypath') !== 'home') ? $('#page-type-source').data('entrypath') : '' // eslint-disable-line no-unused-vars
|
||||
|
||||
// =include ../modals/create.js
|
||||
// =include ../modals/move.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../modals/create.js
|
||||
//=include ../modals/move.js
|
||||
/* eslint-enable spaced-comment */
|
||||
}
|
||||
|
@@ -1,7 +1,10 @@
|
||||
/* global $ */
|
||||
|
||||
if ($('#page-type-view').length) {
|
||||
let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
|
||||
let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : '' // eslint-disable-line no-unused-vars
|
||||
|
||||
// =include ../modals/create.js
|
||||
// =include ../modals/move.js
|
||||
/* eslint-disable spaced-comment */
|
||||
//=include ../modals/create.js
|
||||
//=include ../modals/move.js
|
||||
/* eslint-enable spaced-comment */
|
||||
}
|
||||
|
Reference in New Issue
Block a user