1
0
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:
Jakub Vrana
2011-03-28 12:41:02 +02:00
parent 87888f1048
commit 324b19d281

View File

@@ -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