mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Link used MySQL version in syntax highlighting
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1269 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
// Adminer specific functions
|
||||
|
||||
function body_load() {
|
||||
function body_load(version) {
|
||||
var jush_root = '../externals/jush/';
|
||||
var script = document.createElement('script');
|
||||
script.src = jush_root + 'jush.js';
|
||||
script.onload = function () {
|
||||
if (window.jush) { // IE runs in case of an error too
|
||||
jush.create_links = ' target="_blank"';
|
||||
jush.urls.sql[0] = 'http://dev.mysql.com/doc/refman/' + version + '/en/$key';
|
||||
jush.urls.sql[0] = jush.urls.sql[0];
|
||||
jush.style(jush_root + 'jush.css');
|
||||
jush.highlight_tag('pre', 0);
|
||||
jush.highlight_tag('code');
|
||||
|
Reference in New Issue
Block a user