1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Utilize location.protocol

This commit is contained in:
Jakub Vrana
2011-02-15 18:11:24 +01:00
parent 15715b32ff
commit e4deeb61ba
5 changed files with 7 additions and 10 deletions

View File

@@ -2,9 +2,8 @@
/** Load syntax highlighting
* @param string first three characters of database system version
* @param string 'http' or 'https' - used after compilation
*/
function bodyLoad(version, protocol) {
function bodyLoad(version) {
var jushRoot = '../externals/jush/';
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';

View File

@@ -23,12 +23,11 @@ function cookie(assign, days) {
}
/** Verify current Adminer version
* @param string 'http' or 'https'
*/
function verifyVersion(protocol) {
function verifyVersion() {
cookie('adminer_version=0', 1);
var script = document.createElement('script');
script.src = protocol + '://www.adminer.org/version.php';
script.src = location.protocol + '//www.adminer.org/version.php';
document.body.appendChild(script);
}