Grid edit: hide edit field when we click outside edit cell

This commit is contained in:
Aris Feryanto 2011-07-22 12:00:53 +08:00
parent 7d729361bb
commit 2fd43bafb9

View File

@ -1264,9 +1264,7 @@
$('html').click(function(e) {
// hide edit cell if the click is not from g.cEdit
if ($(e.target).parents().index(g.cEdit) == -1) {
if (g.isCellEditActive) {
g.hideEditCell();
}
g.hideEditCell();
}
});
// add table class