mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Simplify JUSH replacement
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// Adminer specific functions
|
||||
|
||||
var jushRoot = '../externals/jush/'; // global variable to allow simple customization
|
||||
|
||||
/** Load syntax highlighting
|
||||
* @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
|
||||
onpopstate(history);
|
||||
}
|
||||
var jushRoot = '../externals/jush/';
|
||||
if (jushRoot) {
|
||||
var script = document.createElement('script');
|
||||
script.src = jushRoot + 'jush.js';
|
||||
script.onload = function () {
|
||||
@@ -31,6 +33,7 @@ function bodyLoad(version) {
|
||||
};
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
}
|
||||
|
||||
/** Get value of dynamically created form field
|
||||
* @param HTMLFormElement
|
||||
|
Reference in New Issue
Block a user