All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.plugins.grid.celledit.min.js Maven / Gradle / Ivy

'use strict';(function(d){"function"===typeof define&&define.amd?define(["jquery","./grid.base","./jquery.fmatter","./grid.common"],d):"object"===typeof module&&module.exports?module.exports=function(n,z){n||(n=window);void 0===z&&(z="undefined"!==typeof window?require("jquery"):require("jquery")(n));require("./grid.base");require("./jquery.fmatter");require("./grid.common");d(z,n);return z}:d(jQuery)})(function(d){var n=d.jgrid,z=function(){var a=d.makeArray(arguments);a.unshift("");a.unshift("");
a.unshift(this.p);return n.feedback.apply(this,a)},E=function(a,b){var e=this.grid.fbRows;a=null!=e&&e[0].cells.length>b?e[a.rowIndex]:a;return null!=a&&null!=a.cells?d(a.cells[b]):d()},H=function(a,b){var e=a.height();1<=Math.abs(e-b)&&0g.status||304===g.status)&&(0!==g.status||4!==g.readyState)){var k=h.triggerHandler("jqGridAfterSubmitCell",[e,g,B.id,r,q,a,b])||[!0,""];if(!0===k||!0===k[0]&&d.isFunction(f.afterSubmitCell))k=f.afterSubmitCell.call(e,g,B.id,r,q,a,b);null==k||!0===k||!0===k[0]?(h.jqGrid("setCell",t,b,q,!1,!1,!0),y.addClass("dirty-cell"),
C.addClass("edited"),z.call(e,"afterSaveCell",t,r,q,a,b),p.splice(0,1),delete f.editingInfo[t]):(l.call(e,m,k[1],A),h.jqGrid("restoreCell",a,b))}},error:function(c,g,k){h.triggerHandler("jqGridErrorCell",[c,g,k]);d.isFunction(f.errorCell)?f.errorCell.call(e,c,g,k):l.call(e,m,c.status+" : "+c.statusText+"\x3cbr/\x3e"+g,A);h.jqGrid("restoreCell",a,b)}},n.ajaxOptions,f.ajaxCellOptions||{}))}else try{l.call(e,m,g.nourl,A),h.jqGrid("restoreCell",a,b)}catch(G){}if("clientArray"===f.cellsubmit){h.jqGrid("setCell",
t,b,"select"===u.edittype&&"select"!==u.formatter?D.text:q,!1,!1,!0);y.addClass("dirty-cell");C.addClass("edited");z.call(e,"afterSaveCell",t,r,q,a,b);if(f.frozenColumns&&b=d+c&&(g.scrollTop+=a.clientHeight);"vu"===f&&k=g.clientWidth+parseInt(f,10)?g.scrollLeft+=b.clientWidth:a




© 2015 - 2025 Weber Informatics LLC | Privacy Policy