mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Simplify JUSH replacement
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
// Adminer specific functions
|
// Adminer specific functions
|
||||||
|
|
||||||
|
var jushRoot = '../externals/jush/'; // global variable to allow simple customization
|
||||||
|
|
||||||
/** Load syntax highlighting
|
/** Load syntax highlighting
|
||||||
* @param string first three characters of database system version
|
* @param string first three characters of database system version
|
||||||
*/
|
*/
|
||||||
@@ -7,7 +9,7 @@ function bodyLoad(version) {
|
|||||||
if (history.state !== undefined) { // copied from editor/static/editing.js
|
if (history.state !== undefined) { // copied from editor/static/editing.js
|
||||||
onpopstate(history);
|
onpopstate(history);
|
||||||
}
|
}
|
||||||
var jushRoot = '../externals/jush/';
|
if (jushRoot) {
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.src = jushRoot + 'jush.js';
|
script.src = jushRoot + 'jush.js';
|
||||||
script.onload = function () {
|
script.onload = function () {
|
||||||
@@ -31,6 +33,7 @@ function bodyLoad(version) {
|
|||||||
};
|
};
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Get value of dynamically created form field
|
/** Get value of dynamically created form field
|
||||||
* @param HTMLFormElement
|
* @param HTMLFormElement
|
||||||
|
Reference in New Issue
Block a user