mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Utilize innerText or textContent in inline edit
This commit is contained in:
@@ -301,7 +301,7 @@ function ajaxForm(form, data) {
|
||||
function selectDblClick(td, event, text) {
|
||||
td.ondblclick = function () { };
|
||||
var pos = event.rangeOffset;
|
||||
var value = (td.firstChild.firstChild ? td.firstChild.firstChild.data : (td.firstChild.alt ? td.firstChild.alt : td.firstChild.data));
|
||||
var value = (td.firstChild.alt ? td.firstChild.alt : (td.textContent ? td.textContent : td.innerText));
|
||||
var input = document.createElement(text ? 'textarea' : 'input');
|
||||
input.style.width = Math.max(td.clientWidth - 14, 20) + 'px'; // 14 = 2 * (td.border + td.padding + input.border)
|
||||
if (text) {
|
||||
|
Reference in New Issue
Block a user