Don't check row on click in textarea
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1495 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
99a643b86e
commit
46396e3ba3
|
@ -73,7 +73,7 @@ function formChecked(el, name) {
|
||||||
function tableClick(event) {
|
function tableClick(event) {
|
||||||
var el = event.target || event.srcElement;
|
var el = event.target || event.srcElement;
|
||||||
while (!/^tr$/i.test(el.tagName)) {
|
while (!/^tr$/i.test(el.tagName)) {
|
||||||
if (/^(table|a|input)$/i.test(el.tagName)) {
|
if (/^(table|a|input|textarea)$/i.test(el.tagName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
el = el.parentNode;
|
el = el.parentNode;
|
||||||
|
@ -120,7 +120,15 @@ function selectAddRow(field) {
|
||||||
field.onchange = function () { };
|
field.onchange = function () { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var selectDblClicked = false;
|
var selectDblClicked = false;
|
||||||
|
|
||||||
|
/** Display edit field
|
||||||
|
* @param HTMLElement
|
||||||
|
* @param MouseEvent
|
||||||
|
* @param boolean display textarea instead of input
|
||||||
|
*/
|
||||||
function selectDblClick(td, event, text) {
|
function selectDblClick(td, event, text) {
|
||||||
selectDblClicked = true;
|
selectDblClicked = true;
|
||||||
var pos = event.rangeOffset;
|
var pos = event.rangeOffset;
|
||||||
|
|
Loading…
Reference in a new issue