Grid edit: fix bug - alert everytime leave Browse page

This commit is contained in:
Aris Feryanto 2011-07-29 17:01:16 +08:00
parent 1e2f73c6e9
commit 8ae900a3f8

View File

@ -1417,7 +1417,9 @@
g.postEditedCell();
});
$(window).bind('beforeunload', function(e) {
return g.isCellEdited ? g.saveCellWarning : null;
if (g.isCellEdited) {
g.saveCellWarning;
}
});
// add table class