comments and removed unused flag from some old version
This commit is contained in:
+4
-8
@@ -73,6 +73,8 @@ $.ready(function () {
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// populate the form errors box from GET arg ?err=...
|
||||||
|
// (a way to pass errors back from server via redirect)
|
||||||
let errAt = location.search.indexOf('err=')
|
let errAt = location.search.indexOf('err=')
|
||||||
if (errAt !== -1 && qs('.Box.errors')) {
|
if (errAt !== -1 && qs('.Box.errors')) {
|
||||||
let errs = location.search.substr(errAt + 4).split(',')
|
let errs = location.search.substr(errAt + 4).split(',')
|
||||||
@@ -108,18 +110,12 @@ $.ready(function () {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// setup the ajax loader
|
||||||
$._loader = function (vis) {
|
$._loader = function (vis) {
|
||||||
$('#loader').toggleClass('show', vis)
|
$('#loader').toggleClass('show', vis)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reveal content on load
|
||||||
function showPage () {
|
function showPage () {
|
||||||
$('#content').addClass('load')
|
$('#content').addClass('load')
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ready(function () {
|
|
||||||
if (window.noAutoShow !== true) {
|
|
||||||
setTimeout(function () {
|
|
||||||
showPage()
|
|
||||||
}, 1)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
/** Init the terminal sub-module - called from HTML */
|
/** Init the terminal sub-module - called from HTML */
|
||||||
window.termInit = function () {
|
window.termInit = function (labels, theme) {
|
||||||
Conn.init()
|
Conn.init()
|
||||||
Input.init()
|
Input.init()
|
||||||
TermUpl.init()
|
TermUpl.init()
|
||||||
|
Screen.load(labels, theme) // populate labels
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-3
@@ -71,9 +71,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
try {
|
try {
|
||||||
window.noAutoShow = true;
|
termInit('%j:labels_seq%', +'%theme%');
|
||||||
termInit(); // the screen will be loaded via ajax
|
|
||||||
Screen.load('%j:labels_seq%', +'%theme%');
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
<?php if (!DEBUG): ?>
|
<?php if (!DEBUG): ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user