Merge pull request #455 from sosedoff/remote-double-click-on-cell
Remove double click action on cell
This commit is contained in:
commit
e112e21891
File diff suppressed because one or more lines are too long
@ -538,12 +538,6 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
|
|
||||||
/*
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#results td div span.null {
|
#results td div span.null {
|
||||||
|
@ -1189,26 +1189,6 @@ $(document).ready(function() {
|
|||||||
showTableContent(sortColumn, sortOrder);
|
showTableContent(sortColumn, sortOrder);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#results").on("dblclick", "td > div", function() {
|
|
||||||
if ($(this).has("textarea").length > 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var value = unescapeHtml($(this).html());
|
|
||||||
if (!value) { return; }
|
|
||||||
|
|
||||||
var textarea = $("<textarea />").
|
|
||||||
text(value).
|
|
||||||
addClass("form-control").
|
|
||||||
css("width", $(this).css("width"));
|
|
||||||
|
|
||||||
if (value.split("\n").length >= 3) {
|
|
||||||
textarea.css("height", "200px");
|
|
||||||
}
|
|
||||||
|
|
||||||
$(this).html(textarea).css("max-height", "200px");
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#refresh_tables").on("click", function() {
|
$("#refresh_tables").on("click", function() {
|
||||||
loadSchemas();
|
loadSchemas();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user