mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Reintegrate sqlite branch
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1466 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -27,7 +27,7 @@ function cookie(assign, days, params) {
|
||||
function verifyVersion() {
|
||||
cookie('adminer_version=0', 1);
|
||||
var script = document.createElement('script');
|
||||
script.src = 'https://adminer.svn.sourceforge.net/svnroot/adminer/trunk/version.js';
|
||||
script.src = 'https://www.adminer.org/version.php';
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
@@ -83,6 +83,21 @@ function tableClick(event) {
|
||||
el.onclick && el.onclick();
|
||||
}
|
||||
|
||||
/** Set HTML code of an element
|
||||
* @param string
|
||||
* @param string undefined to set parentNode to
|
||||
*/
|
||||
function setHtml(id, html) {
|
||||
var el = document.getElementById(id);
|
||||
if (el) {
|
||||
if (html == undefined) {
|
||||
el.parentNode.innerHTML = ' ';
|
||||
} else {
|
||||
el.innerHTML = html;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Add row in select fieldset
|
||||
|
Reference in New Issue
Block a user