Skip to content
This repository
Browse code

Unbinding of keydown after an error in the server reponse

  • Loading branch information...
commit fd12fec8c8269976c15b2a35e3dbcee0a4b55085 1 parent cab6109
Tony Tomov authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  js/grid.inlinedit.js
3  js/grid.inlinedit.js
@@ -215,6 +215,7 @@ $.jgrid.extend({
215 215 if(fr >= 0) { $t.p.savedRow.splice(fr,1); }
216 216 if( $.isFunction(o.aftersavefunc) ) { o.aftersavefunc.call($t, rowid,resp); }
217 217 success = true;
  218 + $(ind).unbind("keydown");
218 219 } else {
219 220 $("#lui_"+$t.p.id).show();
220 221 tmp3 = $.extend({},tmp,tmp3);
@@ -244,6 +245,7 @@ $.jgrid.extend({
244 245 if(fr >= 0) { $t.p.savedRow.splice(fr,1); }
245 246 if( $.isFunction(o.aftersavefunc) ) { o.aftersavefunc.call($t, rowid,res); }
246 247 success = true;
  248 + $(ind).unbind("keydown");
247 249 } else {
248 250 if($.isFunction(o.errorfunc) ) {
249 251 o.errorfunc.call($t, rowid, res, stat);
@@ -272,7 +274,6 @@ $.jgrid.extend({
272 274 }
273 275 }, $.jgrid.ajaxOptions, $t.p.ajaxRowOptions || {}));
274 276 }
275   - $(ind).unbind("keydown");
276 277 }
277 278 return success;
278 279 },

0 comments on commit fd12fec

Please sign in to comment.
Something went wrong with that request. Please try again.