mirror of
https://github.com/vrana/adminer.git
synced 2025-08-26 15:54:34 +02:00
Revert Displaying SQL edit form on Ctrl+click on the select query
This commit is contained in:
@@ -13,7 +13,7 @@ function bodyLoad(version) {
|
||||
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 () {
|
||||
@@ -178,30 +178,6 @@ function selectFieldChange(form) {
|
||||
setHtml('noindex', (ok ? '' : '!'));
|
||||
}
|
||||
|
||||
/** Create edit query form
|
||||
* @param MouseEvent
|
||||
* @param HTMLSpanElement
|
||||
* @param string
|
||||
*/
|
||||
function selectEditSql(event, el, label) {
|
||||
var a = parentTag(getTarget(event), 'a');
|
||||
if (!isCtrl(event) || (a && a.href)) {
|
||||
return;
|
||||
}
|
||||
var sql = el.firstChild;
|
||||
var input = document.createElement('input');
|
||||
input.name = 'query';
|
||||
input.value = sql.textContent || sql.innerText;
|
||||
input.style.width = sql.offsetWidth + 'px';
|
||||
el.innerHTML = '';
|
||||
el.appendChild(input);
|
||||
var submit = document.createElement('input');
|
||||
submit.type = 'submit';
|
||||
submit.value = label;
|
||||
el.appendChild(submit);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var added = '.', rowCount;
|
||||
|
Reference in New Issue
Block a user