Permalink
Browse files

Load jush.css earlier

  • Loading branch information...
1 parent 6ca4082 commit 7363429b5283733b9d95b686927035e5aed328db @vrana committed Jun 29, 2012
Showing with 8 additions and 2 deletions.
  1. +7 −1 adminer/static/editing.js
  2. +1 −1 externals/jush
@@ -7,6 +7,13 @@ var jushRoot = '../externals/jush/'; // global variable to allow simple customiz
*/
function bodyLoad(version) {
if (jushRoot) {
+ // copy of jush.style to load JS and CSS at once
+ var link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = jushRoot + 'jush.css';
+ document.getElementsByTagName('head')[0].appendChild(link);
+
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';
script.onload = function () {
@@ -16,7 +23,6 @@ function bodyLoad(version) {
var pgsql = 'http://www.postgresql.org/docs/' + version + '/static/';
jush.urls.pgsql_pgsqlset = jush.urls.pgsql[0] = pgsql + '$key';
jush.urls.pgsqlset[0] = pgsql + 'runtime-config-$key.html#GUC-$1';
- jush.style(jushRoot + 'jush.css');
if (window.jushLinks) {
jush.custom_links = jushLinks;
}
Submodule jush updated from bc2b8c to 1dbb89

0 comments on commit 7363429

Please sign in to comment.