Bot-BasicBot-Pluggable-Module-Notes
view release on metacpan or search on metacpan
root/js/jquery.jqGrid.min.js view on Meta::CPAN
/*
* jqGrid 3.6.4 - jQuery Grid
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
* Dual licensed under the MIT and GPL licenses
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Date:2010-02-14
* Modules: grid.base.js; grid.custom.js; grid.common.js; grid.formedit.js; jquery.searchFilter.js; grid.inlinedit.js; grid.celledit.js; jqModal.js; grid.import.js; JsonXml.js; grid.setcolumns.js; grid.postext.js; grid.jqueryui.js;
*/
(function(b){b.jgrid=b.jgrid||{};b.extend(b.jgrid,{htmlDecode:function(f){if(f==" "||f==" "||f.length==1&&f.charCodeAt(0)==160)return"";return!f?f:String(f).replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,'...
h){return k[h]})},getCellIndex:function(f){f=b(f);f=(!f.is("td")&&!f.is("th")?f.closest("td,th"):f)[0];if(b.browser.msie)return b.inArray(f,f.parentNode.cells);return f.cellIndex},stripHtml:function(f){f+="";var k=/<("[^"]*"|'[^']*'|[^'">])*>/gi;if(f...
k.loadXML(f)}return k&&k.documentElement&&k.documentElement.tagName!="parsererror"?k:null},parse:function(f){f=f;if(f.substr(0,9)=="while(1);")f=f.substr(9);if(f.substr(0,2)=="/*")f=f.substr(2,f.length-4);f||(f="{}");f=b.jgrid.useJSON===true&&typeof ...
ajaxOptions:{},extend:function(f){b.extend(b.fn.jqGrid,f);this.no_legacy_api||b.fn.extend(f)}});b.fn.jqGrid=function(f){if(typeof f=="string"){var k=b.fn.jqGrid[f];if(!k)throw"jqGrid - No such method: "+f;var i=b.makeArray(arguments).slice(1);return ...
altRows:false,selarrrow:[],savedRow:[],shrinkToFit:true,xmlReader:{},jsonReader:{},subGrid:false,subGridModel:[],reccount:0,lastpage:0,lastsort:0,selrow:null,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null...
caption:"",hidegrid:true,hiddengrid:false,postData:{},userData:{},treeGrid:false,treeGridModel:"nested",treeReader:{},treeANode:-1,ExpandColumn:null,tree_root_level:0,prmNames:{page:"page",rows:"rows",sort:"sidx",order:"sord",search:"_search",nd:"nd"...
scrollOffset:18,cellLayout:5,subGridWidth:20,multiselectWidth:20,gridview:false,rownumWidth:25,rownumbers:false,pagerpos:"center",recordpos:"right",footerrow:false,userDataOnFooter:false,hoverrows:true,altclass:"ui-priority-secondary",viewsortcols:[f...
this.hDiv.style.cursor="col-resize";this.curGbox=b("#rs_m"+h.id,"#gbox_"+h.id);this.curGbox.css({display:"block",left:e[0],top:e[1],height:e[2]});b.isFunction(h.resizeStart)&&h.resizeStart.call(this,d,c);document.onselectstart=new Function("return fa...
h.nv];d=h.direction==="ltr"?l.width-d:l.width+d;if(d>33){c.newWidth=e;l.newWidth=d}}else{this.newWidth=h.direction==="ltr"?h.tblwidth+d:h.tblwidth-d;c.newWidth=e}}}},dragEnd:function(){this.hDiv.style.cursor="default";if(this.resizing){var c=this.res...
d+"px";if(this.footers.length>0)this.footers[c].style.width=d+"px";if(h.forceFit===true){d=this.headers[c+h.nv].newWidth||this.headers[c+h.nv].width;this.headers[c+h.nv].width=d;this.headers[c+h.nv].el.style.width=d+"px";if(this.cols.length>0)this.co...
h.tblwidth+"px");this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(h.footerrow){b("table:first",this.sDiv).css("width",h.tblwidth+"px");this.sDiv.scrollLeft=this.bDiv.scrollLeft}}b.isFunction(h.resizeStop)&&h.resizeStop.call(this,d,c)}this.curGbox=null;do...
e;var l=h.rowNum,n=g.scrollTop=g.bDiv.scrollTop,s=Math.round(d.position().top)-n,p=s+d.height();e=e*l;var w,r,o;if(s<=0&&p<c&&(h.lastpage==null||parseInt((p+n+e-1)/e,10)<h.lastpage)){r=parseInt((c-p+e-1)/e,10);if(p>=0||r<2||h.scroll===true){w=Math.ro...
scrollGrid:function(){if(h.scroll){var c=g.bDiv.scrollTop;if(c!=g.scrollTop){g.scrollTop=c;g.timer&&clearTimeout(g.timer);g.timer=setTimeout(g.populateVisible,200)}}g.hDiv.scrollLeft=g.bDiv.scrollLeft;if(h.footerrow)g.sDiv.scrollLeft=g.bDiv.scrollLef...
e&&b(c).jqGrid("setSelection",l[p],false);e&&b(c).jqGrid("setSelection",e,false);c.grid.bDiv.scrollLeft=n;if(d.gridComplete=s)s()}}};this.p=h;var j,m,a;if(this.p.colNames.length===0)for(j=0;j<this.p.colModel.length;j++)this.p.colNames[j]=this.p.colMo...
if(b.inArray(a.p.direction,["ltr","rtl"])==-1)a.p.direction="ltr";m=a.p.direction;b(q).insertBefore(this);b(this).appendTo(q).removeClass("scroll");var K=b("<div class='ui-jqgrid ui-widget ui-widget-content ui-corner-all'></div>");b(K).insertBefore(q...
this.id+"'></div>").append(u).insertBefore(q);b("<div class='loading ui-state-default ui-state-active' id='load_"+this.id+"'>"+this.p.loadtext+"</div>").insertBefore(q);b(this).attr({cellSpacing:"0",cellPadding:"0",border:"0",role:"grid","aria-multis...
true)l+="display:none;";if(d===0)l+="width: "+g.headers[c].width+"px;";return l+'"'+(n!==undefined?' class="'+n+'"':"")},S=function(c,d,e,l,n){c=M(c,d,e,n,"add");return'<td role="gridcell" '+F(e,l)+' title="'+b.jgrid.stripHtml(c)+'">'+c+"</td>"},M=fu...
undefined||c===null||c===""?" ":a.p.autoencode?b.jgrid.htmlEncode(c):c+""},ia=function(c,d,e){c='<input type="checkbox" id="jqg_'+c+'" class="cbox" name="jqg_'+c+'"/>';return"<td role='gridcell' "+F(d,e)+">"+c+"</td>"},aa=function(c,d,e,l){e=(pa...
"rn"){e[l]=c=="xml"?d.xmlmap||d.name:d.jsonmap||d.name;l++}}return e},pa=function(c){var d=a.p.remapColumns;if(!d||!d.length)d=b.map(a.p.colModel,function(e,l){return l});if(c)d=b.map(d,function(e){return e<c?null:e-c});return d},$=function(c,d){var ...
0}},T=function(c,d){var e,l,n;e=c[d];if(e===undefined){if(typeof d==="string")n=d.split(".");try{if(n.length)for(e=c;e&&n.length;){l=n.shift();e=e[l]}}catch(s){}}return e},qa=function(c,d,e,l,n){var s=new Date;a.p.reccount=0;if(b.isXMLDoc(c)){if(a.p....
if(L.length>0&&!isNaN(D)){if(a.p.remapColumns&&a.p.remapColumns.length)D=b.inArray(D,a.p.remapColumns);D=L[D]}N=(D+"").indexOf("[")===-1?L.length?function(W,U){return b(D,W).text()||U}:function(W,U){return b(a.p.xmlReader.cell,W).eq(D).text()||U}:fun...
1});b(a.p.xmlReader.records,c).each(function(){a.p.records=this.textContent||this.text||0});b(a.p.xmlReader.userdata,c).each(function(){a.p.userData[this.getAttribute("name")]=this.textContent||this.text});c=b(a.p.xmlReader.root+" "+a.p.xmlReader.row...
a.p.direction+""+p+'">';if(a.p.rownumbers===true){C[Q++]=aa(0,O,a.p.page,a.p.rowNum);z=1}if(a.p.multiselect===true){C[Q++]=ia(V,z,O);v=1}if(a.p.subGrid===true){C[Q++]=b(a).jqGrid("addSubGridCell",v+z,O+e);x=1}if(a.p.xmlReader.repeatitems){P||(P=pa(v+...
r;C[Q++]=S(V,r,p+v+x+z,O+e,E)}C[Q++]="</tr>";if(a.p.gridview===false){if(a.p.treeGrid===true){p=a.p.treeANode>=-1?a.p.treeANode:0;o=b(C.join(""))[0];try{b(a).jqGrid("setTreeNode",G,o)}catch(Ga){}ba===0?b("tbody:first",d).append(o):b(a.rows[O+p+e]).af...
d).append(C.join(""));a.p.totaltime=new Date-s;if(w>0){a.grid.cols=a.rows[0].cells;if(a.p.records===0)a.p.records=ea}C=null;if(!a.p.treeGrid&&!a.p.scroll)a.grid.bDiv.scrollTop=0;a.p.reccount=w;a.p.treeANode=-1;a.p.userDataOnFooter&&b(a).jqGrid("foote...
a.p.altRows===true?" "+a.p.altclass:"";a.p.page=T(c,a.p.jsonReader.page)||1;G=T(c,a.p.jsonReader.total);a.p.lastpage=G===undefined?1:G;a.p.records=T(c,a.p.jsonReader.records)||0;a.p.userData=T(c,a.p.jsonReader.userdata)||{};a.p.jsonReader.repeatitems...
10),ea=a.p.scroll?(parseInt(a.p.page,10)-1)*da+1:1;if(n)da*=n+1;for(var O=b.isFunction(a.p.afterInsertRow);c<L;){n=P[c];C=n[G];if(C===undefined){C=ea+c;if(v.length===0)if(a.p.jsonReader.cell)C=n[a.p.jsonReader.cell][G]||C}w=e==0?0:e+1;w=(w+c)%2==1?Q:...
z+N,c+e);D=1}if(a.p.jsonReader.repeatitems){if(a.p.jsonReader.cell)n=T(n,a.p.jsonReader.cell);x||(x=pa(z+D+N))}for(r=0;r<x.length;r++){w=T(n,x[r]);o[E++]=S(C,w,r+z+D+N,c+e,n);ba[a.p.colModel[r+z+D+N].name]=w}o[E++]="</tr>";if(a.p.gridview===false){if...
a.rows[a.rows.length-1],z+N)}catch(wa){}O&&a.p.afterInsertRow.call(a,C,ba,n);o=[];E=0}ba={};p++;c++;if(p==da)break}a.p.gridview===true&&b("tbody:first",d).append(o.join(""));a.p.totaltime=new Date-s;if(p>0){a.grid.cols=a.rows[0].cells;if(a.p.records=...
10)-1)*parseInt(a.p.rowNum,10);p=n+a.p.reccount;if(a.p.scroll){e=b("tbody:first > tr",a.grid.bDiv);n=p-e.length;if(l=e.outerHeight()){e=n*l;l=parseInt(a.p.records,10)*l;b(">div:first",a.grid.bDiv).css({height:l}).children("div:first").css({height:e,d...
1);b(".selbox",o).attr("disabled",false)}if(a.p.pginput===true){b(".ui-pg-input",o).val(a.p.page);b("#sp_1",o).html(b.fmatter?b.fmatter.util.NumberFormat(a.p.lastpage,r):a.p.lastpage)}if(a.p.viewrecords)if(a.p.reccount===0)b(".ui-paging-info",o).html...
0)e=l=1;if(e==1){b("#first, #prev",a.p.pager).addClass("ui-state-disabled").removeClass("ui-state-hover");a.p.toppager&&b("#first_t, #prev_t",a.p.toppager).addClass("ui-state-disabled").removeClass("ui-state-hover")}else{b("#first, #prev",a.p.pager)....
a.p.pager).removeClass("ui-state-disabled");a.p.toppager&&b("#next_t, #last_t",a.p.toppager).removeClass("ui-state-disabled")}}}c===true&&a.p.rownumbers===true&&b("td.jqgrid-rownum",a.rows).each(function(v){b(this).html(n+1+v)});d&&a.p.jqgdnd&&b(a).j...
if(n.rows!==null)e[n.rows]=a.p.rowNum;if(n.page!==null)e[n.page]=a.p.page;if(n.sort!==null)e[n.sort]=a.p.sortname;if(n.order!==null)e[n.order]=a.p.sortorder;var s=a.p.loadComplete,p=b.isFunction(s);p||(s=null);var w=0;c=c||1;if(c>1)if(n.npage!=null){...
a.p.postData,"load_"+a.p.id);else{b.isFunction(a.p.beforeRequest)&&a.p.beforeRequest.call(a);l=a.p.datatype.toLowerCase();switch(l){case "json":case "jsonp":case "xml":case "script":b.ajax(b.extend({url:a.p.url,type:a.p.mtype,dataType:l,data:b.isFunc...
r,c>1,w);s&&s.call(a,o);d&&a.grid.populateVisible()}fa()},error:function(o,v,x){b.isFunction(a.p.loadError)&&a.p.loadError.call(a,o,v,x);fa()},beforeSend:function(o){ma();b.isFunction(a.p.loadBeforeSend)&&a.p.loadBeforeSend.call(a,o)}},b.jgrid.ajaxOp...
e=typeof a.p.datastr=="string"?b.jgrid.parse(a.p.datastr):a.p.datastr;p&&a.p.loadComplete.call(a,e);ra(e,a.grid.bDiv);a.p.datatype="local";a.p.datastr=null;fa();break;case "local":case "clientside":ma();a.p.datatype="local";p&&a.p.loadComplete.call(a...
fa=function(){a.grid.hDiv.loading=false;switch(a.p.loadui){case "disable":break;case "enable":b("#load_"+a.p.id).hide();break;case "block":b("#lui_"+a.p.id).hide();b("#load_"+a.p.id).hide();break}},Ba=function(){var c=/[\$,%]/g,d=[],e=0,l,n,s,p=a.p.s...
0:r}:l=="int"||l=="integer"?function(r){return J(r.replace(c,""),0)}:l=="date"||l=="datetime"?function(r){return Ca(a.p.colModel[e].datefmt||"Y-m-d",r).getTime()}:function(r){return b.trim(r.toUpperCase())};b.each(a.rows,function(r,o){try{n=b.unforma...
o.sortKey)return p;return 0});if(d[0]){b("td",d[0]).each(function(r){b(this).css("width",g.headers[r].width+"px")});a.grid.cols=d[0].cells}var w="";if(a.p.altRows)w=a.p.altclass;b.each(d,function(r,o){if(w)r%2==1?b(o).addClass(w):b(o).removeClass(w);...
n;l++){if(c[l]=="M"){s=b.inArray(d[l],p);if(s!==-1&&s<12)d[l]=s+1}if(c[l]=="F"){s=b.inArray(d[l],p);if(s!==-1&&s>11)d[l]=s+1-12}e[c[l].toLowerCase()]=parseInt(d[l],10)}e.m=parseInt(e.m,10)-1;c=e.y;if(c>=70&&c<=99)e.y=1900+e.y;else if(c>=0&&c<=69)e.y=...
[];b("#cb_"+b.jgrid.jqID(a.p.id),a.grid.hDiv).attr("checked",false)}a.p.savedRow=[];if(b.isFunction(a.p.onPaging))if(a.p.onPaging.call(a,v)=="stop")return false;return true};c=c.substr(1);s="pg_"+c;p=c+"_left";w=c+"_center";r=c+"_right";b("#"+c).appe...
r+"' align='right'></td></tr></tbody></table></div>").attr("dir","ltr");if(a.p.rowList.length>0){n="<td dir='"+m+"'>";n+="<select class='ui-pg-selbox' role='listbox'>";for(p=0;p<a.p.rowList.length;p++)n+="<option role='option' value='"+a.p.rowList[p]...
"<span id='sp_1'></span>")+"</td>";if(a.p.pgbuttons===true){p=["first"+d,"prev"+d,"next"+d,"last"+d];m=="rtl"&&p.reverse();l+="<td id='"+p[0]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-first'></span></td>";l+="<td id='"+p...
"";l+="<td id='"+p[2]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-next'></span></td>";l+="<td id='"+p[3]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-end'></span></td>"}else if(e!="")l+=e;if(m=="...
"11px";b("body").append("<div id='testpg' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+n+";visibility:hidden;' ></div>");l=b(l).clone().appendTo("#testpg").width();b("#testpg").remove();if(l>0){if(e!="")l+=50;b("td#"+c+"_"+a.p.pag...
if(d)b(".ui-pg-selbox",a.p.pager).val(this.value);else a.p.toppager&&b(".ui-pg-selbox",a.p.toppager).val(this.value);if(!o("records"))return false;X();return false});if(a.p.pgbuttons===true){b(".ui-pg-button","#"+s).hover(function(){if(b(this).hasCla...
d+", #prev"+d+", #next"+d+", #last"+d,"#"+c).click(function(){var v=J(a.p.page,1),x=J(a.p.lastpage,1),z=false,D=true,N=true,L=true,P=true;if(x===0||x===1)P=L=N=D=false;else if(x>1&&v>=1)if(v===1)N=D=false;else{if(!(v>1&&v<x))if(v===x)P=L=false}else i...
true&&b("input.ui-pg-input","#"+s).keypress(function(v){if((v.charCode?v.charCode:v.keyCode?v.keyCode:0)==13){a.p.page=b(this).val()>0?b(this).val():a.p.page;if(!o("user"))return false;X();return false}return this})};var xa=function(c,d,e,l){if(a.p.c...
else a.p.sortorder=l;e=b("thead:first",a.grid.hDiv).get(0);b("tr th:eq("+a.p.lastsort+") span.ui-grid-ico-sort",e).addClass("ui-state-disabled");b("tr th:eq("+a.p.lastsort+")",e).attr("aria-selected","false");b("tr th:eq("+d+") span.ui-icon-"+a.p.sor...
a.p.sortname=a.p.colModel[d].index||c;e=a.p.sortorder;if(b.isFunction(a.p.onSortCol))if(a.p.onSortCol.call(a,c,d,e)=="stop")return;if(a.p.datatype=="local")a.p.deselectAfterSort&&b(a).jqGrid("resetSelection");else{a.p.selrow=null;a.p.multiselect&&b("...
c&&d)a.p.lastsort=d}},Da=function(c){var d=c,e;for(e=c+1;e<a.p.colModel.length;e++)if(a.p.colModel[e].hidden!==true){d=e;break}return d-c},Ea=function(c){var d,e={},l=B?0:a.p.cellLayout;for(d=e[0]=e[1]=e[2]=0;d<=c;d++)if(a.p.colModel[d].hidden===fals...
10);if(a.p.toolbar[0]==true&&(a.p.toolbar[1]=="top"||a.p.toolbar[1]=="both"))e[1]+=b(a.grid.uDiv).height()+parseInt(b(a.grid.uDiv).css("border-top-width"),10)+parseInt(b(a.grid.uDiv).css("border-bottom-width"),10);if(a.p.toppager)e[1]+=b(a.grid.topDi...
for(j=0;j<a.p.colModel.length;j++)if(a.p.colModel[j].key===true){a.p.keyIndex=j;break}a.p.sortorder=a.p.sortorder.toLowerCase();if(this.p.treeGrid===true)try{b(this).jqGrid("setTreeGrid")}catch(Ia){}if(this.p.subGrid)try{b(a).jqGrid("setSubGrid")}cat...
search:false,align:"center",fixed:true})}if(this.p.rownumbers){this.p.colNames.unshift("");this.p.colModel.unshift({name:"rn",width:a.p.rownumWidth,sortable:false,resizable:false,hidedlg:true,search:false,align:"center",fixed:true})}a.p.xmlReader=b.e...
{root:"rows",page:"page",total:"total",records:"records",repeatitems:true,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:true,cell:"cell"}},a.p.jsonReader);if(a.p.scroll){a.p.pgbuttons=false;a.p.pginput=false;a.p.rowList=[]}...
"horizontal"){ca=" ui-i-asc";ga=" ui-i-desc"}ya=y?"class='ui-th-div-ie'":"";ca="<span class='s-ico' style='display:none'><span sort='asc' class='ui-grid-ico-sort ui-icon-asc"+ca+" ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-"+m+"'></span>"...
m+"'>";ga=a.p.colModel[j].index||a.p.colModel[j].name;H+="<div id='jqgh_"+a.p.colModel[j].name+"' "+ya+">"+a.p.colNames[j];if(ga==a.p.sortname)a.p.lastsort=j;H+=ca+"</div></th>"}H+="</tr></thead>";b(this).append(H);b("thead tr:first th",this).hover(f...
a.rows).attr("checked",true);b(a.rows).each(function(c){if(!b(this).hasClass("subgrid")){b(this).addClass("ui-state-highlight").attr("aria-selected","true");a.p.selarrrow[c]=a.p.selrow=this.id}});oa=true;ta=[]}else{b("[id^=jqg_]",a.rows).attr("checke...
function(){if(!this.width)this.width=150;this.width=parseInt(this.width,10)});if(a.p.autowidth===true){H=b(K).innerWidth();a.p.width=H>0?H:"nw"}(function(){var c=0,d=a.p.cellLayout,e=0,l,n=a.p.scrollOffset,s,p=false,w,r=0,o=0,v=0,x;if(B)d=0;b.each(a....
c;if(a.p.shrinkToFit===false&&a.p.forceFit===true)a.p.forceFit=false;if(a.p.shrinkToFit===true&&e>0){w=g.width-d*e-o;if(!isNaN(a.p.height)){w-=n;p=true}c=0;b.each(a.p.colModel,function(z){if(this.hidden===false&&!this.fixed){this.width=s=Math.floor(w...
a.p.id+"'> </div>");b(q).css("width",g.width+"px");H=b("thead:first",a).get(0);var ua="<table role='grid' style='width:"+a.p.tblwidth+"px' class='ui-jqgrid-ftable' cellspacing='0' cellpadding='0' border='0'><tbody><tr role='row' class='ui-widget...
document.createElement("span");b(ha).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+m);!b.browser.opera&&b(ha).css("cursor","col-resize");b(this).addClass(a.p.resizeclass)}else ha="";b(this).css("width",sa+"px").prepend(ha);a.p.colModel...
if(na)if(a.p.viewsortcols[0]){b("div span.s-ico",this).show();c==a.p.lastsort&&b("div span.ui-icon-"+a.p.sortorder,this).removeClass("ui-state-disabled")}else if(c==a.p.lastsort){b("div span.s-ico",this).show();b("div span.ui-icon-"+a.p.sortorder,thi...
c,Ea(d));return false}}).click(function(c){if(a.p.disableClick)return a.p.disableClick=false;var d="th>div.ui-jqgrid-sortable",e,l;a.p.viewsortcols[2]||(d="th>div>span>span.ui-grid-ico-sort");c=b(c.target).closest(d);if(c.length==1){d=b.jgrid.getCell...
b(this).addClass("ui-jqgrid-btable");q=b("<table class='ui-jqgrid-htable' style='width:"+a.p.tblwidth+"px' role='grid' aria-labelledby='gbox_"+this.id+"' cellspacing='0' cellpadding='0' border='0'></table>").append(H);var R=a.p.caption&&a.p.hiddengri...
"string"){if(a.p.pager.substr(0,1)!="#")a.p.pager="#"+a.p.pager}else a.p.pager="#"+b(a.p.pager).attr("id");b(a.p.pager).css({width:g.width+"px"}).appendTo(K).addClass("ui-state-default ui-jqgrid-pager ui-corner-bottom");R&&b(a.p.pager).hide();u(a.p.p...
b(A).removeClass("ui-state-hover");return false});var Y,Z;b(a).before(g.hDiv).click(function(c){I=c.target;var d=b(I).hasClass("cbox");A=b(I,a.rows).closest("tr.jqgrow");if(b(A).length===0)return this;var e=true;if(b.isFunction(a.p.beforeSelectRow))e...
true);else{Y=A[0].rowIndex;Z=b.jgrid.getCellIndex(I);try{b(a).jqGrid("editCell",Y,Z,true)}catch(l){}}else if(a.p.multikey)if(c[a.p.multikey])b(a).jqGrid("setSelection",A[0].id,true);else{if(a.p.multiselect&&d){d=b("[id^=jqg_]",A).attr("checked");b("[...
b.jgrid.jqID(a.p.id),a.grid.hDiv).attr("checked",false)}b(a).jqGrid("setSelection",A[0].id,true)}if(b.isFunction(a.p.onCellSelect)){Y=A[0].id;Z=b.jgrid.getCellIndex(I);a.p.onCellSelect.call(a,Y,Z,b(I).html(),c)}}c.stopPropagation()}).bind("reloadGrid...
b.jgrid.jqID(a.p.id),a.grid.hDiv).attr("checked",false)}a.p.savedRow=[];a.p.scroll&&$(a.grid.bDiv)}if(d&&d.page){c=d.page;if(c>a.p.lastpage)c=a.p.lastpage;if(c<1)c=1;a.p.page=c;a.grid.bDiv.scrollTop=a.grid.prevRowHeight?(c-1)*a.grid.prevRowHeight*a.p...
0)return false;Y=A[0].rowIndex;Z=b.jgrid.getCellIndex(I);a.p.ondblClickRow.call(a,b(A).attr("id"),Y,Z,c);return false});b.isFunction(this.p.onRightClickRow)&&b(this).bind("contextmenu",function(c){I=c.target;A=b(I,a.rows).closest("tr.jqgrow");if(b(A)...
(y&&b.browser.version<8?"height:0.01%;":"")+'"></div>').append("<div></div>").append(this)).addClass("ui-jqgrid-bdiv").css({height:a.p.height+(isNaN(a.p.height)?"":"px"),width:g.width+"px"}).scroll(g.scrollGrid);b("table:first",g.bDiv).css({width:a.p...
var va=a.p.hidegrid===true?b("<a role='link' href='javascript:void(0)'/>").addClass("ui-jqgrid-titlebar-close HeaderButton").hover(function(){va.addClass("ui-state-hover")},function(){va.removeClass("ui-state-hover")}).append("<span class='ui-icon ui...
b(g.cDiv).insertBefore(g.hDiv);if(a.p.toolbar[0]){g.uDiv=document.createElement("div");if(a.p.toolbar[1]=="top")b(g.uDiv).insertBefore(g.hDiv);else a.p.toolbar[1]=="bottom"&&b(g.uDiv).insertAfter(g.hDiv);if(a.p.toolbar[1]=="both"){g.ubDiv=document.cr...
"t_"+this.id);R&&b(g.uDiv).hide()}if(a.p.toppager){a.p.toppager=a.p.id+"_toppager";g.topDiv=b("<div id='"+a.p.toppager+"'></div>")[0];a.p.toppager="#"+a.p.toppager;b(g.topDiv).insertBefore(g.hDiv).addClass("ui-state-default ui-jqgrid-toppager").width...
g.sDiv)[0].rows[0].cells;if(a.p.rownumbers)g.footers[0].className="ui-state-default jqgrid-rownum";R&&b(g.sDiv).hide()}if(a.p.caption){var Fa=a.p.datatype;if(a.p.hidegrid===true){b(".ui-jqgrid-titlebar-close",g.cDiv).click(function(c){var d=b.isFunct...
"both"&&b(g.ubDiv).slideUp("fast");b(g.uDiv).slideUp("fast")}a.p.footerrow&&b(".ui-jqgrid-sdiv","#gbox_"+a.p.id).slideUp("fast");b("span",this).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s");a.p.gridstate="hidden";if(d...
true){a.p.toolbar[1]=="both"&&b(g.ubDiv).slideDown("fast");b(g.uDiv).slideDown("fast")}a.p.footerrow&&b(".ui-jqgrid-sdiv","#gbox_"+a.p.id).slideDown("fast");b("span",this).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n")...
return false}});b(".ui-jqgrid-labels",g.hDiv).bind("selectstart",function(){return false});b(document).mouseup(function(){if(g.resizing){g.dragEnd();return false}return true});this.updateColumns=function(){var c=this.rows[0],d=this;if(c){b("td",c).ea...
function(c){qa(c,a.grid.bDiv)};a.addJSONData=function(c){ra(c,a.grid.bDiv)};X();a.p.hiddengrid=false;b(window).unload(function(){b(this).empty();this.p=this.grid=null})}}})};b.jgrid.extend({getGridParam:function(f){var k=this[0];if(k.grid)return f?ty...
this.rows[k].id;k++}});return f},setSelection:function(f,k){return this.each(function(){function i(a,q){var u=b(h.grid.bDiv)[0].clientHeight,y=b(h.grid.bDiv)[0].scrollTop,B=h.rows[a].offsetTop+h.rows[a].clientHeight;a=h.rows[a].offsetTop;if(q=="d")if...
m=h.rows.namedItem(f).rowIndex;if(m>=0)m>g?i(m,"d"):i(m,"u")}if(h.p.multiselect){h.p.selrow=j.id;m=b.inArray(h.p.selrow,h.p.selarrrow);if(m===-1){j.className!=="ui-subgrid"&&b(j).addClass("ui-state-highlight").attr("aria-selected","true");g=true;b("#...
g=false;b("#jqg_"+b.jgrid.jqID(h.p.selrow),h.rows[j.rowIndex]).attr("checked",g);h.p.selarrrow.splice(m,1);h.p.onSelectRow&&k&&h.p.onSelectRow.call(h,h.p.selrow,g);j=h.p.selarrrow[0];h.p.selrow=j===undefined?null:j}}else if(j.className!=="ui-subgrid"...
true)}}}})},resetSelection:function(){return this.each(function(){var f=this,k;if(f.p.multiselect){b(f.p.selarrrow).each(function(i,h){k=f.rows.namedItem(h);b(k).removeClass("ui-state-highlight").attr("aria-selected","false");b("#jqg_"+b.jgrid.jqID(h...
null}f.p.savedRow=[]})},getRowData:function(f){var k={},i,h=false,g,j=0;this.each(function(){var m=this,a,q;if(typeof f=="undefined"){h=true;i=[];g=m.rows.length}else{q=m.rows.namedItem(f);if(!q)return k;g=1}for(;j<g;){if(h)q=m.rows[j];b("td",q).each...
j++;if(h){i.push(k);k={}}}});return i?i:k},delRowData:function(f){var k=false,i,h,g;this.each(function(){var j=this;if(i=j.rows.namedItem(f)){g=i.rowIndex;b(i).remove();j.p.records--;j.p.reccount--;j.updatepager(true,false);k=true;if(j.p.multiselect)...
return k},setRowData:function(f,k,i){var h,g=false;this.each(function(){var j=this,m,a,q=typeof i;if(!j.grid)return false;a=j.rows.namedItem(f);if(!a)return false;k&&b(this.p.colModel).each(function(u){h=this.name;if(k[h]!=undefined){m=j.formatter(f,...
b(a).css(i)});return g},addRowData:function(f,k,i,h){i||(i="last");var g=false,j,m,a,q,u,y,B,K,J="",F,S,M;if(k){if(b.isArray(k)){F=true;i="last";S=f}else{k=[k];F=false}this.each(function(){var t=this,ia=k.length;u=t.p.rownumbers===true?1:0;a=t.p.mult...
true:false;aa<ia;){data=k[aa];m="";if(F){try{f=data[S]}catch(pa){f=t.p.records+1}var $=t.p.altRows===true?(t.rows.length-1)%2==0?M:"":""}if(u){J=t.formatCol(u,1);m+='<td role="gridcell" class="ui-state-default jqgrid-rownum" '+J+">0</td>"}if(a){K='<i...
data,"add");J=t.formatCol(B,1);m+='<td role="gridcell" '+J+' title="'+b.jgrid.stripHtml(K)+'">'+K+"</td>"}m='<tr id="'+f+'" role="row" class="ui-widget-content jqgrow ui-row-'+t.p.direction+" "+$+'">'+m+"</tr>";if(t.p.subGrid===true){m=b(m)[0];b(t).j...
1]).hasClass("ui-subgrid")?b(t.rows[y.rowIndex+1]).after(m):b(y).after(m);break;case "before":if(y=t.rows.namedItem(h)){b(y).before(m);y=y.rowIndex}break}t.p.records++;t.p.reccount++;if(!t.grid.cols||!t.grid.cols.length)t.grid.cols=t.rows[0].cells;if...
b(this).removeClass(M)});t.updatepager(true,true);g=true})}return g},footerData:function(f,k,i){function h(a){for(var q in a)return false;return true}var g,j=false,m={};if(typeof f=="undefined")f="get";if(typeof i!="boolean")i=true;f=f.toLowerCase();...
u+")",a.grid.sDiv).html(q).attr("title",b.jgrid.stripHtml(q));j=true}}else if(f=="get")m[g]=b("tr.footrow td:eq("+u+")",a.grid.sDiv).html()})});return f=="get"?m:j},ShowHideCol:function(f,k){return this.each(function(){var i=this,h=false;if(i.grid){i...
j+")",i.rows[m]).css("display",k)});i.p.footerrow&&b("td:eq("+j+")",i.grid.sDiv).css("display",k);if(k=="none")i.p.tblwidth-=this.width;else i.p.tblwidth+=this.width;this.hidden=!g;h=true}});if(h===true){b("table:first",i.grid.hDiv).width(i.p.tblwidt...
f,"none")})},showCol:function(f){return this.each(function(){b(this).jqGrid("ShowHideCol",f,"")})},remapColumns:function(f,k,i){function h(m){var a;a=m.length?b.makeArray(m):b.extend({},m);b.each(f,function(q){m[q]=a[this]})}function g(m,a){b(">tr"+(...
j.grid.bDiv),".jqgrow");j.p.footerrow&&g(b("tbody:first",j.grid.sDiv));if(j.p.remapColumns)if(j.p.remapColumns.length)h(j.p.remapColumns);else j.p.remapColumns=b.makeArray(f);j.p.lastsort=b.inArray(j.p.lastsort,f);if(j.p.treeGrid)j.p.expColInd=b.inAr...
i.p.width=f;b("#gbox_"+i.p.id).css("width",f+"px");b("#gview_"+i.p.id).css("width",f+"px");b(i.grid.bDiv).css("width",f+"px");b(i.grid.hDiv).css("width",f+"px");i.p.pager&&b(i.p.pager).css("width",f+"px");if(i.p.toolbar[0]===true){b(i.grid.uDiv).css(...
false){g+=parseInt(this.width,10);if(this.fixed){K+=this.width;B+=this.width+j}else a++;J++}});if(a!=0){i.p.tblwidth=g;y=f-j*a-B;if(!isNaN(i.p.height))if(b(i.grid.bDiv)[0].clientHeight<b(i.grid.bDiv)[0].scrollHeight){q=true;y-=u}g=0;var S=i.grid.cols...
h+"px";if(S)i.grid.cols[M].style.width=h+"px";m=M}});F=0;if(q){if(f-B-(g+j*a)!==u)F=f-B-(g+j*a)-u}else if(Math.abs(f-B-(g+j*a))!==1)F=f-B-(g+j*a);i.p.colModel[m].width+=F;h=i.p.colModel[m].width;i.grid.headers[m].width=h;i.grid.headers[m].el.style.wi...
h+"px";b("table:first",i.grid.sDiv).css("width",i.p.tblwidth+"px")}}}}}})},setGridHeight:function(f){return this.each(function(){var k=this;if(k.grid){b(k.grid.bDiv).css({height:f+(isNaN(f)?"":"px")});k.p.height=f;k.p.scroll&&k.grid.populateVisible()...
f){j=q;return false}});else j=parseInt(f,10);if(j>=0){var m=b("tr.ui-jqgrid-labels th:eq("+j+")",g.grid.hDiv);if(k){var a=b(".s-ico",m);b("[id^=jqgh_]",m).empty().html(k).append(a);g.p.colNames[j]=k}if(i)typeof i==="string"?b(m).addClass(i):b(m).css(...
b("td:eq("+m+")",a);if(i!==""){a=j.formatter(f,i,m,a,"edit");j.p.treeGrid&&b(".tree-wrap",b(q)).length>0?b("span",b(q)).html(a).attr("title",b.jgrid.stripHtml(a)):b(q).html(a).attr("title",b.jgrid.stripHtml(a))}if(typeof h==="string")h?b(q).addClass(...
parseInt(k,10);if(g>=0){var j=h.rows.namedItem(f);if(j)try{i=b.unformat(b("td:eq("+g+")",j),{rowId:j.id,colModel:h.p.colModel[g]},g)}catch(m){i=b.jgrid.htmlDecode(b("td:eq("+g+")",j).html())}}}});return i},getCol:function(f,k,i){var h=[],g,j=0;k=type...
0){for(;u<q;){try{g=b.unformat(b(m.rows[u].cells[a]),{rowId:m.rows[u].id,colModel:m.p.colModel[a]},a)}catch(y){g=b.jgrid.htmlDecode(m.rows[u].cells[a].innerHTML)}i?(j+=parseFloat(g)):k?h.push({id:m.rows[u].id,value:g}):(h[u]=g);u++}if(i)switch(i.toLo...
f&&b(".ui-jqgrid-ftable td",k.grid.sDiv).html(" ");k.p.selrow=null;k.p.selarrrow=[];k.p.savedRow=[];k.p.records=0;k.p.page="0";k.p.lastpage="0";k.p.reccount=0;k.updatepager(true,false)}})},getInd:function(f,k){var i=false,h;this.each(function(){...
(function(a){a.jgrid.extend({getColProp:function(d){var o={},b=this[0];if(b.grid){b=b.p.colModel;for(var l=0;l<b.length;l++)if(b[l].name==d){o=b[l];break}return o}},setColProp:function(d,o){return this.each(function(){if(this.grid)if(o)for(var b=this...
d||l.p.colModel[p].name==d){s=p;break}if(s!=-1){p=l.p.colModel[s].sortable;if(typeof p!=="boolean")p=true;if(typeof o!=="boolean")o=false;p&&l.sortData("jqgh_"+d,s,o,b)}}})},GridDestroy:function(){return this.each(function(){if(this.grid){this.p.page...
var o=document.createElement("table");a(o).attr({id:d.id});o.className=d.cl;d=this.id;a(o).removeClass("ui-jqgrid-btable");if(a(this.p.pager).parents("#gbox_"+d).length===1){a(o).insertBefore("#gbox_"+d).show();a(this.p.pager).insertBefore("#gbox_"+d...
if($t.p.toolbar[0]===true){$t.p.toolbar[1]=="both"&&a($t.grid.ubDiv).slideUp("fast");a($t.grid.uDiv).slideUp("fast")}$t.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+$s.p.id).slideUp("fast");a(".ui-jqgrid-titlebar-close span",$t.grid.cDiv).removeClass("u...
"both"&&a($t.grid.ubDiv).slideDown("fast");a($t.grid.uDiv).slideDown("fast")}$t.p.footerrow&&a(".ui-jqgrid-sdiv","#gbox_"+$t.p.id).slideDown("fast");a(".ui-jqgrid-titlebar-close span",$t.grid.cDiv).removeClass("ui-icon-circle-triangle-s").addClass("u...
m[o];if(b===true)if(p.p.jsonReader.repeatitems===true){if(p.p.jsonReader.cell)m=m[p.p.jsonReader.cell];for(var c=0;c<m.length;c++){f=p.formatter(e,m[c],c,m,"edit");p.p.treeGrid===true&&l==p.p.ExpandColumn?a("td:eq("+c+") > span:first",k).html(f).attr...
true&&l==p.p.ExpandColumn?a("td:eq("+g+") > span:first",k).html(f).attr("title",a.jgrid.stripHtml(f)):a("td:eq("+g+")",k).html(f).attr("title",a.jgrid.stripHtml(f));s=true}})}})});return s},filterGrid:function(d,o){o=a.extend({gridModel:false,gridNam...
afterSearch:null,beforeClear:null,afterClear:null,url:"",marksearched:true},o||{});return this.each(function(){var b=this;this.p=o;if(this.p.filterModel.length==0&&this.p.gridModel===false)alert("No filter is set");else if(d){this.p.gridid=d.indexOf(...
true?true:this.hidden===true?false:true;if(this.search===true&&p===true){g.label=b.p.gridNames===true?s.p.colNames[c]:"";g.name=this.name;g.index=this.index||this.name;g.stype=this.edittype||"text";if(g.stype!="select")g.stype="text";g.defval=this.de...
this.name});var f=function(){var c={},g=0,n,h=a(b.p.gridid)[0],j;h.p.searchdata={};a.isFunction(b.p.beforeSearch)&&b.p.beforeSearch();a.each(b.p.filterModel,function(){j=this.index;switch(this.stype){case "select":if(n=a("select[name="+j+"]",b).val()...
j+"]",b).val()){c[j]=n;b.p.marksearched&&a("#jqgh_"+this.name,h.grid.hDiv).addClass("dirty-cell");g++}else{b.p.marksearched&&a("#jqgh_"+this.name,h.grid.hDiv).removeClass("dirty-cell");try{delete h.p.postData[this.index]}catch(u){}}}});var q=g>0?true...
b.p.afterSearch()},k=function(){var c={},g,n=0,h=a(b.p.gridid)[0],j;a.isFunction(b.p.beforeClear)&&b.p.beforeClear();a.each(b.p.filterModel,function(){j=this.index;g=this.defval?this.defval:"";if(!this.stype)this.stype="text";switch(this.stype){case ...
n++}else{b.p.marksearched&&a("#jqgh_"+this.name,h.grid.hDiv).removeClass("dirty-cell");try{delete h.p.postData[this.index]}catch(u){}}break;case "text":a("input[name="+j+"]",b).val(g);if(g){c[j]=g;b.p.marksearched&&a("#jqgh_"+this.name,h.grid.hDiv).a...
"url");a(h).jqGrid("setGridParam",{url:b.p.url})}a(h).jqGrid("setGridParam",{search:q}).trigger("reloadGrid",[{page:1}]);i&&a(h).jqGrid("setGridParam",{url:i});a.isFunction(b.p.afterClear)&&b.p.afterClear()},m=a("<form name='SearchForm' style=display...
a(e).append(c);a.each(b.p.filterModel,function(q){h=document.createElement("td");a(h).append("<label for='"+this.name+"'>"+this.label+"</label>");j=document.createElement("td");var i=this;if(!this.stype)this.stype="text";switch(this.stype){case "sele...
b.p.autosearch===true&&a("select",this).change(function(){f();return false})});else if(i.sopt.value){var r=i.sopt.value,u=document.createElement("select");a(u).attr({name:i.index||i.name,id:"sg_"+i.name}).attr(i.sopt);if(typeof r==="string"){q=r.spli...
t.value=v;t.innerHTML=r[v];if(r[v]==i.defval)t.selected="selected";u.appendChild(t)}b.p.gridToolbar===true&&i.width&&a(u).width(i.width);a(j).append(u);b.p.autosearch===true&&a(u).change(function(){f();return false})}break;case "text":u=this.defval?t...
2);b.p.autosearch===true&&a("input",j).keypress(function(w){if((w.charCode?w.charCode:w.keyCode?w.keyCode:0)==13){f();return false}return this});break}if(b.p.formtype=="horizontal"){b.p.gridToolbar===true&&b.p.gridNames===false?a(c).append(j):a(c).ap...
"'/>";a(j).append(n);a("input#sButton",j).click(function(){f();return false})}if(b.p.enableClear===true){n="<input type='button' id='cButton' class='"+b.p.buttonclass+"' value='"+b.p.clearButton+"'/>";a(j).append(n);a("input#cButton",j).click(functio...
f;this.clearSearch=k}else alert("Could not get grid colModel")}else alert("No target grid is set!")})},filterToolbar:function(d){d=a.extend({autosearch:true,searchOnEnter:true,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,search...
k=0,m,e,c={};a.each(b.p.colModel,function(){e=this.index||this.name;var i=this.searchoptions&&this.searchoptions.sopt?this.searchoptions.sopt[0]:"bw";switch(this.stype){case "select":if(m=a("select[name="+e+"]",b.grid.hDiv).val()){f[e]=m;c[e]=i;k++}e...
h=0;a.each(f,function(i,r){if(h>0)n+=",";n+='{"field":"'+i+'",';n+='"op":"'+c[i]+'",';n+='"data":"'+r+'"}';h++});n+="]}";a.extend(b.p.postData,{filters:n})}else a.extend(b.p.postData,f);var j;if(b.p.searchurl){j=b.p.url;a(b).jqGrid("setGridParam",{ur...
p;a.each(b.p.colModel,function(){var f=this,k,m,e,c;m=a("<th role='columnheader' class='ui-state-default ui-th-column ui-th-"+b.p.direction+"'></th>");k=a("<div style='width:100%;position:relative;height:100%;padding-right:0.3em;'></div>");this.hidde...
dataType:"html",complete:function(q){if(e.buildSelect!=null)(q=e.buildSelect(q))&&a(k).append(q);else a(k).append(q.responseText);e.defaultValue&&a("select",k).val(e.defaultValue);a("select",k).attr({name:f.index||f.name,id:"gs_"+f.name});e.attr&&a("...
b.p.ajaxSelectOptions||{}));else{var g;if(f.searchoptions&&f.searchoptions.value)g=f.searchoptions.value;else if(f.editoptions&&f.editoptions.value)g=f.editoptions.value;if(g){c=document.createElement("select");c.style.width="100%";a(c).attr({name:f....
h.value=n;h.innerHTML=g[n];c.appendChild(h)}e.defaultValue&&a(c).val(e.defaultValue);e.attr&&a(c).attr(e.attr);e.dataInit!=null&&e.dataInit(c);e.dataEvents!=null&&o(c,e.dataEvents);a(k).append(c);d.autosearch===true&&a(c).change(function(){l();return...
k)[0]);e.dataEvents!=null&&o(a("input",k)[0],e.dataEvents);if(d.autosearch===true)d.searchOnEnter?a("input",k).keypress(function(q){if((q.charCode?q.charCode:q.keyCode?q.keyCode:0)==13){l();return false}return this}):a("input",k).keydown(function(q){...
function(f){var k={},m,e=0,c;f=typeof f!="boolean"?true:f;a.each(b.p.colModel,function(){m=this.searchoptions&&this.searchoptions.defaultValue?this.searchoptions.defaultValue:"";c=this.index||this.name;switch(this.stype){case "select":var i;a("select...
if(m){k[c]=m;e++}else try{delete b.p.postData[c]}catch(u){}break}});var g=e>0?true:false;if(d.stringResult){var n='{"groupOp":"'+d.groupOp+'","rules":[',h=0;a.each(k,function(i,r){if(h>0)n+=",";n+='{"field":"'+i+'",';n+='"op":"eq",';n+='"data":"'+r+'...
{search:g}).trigger("reloadGrid",[{page:1}]);j&&a(b).jqGrid("setGridParam",{url:j});a.isFunction(d.afterClear)&&d.afterClear()};this.toggleToolbar=function(){var f=a("tr.ui-search-toolbar",b.grid.hDiv);f.css("display")=="none"?f.show():f.hide()}})}})...
var showModal=function(a){a.w.show()},closeModal=function(a){a.w.hide().attr("aria-hidden","true");a.o&&a.o.remove()},createModal=function(a,b,c,e,f,h){var d=document.createElement("div"),g;g=jQuery(c.gbox).attr("dir")=="rtl"?true:false;d.className="...
c.caption+"</span>");var j=jQuery("<a href='javascript:void(0)' class='ui-jqdialog-titlebar-close ui-corner-all'></a>").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-c...
i).css("right","0.3em")}var l=document.createElement("div");jQuery(l).addClass("ui-jqdialog-content ui-widget-content").attr("id",a.modalcontent);jQuery(l).append(b);d.appendChild(l);jQuery(d).prepend(i);h===true?jQuery("body").append(d):jQuery(d).in...
c.top+"px"}jQuery("a.ui-jqdialog-titlebar-close",i).click(function(){var n=jQuery("#"+a.themodal).data("onClose")||c.onClose,k=jQuery("#"+a.themodal).data("gbox")||c.gbox;hideModal("#"+a.themodal,{gb:k,jqm:c.jqModal,onClose:n});return false});if(c.wi...
"auto":c.width+"px",height:isNaN(c.height)?"auto":c.height+"px",zIndex:c.zIndex,overflow:"hidden"},b)).attr({tabIndex:"-1",role:"dialog","aria-labelledby":a.modalhead,"aria-hidden":"true"});if(typeof c.drag=="undefined")c.drag=true;if(typeof c.resize...
jQuery("#"+a.themodal).jqResize(".jqResize",a.scrollelm?"#"+a.scrollelm:false)}else try{jQuery(d).resizable({handles:"se, sw",alsoResize:a.scrollelm?"#"+a.scrollelm:false})}catch(o){}c.closeOnEscape===true&&jQuery(d).keydown(function(n){if(n.which==2...
{});if(jQuery.fn.jqm&&b.jqm==true)b.jqM?jQuery(a).attr("aria-hidden","false").jqm(b).jqmShow():jQuery(a).attr("aria-hidden","false").jqmShow();else{if(b.gbox!=""){jQuery(".jqgrid-overlay:first",b.gbox).show();jQuery(a).data("gbox",b.gbox)}jQuery(a).s...
"true").jqmHide();else{if(b.gb!="")try{jQuery(".jqgrid-overlay:first",b.gb).hide()}catch(e){}jQuery(a).hide().attr("aria-hidden","true")}};
function info_dialog(a,b,c,e){var f={width:290,height:"auto",dataheight:"auto",drag:true,resize:false,caption:"<b>"+a+"</b>",left:250,top:170,zIndex:1E3,jqModal:true,modal:false,closeOnEscape:true,align:"center",buttonalign:"center",buttons:[]};jQuer...
f.buttons[e].text+"</a>"}e=isNaN(f.dataheight)?f.dataheight:f.dataheight+"px";var d="<div id='info_id'>";d+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+e+";"+("text-align:"+f.align+";")+...
c+"</a>"+a+"</div>":"";d+="</div>";try{jQuery("#info_dialog").attr("aria-hidden")=="false"&&hideModal("#info_dialog",{jqm:h});jQuery("#info_dialog").remove()}catch(g){}createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_conte...
{jqm:h});return false});jQuery(".fm-button","#info_dialog").hover(function(){jQuery(this).addClass("ui-state-hover")},function(){jQuery(this).removeClass("ui-state-hover")});viewModal("#info_dialog",{onHide:function(j){j.w.hide().remove();j.o&&j.o.re...
function isArray(a){return a.constructor.toString().indexOf("Array")==-1?false:true}
function createEl(a,b,c,e,f){function h(k,m){if(jQuery.isFunction(m.dataInit)){k.id=m.id;m.dataInit(k);delete m.id;delete m.dataInit}if(m.dataEvents){jQuery.each(m.dataEvents,function(){this.data!=null?jQuery(k).bind(this.type,this.data,this.fn):jQue...
2;if(c==" "||c==" "||c.length==1&&c.charCodeAt(0)==160)c="";d.value=c;b=h(d,b);jQuery(d).attr(b);break;case "checkbox":d=document.createElement("input");d.type="checkbox";if(b.value){var g=b.value.split(":");if(c===g[0]){d.checked=true;d.de...
"off")}b=h(d,b);jQuery(d).attr(b);break;case "select":d=document.createElement("select");var j,l=[];if(b.multiple===true){j=true;d.multiple="multiple"}else j=false;if(b.dataUrl!=null)jQuery.ajax(jQuery.extend({url:b.dataUrl,type:"GET",complete:functi...
1;if(j){l=c.split(",");l=jQuery.map(l,function(p){return jQuery.trim(p)})}else l[0]=c;jQuery(d).attr(b);setTimeout(function(){jQuery("option",d).each(function(p){if(p==0)this.selected="";if(jQuery.inArray(jQuery(this).text(),l)>-1||jQuery.inArray(jQu...
b.value();if(typeof b.value==="string"){e=b.value.split(";");for(g=0;g<e.length;g++){f=e[g].split(":");if(f.length>2)f[1]=jQuery.map(f,function(k,m){if(m>0)return k}).join(":");a=document.createElement("option");a.value=f[0];a.innerHTML=f[1];if(!j&&(...
e[g];if(!j&&(g==c||e[g]==c))a.selected="selected";if(j&&(jQuery.inArray(e[g],l)>-1||jQuery.inArray(g,l)>-1))a.selected="selected";d.appendChild(a)}}b=h(d,b);try{delete b.value}catch(q){}jQuery(d).attr(b)}break;case "text":case "password":case "button...
break;case "custom":d=document.createElement("span");try{if(jQuery.isFunction(b.custom_element)){var o=b.custom_element.call(this,c,b);if(o){o=jQuery(o).addClass("customelement").attr({id:b.id,name:b.name});jQuery(d).empty().append(o)}else throw"e2";...
jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,n.message,jQuery.jgrid.edit.bClose)}break}return d}
function checkValues(a,b,c){var e,f,h;if(typeof b=="string"){f=0;for(len=c.p.colModel.length;f<len;f++)if(c.p.colModel[f].name==b){e=c.p.colModel[f].editrules;b=f;try{h=c.p.colModel[f].formoptions.label}catch(d){}break}}else if(b>=0)e=c.p.colModel[b]...
jQuery.jgrid.edit.msg.number,""];if(typeof e.minValue!="undefined"&&!isNaN(e.minValue))if(parseFloat(a)<parseFloat(e.minValue))return[false,h+": "+jQuery.jgrid.edit.msg.minValue+" "+e.minValue,""];if(typeof e.maxValue!="undefined"&&!isNaN(e.maxValue)...
if(!g.test(a))return[false,h+": "+jQuery.jgrid.edit.msg.email,""]}if(e.integer===true)if(!(f===false&&isEmpty(a))){if(isNaN(a))return[false,h+": "+jQuery.jgrid.edit.msg.integer,""];if(a%1!=0||a.indexOf(".")!=-1)return[false,h+": "+jQuery.jgrid.edit.m...
": "+jQuery.jgrid.edit.msg.date+" - hh:mm (am/pm)",""];if(e.url===true)if(!(f===false&&isEmpty(a))){g=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;if(!g.test(a))return[false,h+": "...
""]}return[true,"",""]}
function checkDate(a,b){var c={},e;a=a.toLowerCase();e=a.indexOf("/")!=-1?"/":a.indexOf("-")!=-1?"-":a.indexOf(".")!=-1?".":"/";a=a.split(e);b=b.split(e);if(b.length!=3)return false;e=-1;for(var f,h=-1,d=-1,g=0;g<a.length;g++){f=isNaN(b[g])?0:parseIn...
f||c[a[e]]==0&&b[e]!="00")return false}if(d===-1)return false;else{i=c[a[d]].toString();if(i.length<1||c[a[d]]<1||c[a[d]]>12)return false}if(h===-1)return false;else{i=c[a[h]].toString();if(i.length<1||c[a[h]]<1||c[a[h]]>31||c[a[d]]==2&&c[a[h]]>daysI...
function DaysArray(a){for(var b=1;b<=a;b++){this[b]=31;if(b==4||b==6||b==9||b==11)this[b]=30;if(b==2)this[b]=29}return this}function isEmpty(a){return a.match(/^s+$/)||a==""?true:false}function checkTime(a){var b=/^(\d{1,2}):(\d{2})([ap]m)?$/;if(!isE...
(function(a){var d=null;a.jgrid.extend({searchGrid:function(h){h=a.extend({recreateFilter:false,drag:true,sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:"filters",beforeShowSearch:null,afterShowSearch:null,onInitializeSearch:nu...
I[h.sValue]=r.rules[0].data;I[h.sOper]=r.rules[0].op}else I[h.sFilter]=r;B[0].p.search=v;a.extend(B[0].p.postData,I);B.trigger("reloadGrid",[{page:1}]);h.closeAfterSearch&&x(a("#"+q))}function o(r){r=r!==undefined;var v=a("#"+w.p.id),B=[];v[0].p.sear...
"#gbox_"+w.p.id).hide()}function s(){var r=a(".ui-searchFilter").length;if(r>1){var v=a("#"+q).css("zIndex");a("#"+q).css({zIndex:parseInt(v)+r})}a("#"+q).show();a(".jqgrid-overlay:first","#gbox_"+w.p.id).show();try{a(":input:visible","#"+q)[0].focus...
q))}else{var n=[],m=a("#"+w.p.id).jqGrid("getGridParam","colNames"),F=a("#"+w.p.id).jqGrid("getGridParam","colModel"),f=["eq","ne","lt","le","gt","ge","bw","bn","in","ni","ew","en","cn","nc"],e,j,i,k;k=jQuery.fn.searchFilter.defaults.operators;if(h.s...
itemval:v.index||v.name},this.searchoptions);ignoreHiding=soptions.searchhidden===true;if(typeof soptions.sopt=="undefined")soptions.sopt=h.sopt||f;i=0;soptions.ops=[];if(soptions.sopt.length>0)for(e=0;e<soptions.sopt.length;e++)if((j=a.inArray(sopti...
this.editoptions.value;if(B){soptions.dataValues=[];if(typeof B==="string"){r=B.split(";");for(e=0;e<r.length;e++){v=r[e].split(":");soptions.dataValues[e]={value:v[0],text:v[1]}}}else if(typeof B==="object"){e=0;for(var I in B){soptions.dataValues[e...
searchText:h.Find,windowTitle:h.caption,rulesText:h.rulesText,matchText:h.matchText,onSearch:b,onReset:o,stringResult:h.multipleSearch,ajaxSelectOptions:a.extend({},a.jgrid.ajaxOptions,w.p.ajaxSelectOptions||{})});a(".ui-widget-overlay","#"+q).remove...
q+" table thead tr:first td:first")})}catch(P){}}if(h.multipleSearch===false){a(".ui-del, .ui-add, .ui-del, .ui-add-last, .matchText, .rulesText","#"+q).hide();a("select[name='groupOp']","#"+q).hide()}a.isFunction(h.onInitializeSearch)&&h.onInitializ...
b){d=b=a.extend({top:0,left:0,width:300,height:"auto",dataheight:"auto",modal:false,drag:true,resize:true,url:null,mtype:"POST",clearAfterAdd:true,closeAfterEdit:false,reloadAfterSubmit:true,onInitializeForm:null,beforeInitData:null,beforeShowForm:nu...
closeicon:[],savekey:[false,13],navkeys:[false,38,40],checkOnSubmit:false,checkOnUpdate:false,_savedData:{},processing:false,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:true},a.jgrid.edit,b||{});return this.each(function()...
a(f).jqGrid("getDataIDs"),l=a("#id_g","#"+i).val();return[a.inArray(l,g),g]}function s(){var g=true;a("#FormError","#"+i).hide();if(d.checkOnUpdate){c={};t={};w();J=a.extend({},c,t);if(S=F(J,d._savedData)){a("#"+j).data("disabled",true);a(".confirm",...
this.editoptions.custom_value(a("#"+l,"#"+i),"get");if(c[l]===undefined)throw"e1";}catch(p){p=="e1"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.e...
this).val();t[this.name]=a("option:selected",this).text();break;case "select-multiple":c[this.name]=a(this).val();c[this.name]=c[this.name]?c[this.name].join(","):"";var C=[];a("option:selected",this).each(function(p,E){C[p]=a(E).text()});t[this.name...
ba="",W=1;W<=p;W++)ba+="<td class='CaptionTD ui-widget-content'> </td><td class='DataTD ui-widget-content' style='white-space:pre'> </td>";if(g!="_empty")H=a(l).jqGrid("getInd",g);a(l.p.colModel).each(function(Y){E=this.name;L=(z=this.editr...
else try{y=a.unformat(a("td:eq("+Y+")",l.rows[H]),{rowId:g,colModel:this},Y)}catch(da){y=a("td:eq("+Y+")",l.rows[H]).html()}var U=a.extend({},this.editoptions||{},{id:E,name:E});frmopt=a.extend({},{elmprefix:"",elmsuffix:"",rowabove:false,rowcontent:...
a.jgrid.htmlDecode(y);G=createEl(this.edittype,U,y,false,a.extend({},a.jgrid.ajaxOptions,l.p.ajaxSelectOptions||{}));if(y==""&&this.edittype=="checkbox")y=a(G).attr("offval");if(d.checkOnSubmit||d.checkOnUpdate)d._savedData[E]=y;a(G).addClass("FormEl...
"tr_"+E);a(A).append(ba);a(C).append(A);A[0].rp=X}a("td:eq("+(R-2)+")",A[0]).html(typeof frmopt.label==="undefined"?l.p.colNames[Y]:frmopt.label);a("td:eq("+(R-1)+")",A[0]).append(frmopt.elmprefix).append(G).append(frmopt.elmsuffix);Q[K]=Y;K++}});if(...
d.checkOnUpdate)d._savedData.id=g}return Q}function n(g,l,C){var p,E=0,z,A,K,y,L;if(d.checkOnSubmit||d.checkOnUpdate){d._savedData={};d._savedData.id=g}var G=l.p.colModel;if(g=="_empty"){a(G).each(function(){p=this.name;K=a.extend({},this.editoptions...
A[0].defaultChecked=true;A[0].value=y}else A.attr({checked:"",defaultChecked:""})}else A.val(y)}else if(A[0].type=="checkbox"){A[0].checked=false;A[0].defaultChecked=false;y=a(A).attr("offval")}else if(A[0].type.substr(0,6)=="select")A[0].selectedInd...
l.p.ExpandColumn&&l.p.treeGrid===true)z=a(this).text();else try{z=a.unformat(this,{rowId:g,colModel:G[H]},H)}catch(X){z=a(this).html()}if(f.p.autoencode)z=a.jgrid.htmlDecode(z);if(d.checkOnSubmit===true||d.checkOnUpdate)d._savedData[p]=z;p=a.jgrid.jq...
R=a.map(R,function(W){return a.trim(W)});a("#"+p+" option","#"+C).each(function(){this.selected=!G[H].editoptions.multiple&&(R[0]==a(this).text()||R[0]==a(this).val())?true:G[H].editoptions.multiple?a.inArray(a(this).text(),R)>-1||a.inArray(a(this).v...
a("#"+p,"#"+C).attr("defaultChecked","")}break;case "custom":try{if(G[H].editoptions&&a.isFunction(G[H].editoptions.custom_value))G[H].editoptions.custom_value(a("#"+p,"#"+C),"set",z);else throw"e1";}catch(ba){ba=="e1"?info_dialog(jQuery.jgrid.errors...
E,z;if(a.isFunction(d.beforeCheckValues)){var A=d.beforeCheckValues(c,a("#"+j),c[f.p.id+"_id"]=="_empty"?p.addoper:p.editoper);if(A&&typeof A==="object")c=A}for(var K in c){l=checkValues(c[K],K,f);if(l[0]==false)break}if(l[0]){if(a.isFunction(d.oncli...
a("#FormError","#"+i).show()}else if(!d.processing){d.processing=true;a("#sData","#"+i+"_2").addClass("ui-state-active");z=p.oper;E=p.id;c[z]=a.trim(c[f.p.id+"_id"])=="_empty"?p.addoper:p.editoper;if(c[z]!=p.addoper)c[E]=c[f.p.id+"_id"];else if(c[E]=...
d.errorTextFormat(y):L+" Status: '"+y.statusText+"'. Error code: "+y.status}else if(a.isFunction(d.afterSubmit))l=d.afterSubmit(y,c);if(l[0]===false){a("#FormError>td","#"+i).html(l[1]);a("#FormError","#"+i).show()}else{a.each(f.p.colModel,function()...
else{a(f).jqGrid("addRowData",l[2],c,b.addedrow);a(f).jqGrid("setSelection",l[2])}hideModal("#"+k.themodal,{gb:"#gbox_"+e,jqm:b.jqModal,onClose:d.onClose})}else if(d.clearAfterAdd){d.reloadAfterSubmit?a(f).trigger("reloadGrid"):a(f).jqGrid("addRowDat...
c[E])},1E3)}else f.p.treeGrid===true?a(f).jqGrid("setTreeRow",c[E],c):a(f).jqGrid("setRowData",c[E],c);d.closeAfterEdit&&hideModal("#"+k.themodal,{gb:"#gbox_"+e,jqm:b.jqModal,onClose:d.onClose})}if(a.isFunction(d.afterComplete)){g=y;setTimeout(functi...
"#"+j)[0].focus()}catch(G){}},error:function(y,L,G){a("#FormError>td","#"+i).html(L+" : "+G);a("#FormError","#"+i).show();d.processing=false;a("#"+j).data("disabled",false);a("#sData","#"+i+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,d...
a.isFunction(d.beforeShowForm)?d.beforeShowForm:false,P=a.isFunction(d.afterShowForm)?d.afterShowForm:false,r=a.isFunction(d.beforeInitData)?d.beforeInitData:false,v=a.isFunction(d.onInitializeForm)?d.onInitializeForm:false,B=1,I=0,Z,c,t,J,S;if(h=="n...
"#"+k.modalhead).html(b.caption);a("#FormError","#"+i).hide();if(d.topinfo){a(".topinfo","#"+i+"_2").html(d.topinfo);a(".tinfo","#"+i+"_2").show()}else a(".tinfo","#"+i+"_2").hide();if(d.bottominfo){a(".bottominfo","#"+i+"_2").html(d.bottominfo);a("....
i+"_2").removeClass("ui-state-active")}if(a("#"+j).data("disabled")===true){a(".confirm","#"+k.themodal).hide();a("#"+j).data("disabled",false)}u&&u(a("#"+j));a("#"+k.themodal).data("onClose",d.onClose);viewModal("#"+k.themodal,{gbox:"#gbox_"+e,jqm:b...
this.formoptions;B=Math.max(B,g?g.colpos||0:0);I=Math.max(I,g?g.rowpos||0:0)});var N=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",D;N=a("<form name='FormPost' id='"+j+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:...
B*2+"'></td></tr>");D[0].rp=0;a(O).append(D);D=a("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+B*2+"'>"+d.topinfo+"</td></tr>");D[0].rp=0;a(O).append(D);r&&r(a("#"+j));D=(r=f.p.direction=="rtl"?true:false)?"nData":"pData";var...
var $="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+b.bSubmit+"</a>",aa="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+b.bCancel+"</a>";D="<table border='0' cl...
d.bottominfo+"</td></tr>";D+="</tbody></table>";if(I>0){var V=[];a.each(a(O)[0].rows,function(g,l){V[g]=l});V.sort(function(g,l){if(g.rp>l.rp)return 1;if(g.rp<l.rp)return-1;return 0});a.each(V,function(g,l){a("tbody",O).append(l)})}b.gbox="#gbox_"+e;...
"left")}d.topinfo&&a(".tinfo","#"+i+"_2").show();d.bottominfo&&a(".binfo","#"+i+"_2").show();D=N=null;a("#"+k.themodal).keydown(function(g){var l=g.target;if(a("#"+j).data("disabled")===true)return false;if(d.savekey[0]===true&&g.which==d.savekey[1])...
if(g.which==d.navkeys[1]){a("#pData","#"+i+"_2").trigger("click");return false}if(g.which==d.navkeys[2]){a("#nData","#"+i+"_2").trigger("click");return false}}});if(b.checkOnUpdate){a("a.ui-jqdialog-titlebar-close span","#"+k.themodal).removeClass("j...
b.saveicon);b.closeicon=a.extend([true,"left","ui-icon-close"],b.closeicon);if(b.saveicon[0]==true)a("#sData","#"+i+"_2").addClass(b.saveicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.saveicon[2]+"'></...
b.bYes+"</a>";T="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+b.bNo+"</a>";aa="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:10...
"")+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(N+1)+"'>"+b.saveData+"<br/><br/>"+$+T+aa+"</div>").insertAfter("#"+j);a("#sNew","#"+k.themodal).click(function(){m();a("#"+j).data("disabled",false);a(".confirm","#"+k.t...
"#"+k.themodal).hide();a("#"+j).data("disabled",false);hideModal("#"+k.themodal,{gb:"#gbox_"+e,jqm:b.jqModal,onClose:d.onClose});return false})}v&&v(a("#"+j));h=="_empty"||!d.viewPagerButtons?a("#pData,#nData","#"+i+"_2").hide():a("#pData,#nData","#"...
e,jqm:b.jqModal,onClose:d.onClose});return false});P&&P(a("#"+j));a(".fm-button","#"+k.themodal).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});a("#sData","#"+i+"_2").click(function(){c={};t={}...
"#"+i+"_2").click(function(){if(!s())return false;hideModal("#"+k.themodal,{gb:"#gbox_"+e,jqm:b.jqModal,onClose:d.onClose});return false});a("#nData","#"+i+"_2").click(function(){if(!s())return false;a("#FormError","#"+i).hide();var g=x();g[0]=parseI...
g[1][g[0]+1]);o(g[0]+1,g[1].length-1)}return false});a("#pData","#"+i+"_2").click(function(){if(!s())return false;a("#FormError","#"+i).hide();var g=x();if(g[0]!=-1&&g[1][g[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+j),g...
b){b=a.extend({top:0,left:0,width:0,height:"auto",dataheight:"auto",modal:false,drag:true,resize:true,jqModal:true,closeOnEscape:false,labelswidth:"30%",closeicon:[],navkeys:[false,38,40],onClose:null,beforeShowForm:null,viewPagerButtons:true},a.jgri...
a("#pData","#"+f+"_2").removeClass("ui-state-disabled");c==t?a("#nData","#"+f+"_2").addClass("ui-state-disabled"):a("#nData","#"+f+"_2").removeClass("ui-state-disabled")}function s(){var c=a(n).jqGrid("getDataIDs"),t=a("#id_g","#"+f).val();return[a.i...
"",l=["integer","number","currency"],C=0,p=0,E,z,A,K=1;K<=S;K++)g+=K==1?ca:"<td class='CaptionTD form-view-label ui-widget-content'> </td><td class='DataTD form-view-data ui-widget-content'> </td>";a(t.p.colModel).each(function(){N=this.edi...
0?p:0;V=a(t).jqGrid("getInd",c);a(t.p.colModel).each(function(y){M=this.name;z=false;$=(N=this.editrules&&this.editrules.edithidden===true?false:this.hidden===true?true:false)?"style='display:none'":"";A=typeof this.viewable!="boolean"?true:this.view...
name:M});var L=a.extend({},{rowabove:false,rowcontent:""},this.formoptions||{}),G=parseInt(L.rowpos)||O+1,Q=parseInt((parseInt(L.colpos)||1)*2);if(L.rowabove){var H=a("<tr><td class='contentinfo' colspan='"+S*2+"'>"+L.rowcontent+"</td></tr>");a(J).ap...
t.p.colNames[y]:L.label)+"</b>");a("td:eq("+(Q-1)+")",D[0]).append("<span>"+T+"</span>").attr("id","v_"+M);z&&a("td:eq("+(Q-1)+") span",D[0]).css({"text-align":"right",width:E+"px"});aa[O]=y;O++}});if(O>0){c=a("<tr class='FormData' style='display:non...
c,true)){a("td",D).each(function(O){J=t.p.colModel[O].name;S=t.p.colModel[O].editrules&&t.p.colModel[O].editrules.edithidden===true?false:t.p.colModel[O].hidden===true?true:false;if(J!=="cb"&&J!=="subgrid"&&J!=="rn"){N=J==t.p.ExpandColumn&&t.p.treeGr...
n.p.imgpath;var m=n.p.id,F="ViewGrid_"+m,f="ViewTbl_"+m,e={themodal:"viewmod"+m,modalhead:"viewhd"+m,modalcontent:"viewcnt"+m,scrollelm:F},j=1,i=0;if(a("#"+e.themodal).html()!=null){a(".ui-jqdialog-title","#"+e.modalhead).html(b.caption);a("#FormErro...
0:0);i=Math.max(i,c?c.rowpos||0:0)});var k=isNaN(b.dataheight)?b.dataheight:b.dataheight+"px",u=a("<form name='FormPost' id='"+F+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+k+";'></form>"),P=a("<table id='"+f+"' cla...
v="<a href='javascript:void(0)' id='"+(k?"pData":"nData")+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",B="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-...
true){b.closeOnEscape=false;Z=true}u=a("<span></span>").append(u).append("<table border='0' class='EditTable' id='"+f+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+b.labelswidth+"'>"+(k?v+r:r+v)+"</td><td class='Ed...
a("#pData, #nData","#"+f+"_2").hide();u=null;a("#"+e.themodal).keydown(function(c){if(c.which===27){Z&&hideModal(this,{gb:b.gbox,jqm:b.jqModal,onClose:b.onClose});return false}if(b.navkeys[0]===true){if(c.which===b.navkeys[1]){a("#pData","#"+f+"_2")....
"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.closeicon[2]+"'></span>");a.isFunction(b.beforeShowForm)&&b.beforeShowForm(a("#"+F));viewModal("#"+e.themodal,{gbox:"#gbox_"+m,jqm:b.jqModal,modal:b.modal});a(".fm-button:...
return false});a("#nData","#"+f+"_2").click(function(){a("#FormError","#"+f).hide();var c=s();c[0]=parseInt(c[0]);if(c[0]!=-1&&c[1][c[0]+1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("next",a("#"+F),c[1][c[0]]);q(c[1][c[0]+1],n);a(n).jqGri...
-1&&c[1][c[0]-1]){a.isFunction(b.onclickPgButtons)&&b.onclickPgButtons("prev",a("#"+F),c[1][c[0]]);q(c[1][c[0]-1],n);a(n).jqGrid("setSelection",c[1][c[0]-1]);a.isFunction(b.afterclickPgButtons)&&b.afterclickPgButtons("prev",a("#"+F),c[1][c[0]-1]);x(c...
afterShowForm:null,beforeSubmit:null,onclickSubmit:null,afterSubmit:null,jqModal:true,closeOnEscape:false,delData:{},delicon:[],cancelicon:[],onClose:null,ajaxDelOptions:{},processing:false,serializeDelData:null},a.jgrid.del,b||{});return this.each(f...
if(isArray(h))h=h.join();if(a("#"+j.themodal).html()!=null){a("#DelData>td","#"+n).text(h);a("#DelError","#"+n).hide();if(d.processing===true){d.processing=false;a("#dData","#"+n).removeClass("ui-state-active")}x&&b.beforeShowForm(a("#"+n));viewModal...
i+="<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";i+="<tr id='DelData' style='display:none'><td >"+h+"</td></tr>";i+='<tr><td class="delmsg" style="white-space:pre;">'+b.msg+"</td></tr><tr><td > </td></tr>";i+="</...
("<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+b.bSubmit+"</a>")+" "+("<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+b.bCancel+"</a>")+"</td></tr></tbody>...
b.delicon);b.cancelicon=a.extend([true,"left","ui-icon-cancel"],b.cancelicon);if(b.delicon[0]==true)a("#dData","#"+n+"_2").addClass(b.delicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+b.delicon[2]+"'></s...
q={};var u=a("#DelData>td","#"+n).text();if(typeof b.onclickSubmit==="function")q=b.onclickSubmit(d)||{};if(typeof b.beforeSubmit==="function")k=b.beforeSubmit(u);if(k[0]){var P=d.url?d.url:a(o).jqGrid("getGridParam","editurl");if(!P){k[0]=false;k[1]...
F=f.id;m[F]=u;a.ajax(a.extend({url:P,type:b.mtype,data:a.isFunction(b.serializeDelData)?b.serializeDelData(m):m,complete:function(r,v){if(v!="success"){k[0]=false;k[1]=a.isFunction(d.errorTextFormat)?d.errorTextFormat(r):v+" Status: '"+r.statusText+"...
true)try{a(o).jqGrid("delTreeNode",v[0])}catch(B){}else for(var I=0;I<v.length;I++)a(o).jqGrid("delRowData",v[I]);o.p.selrow=null;o.p.selarrrow=[]}a.isFunction(d.afterComplete)&&setTimeout(function(){d.afterComplete(r,u)},500)}d.processing=false;a("#...
"#"+n+"_2").removeClass("ui-state-active")}},a.jgrid.ajaxOptions,b.ajaxDelOptions))}return false});a("#eData","#"+n+"_2").click(function(){hideModal("#"+j.themodal,{gb:"#gbox_"+w,jqm:b.jqModal,onClose:d.onClose});return false});x&&b.beforeShowForm(a(...
a.extend({edit:true,editicon:"ui-icon-pencil",add:true,addicon:"ui-icon-plus",del:true,delicon:"ui-icon-trash",search:true,searchicon:"ui-icon-search",refresh:true,refreshicon:"ui-icon-refresh",refreshstate:"firstpage",view:false,viewicon:"ui-icon-do...
"string")){if(a("#"+n.themodal).html()==null){if(typeof window.innerWidth!="undefined"){F=window.innerWidth;f=window.innerHeight}else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document....
m.p.id,jqModal:true,drag:true,resize:true,caption:b.alertcap,top:f/2-25,left:F/2-100,width:200,height:"auto",closeOnEscape:b.closeOnEscape},"","",true)}F=1;if(b.cloneToTop&&m.p.toppager)F=2;for(f=0;f<F;f++){var j=a("<table cellspacing='0' cellpadding...
"rtl").css("float","right");if(b.add){x=x||{};e=a("<td class='ui-pg-button ui-corner-all'></td>");a(e).append("<div class='ui-pg-div'><span class='ui-icon "+b.addicon+"'></span>"+b.addtext+"</div>");a("tr",j).append(e);a(e,j).attr({title:b.addtitle||...
a("<td class='ui-pg-button ui-corner-all'></td>");o=o||{};a(e).append("<div class='ui-pg-div'><span class='ui-icon "+b.editicon+"'></span>"+b.edittext+"</div>");a("tr",j).append(e);a(e,j).attr({title:b.edittitle||"",id:o.id||"edit_"+k}).click(functio...
function(){a(this).removeClass("ui-state-hover")});e=null}if(b.view){e=a("<td class='ui-pg-button ui-corner-all'></td>");q=q||{};a(e).append("<div class='ui-pg-div'><span class='ui-icon "+b.viewicon+"'></span>"+b.viewtext+"</div>");a("tr",j).append(e...
function(){a(this).removeClass("ui-state-hover")});e=null}if(b.del){e=a("<td class='ui-pg-button ui-corner-all'></td>");s=s||{};a(e).append("<div class='ui-pg-div'><span class='ui-icon "+b.delicon+"'></span>"+b.deltext+"</div>");a("tr",j).append(e);a...
function(){a(this).removeClass("ui-state-hover")});e=null}if(b.add||b.edit||b.del||b.view)a("tr",j).append("<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>");if(b.search){e=a("<td class='ui-pg-but...
w);return false}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});e=null}if(b.refresh){e=a("<td class='ui-pg-button ui-corner-all'></td>");a(e).append("<div class='ui-pg-div'><span class='ui-ico...
m.clearToolbar(false)}catch(u){}switch(b.refreshstate){case "firstpage":a(m).trigger("reloadGrid",[{page:1}]);break;case "current":a(m).trigger("reloadGrid",[{current:true}]);break}a.isFunction(b.afterRefresh)&&b.afterRefresh();return false}).hover(f...
e=a(j).clone().appendTo("#testpg2").width();a("#testpg2").remove();a(i+"_"+b.position,i).append(j);if(m.p._nvtd){if(e>m.p._nvtd[0]){a(i+"_"+b.position,i).width(e);m.p._nvtd[0]=e}m.p._nvtd[1]=e}j=e=e=null}}})},navButtonAdd:function(h,b){b=a.extend({ca...
b.buttonicon+"'></span>"+b.caption+"</div>");b.id&&a(s).attr("id",b.id);if(b.position=="first")o.rows[0].cells.length===0?a("tr",o).append(s):a("tr td:eq(0)",o).before(s);else a("tr",o).append(s);a(s,o).attr("title",b.title||"").click(function(w){a.i...
a.extend({sepclass:"ui-separator",sepcontent:""},b||{});return this.each(function(){if(this.grid){if(h.indexOf("#")!=0)h="#"+h;var o=a(".navtable",h)[0];if(o){var x="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+b.sepcl...
a("[name="+s+"]",b).each(function(){a(this).val()==x[s]?a(this).attr("checked","checked"):a(this).attr("checked","")}):a("[name="+s+"]",b).val(x[s])}})},FormToGrid:function(h,b,o,x){return this.each(function(){var s=this;if(s.grid){o||(o="set");x||(x...
jQuery.fn.searchFilter=function(h,B){function C(c,i,k){this.$=c;this.add=function(a){a==null?c.find(".ui-add-last").click():c.find(".sf:eq("+a+") .ui-add").click();return this};this.del=function(a){a==null?c.find(".sf:last .ui-del").click():c.find("....
return false}function x(a){jQuery(this).toggleClass("ui-state-active",a.type=="mousedown");return false}function l(a,b){return"<option value='"+a+"'>"+b+"</option>"}function t(a,b,e){return"<select class='"+a+"'"+(e?" style='display:none;'":"")+">"+b...
jQuery.fn.searchFilter.defaults,k),m=-1,q="";jQuery.each(d.groupOps,function(){q+=l(this.op,this.text)});q="<select name='groupOp'>"+q+"</select>";c.html("").addClass("ui-searchFilter").append("<div class='ui-widget-overlay' style='z-index: -1'> ...
d.windowTitle+"</td></tr></thead><tbody><tr class='sf'><td class='fields'></td><td class='ops'></td><td class='data'></td><td><div class='ui-del ui-state-default ui-corner-all'><span class='ui-icon ui-icon-minus'></span></div></td><td><div class='ui-...
d.resetText+"</span></span><span class='ui-search ui-state-default ui-corner-all' style='display: inline-block; float: right;'><span class='ui-icon ui-icon-search' style='float: left;'></span><span style='line-height: 18px; padding: 0 7px 0 3px;'>"+d...
k=c.find("tr.sf");var A=k.find("td.fields"),u=k.find("td.ops"),n=k.find("td.data"),r="";jQuery.each(d.operators,function(){r+=l(this.op,this.text)});r=t("default",r,true);u.append(r);n.append("<input type='text' class='default' style='display:none;' ...
var e=this.dataEvents,j=this.dataInit,p=this.buildSelect;jQuery.ajax(jQuery.extend({url:this.dataUrl,complete:function(f){f=p!=null?jQuery("<div />").append(p(f)):jQuery("<div />").append(f.responseText);f.find("select").addClass("field"+a).hide();n....
g=t("field"+a,g,true);n.append(g)}else if(this.dataEvents!=null||this.dataInit!=null){o=true;g="<input type='text' class='field"+a+"' />";n.append(g)}this.dataInit!=null&&a!=m&&y(".field"+a,this.dataInit);this.dataEvents!=null&&a!=m&&z(".field"+a,thi...
b);if(b[0]==null)b=a.find(".default");b.attr("name","op").show()}):u.find(".default").attr("name","op").show();o?i.change(function(a){var b=a.target.selectedIndex;a=jQuery(a.target).parents("tr.sf").find("td.data");a.find("select,input").removeClass(...
return false});c.find(".ui-del").click(function(a){a=jQuery(a.target).parents(".sf");if(a.siblings(".sf").length>0){d.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&a.find(".hasDatepicker").datepicker("destroy");a.remove()}else{a.find("selec...
jQuery(a.target).parents(".sf");var b=a.clone(true).insertAfter(a);b.find(".ui-state-default").removeClass("ui-state-hover ui-state-active");if(d.clone){b.find("select[name='field']")[0].selectedIndex=a.find("select[name='field']")[0].selectedIndex;i...
b.find("select[name='field']").focus()}d.datepickerFix===true&&jQuery.fn.datepicker!==undefined&&a.find(".hasDatepicker").each(function(){var j=jQuery.data(this,"datepicker").settings;b.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDate...
rules:[]};a.find(".sf").each(function(j){var p=jQuery(this).find("select[name='field'] :selected").val(),g=jQuery(this).find("select[name='op'] :selected").val(),f=jQuery(this).find("input.vdata,select.vdata :selected").val();f+="";f=f.replace(/\\/g,...
jQuery(c.selector);a.find(".ui-del").click();a.find("select[name='groupOp']")[0].selectedIndex=0;d.onReset();return false});c.find(".ui-add-last").click(function(){var a=jQuery(c.selector+" .sf:last"),b=a.clone(true).insertAfter(a);b.find(".ui-state-...
b.find("#"+this.id).unbind().removeAttr("id").removeClass("hasDatepicker").datepicker(e)});b.find("select[name='field']").change();return false})}}return new C(this,h,B)};jQuery.fn.searchFilter.version="1.2.9";
jQuery.fn.searchFilter.defaults={clone:true,datepickerFix:true,onReset:function(h){alert("Reset Clicked. Data Returned: "+h)},onSearch:function(h){alert("Search Clicked. Data Returned: "+h)},onClose:function(h){h.hide()},groupOps:[{op:"AND",text:"all...
{op:"ni",text:"is not in"},{op:"bw",text:"begins with"},{op:"bn",text:"does not begin with"},{op:"ew",text:"ends with"},{op:"en",text:"does not end with"},{op:"cn",text:"contains"},{op:"nc",text:"does not contain"}],matchText:"match",rulesText:"rules...
(function(a){a.jgrid.extend({editRow:function(d,t,i,q,n,u,s,c,f){return this.each(function(){var b=this,k,l,r=0,o=null,p={},h,g;if(b.grid){h=a(b).jqGrid("getInd",d,true);if(h!=false)if((a(h).attr("editable")||"0")=="0"&&!a(h).hasClass("not-editable-r...
"rn"){if(b.p.autoencode)l=a.jgrid.htmlDecode(l);p[k]=l;if(g[j].editable===true){if(o===null)o=j;v?a("span:first",this).html(""):a(this).html("");var e=a.extend({},g[j].editoptions||{},{id:d+"_"+k,name:k});if(!g[j].edittype)g[j].edittype="text";e=crea...
r++}}});if(r>0){p.id=d;b.p.savedRow.push(p);a(h).attr("editable","1");a("td:eq("+o+") input",h).focus();t===true&&a(h).bind("keydown",function(j){j.keyCode===27&&a(b).jqGrid("restoreRow",d,f);if(j.keyCode===13){if(j.target.tagName=="TEXTAREA")return ...
a(p).attr("editable");i=i?i:c.p.editurl;if(l==="1"&&i){var h;a("td",p).each(function(m){h=c.p.colModel[m];f=h.name;if(f!="cb"&&f!="subgrid"&&h.editable===true&&f!="rn"){switch(h.edittype){case "checkbox":var e=["Yes","No"];if(h.editoptions)e=h.editop...
a(e).val();b[f]=b[f]?b[f].join(","):"";a("select > option:selected",this).each(function(y,z){x[y]=a(z).text()});k[f]=x.join(",")}else{b[f]=a("select>option:selected",this).val();k[f]=a("select>option:selected",this).text()}if(h.formatter&&h.formatter...
"function 'custom_value' "+a.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);w=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+a.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose):info_dialog(jQuery.jgrid.errors.errcap,w.mess...
{left:g[0],top:g[1]})}catch(j){alert(o[1])}else{if(b){var v;g=c.p.prmNames;v=g.oper;l=g.id;b[v]=g.editoper;b[l]=d;if(q)b=a.extend({},b,q)}if(i=="clientArray"){b=a.extend({},b,k);c.p.autoencode&&a.each(b,function(m,e){b[m]=a.jgrid.htmlDecode(e)});l=a(...
c.p.serializeRowData(b):b,type:"POST",complete:function(m,e){a("#lui_"+c.p.id).hide();if(e==="success")if((a.isFunction(t)?t(m):true)===true){c.p.autoencode&&a.each(b,function(x,w){b[x]=a.jgrid.htmlDecode(w)});b=a.extend({},b,k);a(c).jqGrid("setRowDa...
u(d,m,e):alert("Error Row: "+d+" Result: "+m.status+":"+m.statusText+" Status: "+e)}},a.jgrid.ajaxOptions,c.p.ajaxRowOptions||{}))}a(p).unbind("keydown")}}}}})},restoreRow:function(d,t){return this.each(function(){var i=this,q,n,u={};if(i.grid){n=a(i...
true&&this.name in i.p.savedRow[q])u[this.name]=i.p.savedRow[q][this.name]});a(i).jqGrid("setRowData",d,u);a(n).attr("editable","0").unbind("keydown");i.p.savedRow.splice(q,1)}a.isFunction(t)&&t(d)}}})}})})(jQuery);
(function(b){b.jgrid.extend({editCell:function(d,e,a){return this.each(function(){var c=this,h,f,g;if(!(!c.grid||c.p.cellEdit!==true)){e=parseInt(e,10);c.p.selrow=c.rows[d].id;c.p.knv||b(c).jqGrid("GridNav");if(c.p.savedRow.length>0){if(a===true)if(d...
")",c.rows[d]);if(c.p.colModel[e].editable===true&&a===true&&!g.hasClass("not-editable-cell")){if(parseInt(c.p.iCol)>=0&&parseInt(c.p.iRow)>=0){b("td:eq("+c.p.iCol+")",c.rows[c.p.iRow]).removeClass("edit-cell ui-state-highlight");b(c.rows[c.p.iRow])....
b.jgrid.htmlDecode(f);if(!c.p.colModel[e].edittype)c.p.colModel[e].edittype="text";c.p.savedRow.push({id:d,ic:e,name:h,v:f});if(b.isFunction(c.p.formatCell)){var j=c.p.formatCell(c.rows[d].id,h,f,d,e);if(j!=undefined)f=j}j=b.extend({},c.p.colModel[e]...
"0");window.setTimeout(function(){b(i).focus()},0);b("input, select, textarea",g).bind("keydown",function(l){if(l.keyCode===27)if(b("input.hasDatepicker",g).length>0)b(".ui-datepicker").is(":hidden")?b(c).jqGrid("restoreCell",d,e):b("input.hasDatepic...
b.isFunction(c.p.afterEditCell)&&c.p.afterEditCell(c.rows[d].id,h,f,d,e)}else{if(parseInt(c.p.iCol)>=0&&parseInt(c.p.iRow)>=0){b("td:eq("+c.p.iCol+")",c.rows[c.p.iRow]).removeClass("edit-cell ui-state-highlight");b(c.rows[c.p.iRow]).removeClass("sele...
d}}})},saveCell:function(d,e){return this.each(function(){var a=this,c;if(!(!a.grid||a.p.cellEdit!==true)){c=a.p.savedRow.length>=1?0:null;if(c!=null){var h=b("td:eq("+e+")",a.rows[d]),f,g,k=a.p.colModel[e],j=k.name,i=b.jgrid.jqID(j);switch(k.edittyp...
b("#"+d+"_"+i+">option:selected",a.rows[d]).text()}if(k.formatter)g=f;break;case "checkbox":var n=["Yes","No"];if(k.editoptions)n=k.editoptions.value.split(":");g=f=b("#"+d+"_"+i,a.rows[d]).attr("checked")?n[0]:n[1];break;case "password":case "text":...
}catch(q){q=="e1"&&info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+b.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);q=="e2"?info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+b.jgrid.edit.msg.novalue,jQuery.jgrid....
if(b.isFunction(a.p.beforeSubmitCell))(c=a.p.beforeSubmitCell(a.rows[d].id,j,f,d,e))||(c={});if(g=="")g=" ";b("input.hasDatepicker",h).length>0&&b("input.hasDatepicker",h).datepicker("hide");if(a.p.cellsubmit=="remote")if(a.p.cellurl){var o={};if(a.p...
o,type:"POST",complete:function(m,p){b("#lui_"+a.p.id).hide();a.grid.hDiv.loading=false;if(p=="success")if(b.isFunction(a.p.afterSubmitCell)){m=a.p.afterSubmitCell(m,o.id,j,f,d,e);if(m[0]===true){b(h).empty();b(a).jqGrid("setCell",a.rows[d].id,e,g);b...
b(a).jqGrid("setCell",a.rows[d].id,e,g);b(h).addClass("dirty-cell");b(a.rows[d]).addClass("edited");b.isFunction(a.p.afterSaveCell)&&a.p.afterSaveCell(a.rows[d].id,j,f,d,e);a.p.savedRow.splice(0,1)}},error:function(m,p){b("#lui_"+a.p.id).hide();a.gri...
b.jgrid.errors.nourl,b.jgrid.edit.bClose);b(a).jqGrid("restoreCell",d,e)}catch(s){}if(a.p.cellsubmit=="clientArray"){b(h).empty();b(a).jqGrid("setCell",a.rows[d].id,e,g);b(h).addClass("dirty-cell");b(a.rows[d]).addClass("edited");b.isFunction(a.p.aft...
d,e)}b.browser.opera?b("#"+a.p.knv).attr("tabindex","-1").focus():window.setTimeout(function(){b("#"+a.p.knv).attr("tabindex","-1").focus()},0)}})},restoreCell:function(d,e){return this.each(function(){var a=this,c;if(!(!a.grid||a.p.cellEdit!==true))...
a.p.savedRow.splice(0,1)}window.setTimeout(function(){b("#"+a.p.knv).attr("tabindex","-1").focus()},0)}})},nextCell:function(d,e){return this.each(function(){var a=this,c=false;if(!(!a.grid||a.p.cellEdit!==true)){for(var h=e+1;h<a.p.colModel.length;h...
true)){for(var h=e-1;h>=0;h--)if(a.p.colModel[h].editable===true){c=h;break}if(c!==false)b(a).jqGrid("editCell",d,c,true);else a.p.savedRow.length>0&&b(a).jqGrid("saveCell",d,e)}})},GridNav:function(){return this.each(function(){function d(g,k,j){if(...
if(j=="vu")if(q<l)b(a.grid.bDiv)[0].scrollTop=b(a.grid.bDiv)[0].scrollTop-a.rows[g].clientHeight}if(j=="h"){j=b(a.grid.bDiv)[0].clientWidth;i=b(a.grid.bDiv)[0].scrollLeft;l=a.rows[g].cells[k].offsetLeft;if(a.rows[g].cells[k].offsetLeft+a.rows[g].cell...
"lft"){j=g+1;for(i=g;i>=0;i--)if(a.p.colModel[i].hidden!==true){j=i;break}}if(k=="rgt"){j=g-1;for(i=g;i<a.p.colModel.length;i++)if(a.p.colModel[i].hidden!==true){j=i;break}}return j}var a=this;if(!(!a.grid||a.p.cellEdit!==true)){a.p.knv=a.p.id+"_kn";...
g.keyCode;if(a.p.direction=="rtl")if(f==37)f=39;else if(f==39)f=37;switch(f){case 38:if(a.p.iRow-1>=0){d(a.p.iRow-1,a.p.iCol,"vu");b(a).jqGrid("editCell",a.p.iRow-1,a.p.iCol,false)}break;case 40:if(a.p.iRow+1<=a.rows.length-1){d(a.p.iRow+1,a.p.iCol,"...
h,"h");b(a).jqGrid("editCell",a.p.iRow,h,false)}break;case 13:parseInt(a.p.iCol,10)>=0&&parseInt(a.p.iRow,10)>=0&&b(a).jqGrid("editCell",a.p.iRow,a.p.iCol,true);break}return false})}})},getChangedCells:function(d){var e=[];d||(d="all");this.each(func...
b.unformat(this,{rowId:a.rows[h].id,colModel:a.p.colModel[g]},g)}catch(k){f[c]=b.jgrid.htmlDecode(b(this).html())}}else try{f[c]=b.unformat(this,{rowId:a.rows[h].id,colModel:a.p.colModel[g]},g)}catch(j){f[c]=b.jgrid.htmlDecode(b(this).html())}});f.id...
(function(b){b.fn.jqm=function(a){var f={overlay:50,closeoverlay:true,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:e,ajaxText:"",target:e,modal:e,toTop:e,onShow:e,onHide:e,onLoad:e};return this.each(function(){if(this._jqm)...
function(a){return o(this,a,"jqmShow")};b.fn.jqmShow=function(a){return this.each(function(){b.jqm.open(this._jqm,a)})};b.fn.jqmHide=function(a){return this.each(function(){b.jqm.close(this._jqm,a)})};b.jqm={hash:{},open:function(a,f){var c=i[a],d=c....
setTimeout(function(){p("bind")},1);k.push(a)}else if(d.overlay>0)d.closeoverlay&&c.w.jqmAddClose(j);else j=e;c.o=j?j.addClass(d.overlayClass).prependTo("body"):e;if(q){b("html,body").css({height:"100%",width:"100%"});if(j){j=j.css({position:"absolut...
g;a.html(d.ajaxText).load(g,function(){d.onLoad&&d.onLoad.call(this,c);h&&c.w.jqmAddClose(b(h,c.w));r(c)})}else h&&c.w.jqmAddClose(b(h,c.w));d.toTop&&c.o&&c.w.before('<span id="jqmP'+c.w[0]._jqm+'"></span>').insertAfter(c.o);d.onShow?d.onShow(c):c.w....
0,i=b.jqm.hash,k=[],q=b.browser.msie&&b.browser.version=="6.0",e=false,r=function(a){var f=b('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0});if(q)if(a.o)a.o.html('<p style="width:100%;height:100%"/>').pr...
f.s)[0])&&s(f);return!a},o=function(a,f,c){return a.each(function(){var d=this._jqm;b(f).each(function(){if(!this[c]){this[c]=[];b(this).click(function(){for(var h in{jqmShow:1,jqmHide:1})for(var g in this[h])i[this[h][g]]&&i[this[h][g]].w[h](this);r...
(function(b){b.jgrid.extend({jqGridImport:function(a){a=b.extend({imptype:"xml",impstring:"",impurl:"",mtype:"GET",impData:{},xmlGrid:{config:"roots>grid",data:"roots>rows"},jsonGrid:{config:"grid",data:"data"},ajaxOptions:{}},a||{});return this.each...
"xmlstring";f.grid.datastr=d;b(e).jqGrid(k).jqGrid("setGridParam",{datatype:i})}else b(e).jqGrid(k)}else alert("xml2json or parse are not present")},j=function(d,g){if(d&&typeof d=="string"){var f=b.jgrid.parse(d);d=f[g.jsonGrid.config];if(g=f[g.json...
g){if(g=="success"){c(d.responseXML,a);b.isFunction(a.importComplete)&&a.importComplete(d)}}},a.ajaxOptions));break;case "xmlstring":if(a.impstring&&typeof a.impstring=="string"){var h=b.jgrid.stringToDoc(a.impstring);if(h){c(h,a);b.isFunction(a.impo...
a.ajaxOptions));break;case "jsonstring":if(a.impstring&&typeof a.impstring=="string"){j(a.impstring,a);b.isFunction(a.importComplete)&&a.importComplete(a.impstring);a.impstring=null}break}})},jqGridExport:function(a){a=b.extend({exptype:"xmlstring",r...
1);c.colModel.splice(0,1)}if(c.treeGrid)for(var j in c.treeReader){c.colNames.splice(c.colNames.length-1);c.colModel.splice(c.colModel.length-1)}switch(a.exptype){case "xmlstring":e="<"+a.root+">"+xmlJsonClass.json2xml(c,a.ident)+"</"+a.root+">";brea...
tag:"excel",exportOptions:{}},a||{});return this.each(function(){$t=this;if(this.grid)if(a.exptype=="remote"){var e=b.extend({},this.p.postData);e[a.oper]=a.tag;e=jQuery.param(e);window.location=a.url+"?"+e}})}})})(jQuery);
var xmlJsonClass={xml2json:function(a,b){if(a.nodeType===9)a=a.documentElement;a=this.toJson(this.toObj(this.removeWhite(a)),a.nodeName,"\t");return"{\n"+b+(b?a.replace(/\t/g,b):a.replace(/\t|\n/g,""))+"\n}"},json2xml:function(a,b){var g=function(d,c...
"@")i+=" "+h.substr(1)+'="'+d[h].toString()+'"';else k=true;i+=k?">":"/>";if(k){for(h in d)if(d.hasOwnProperty(h))if(h==="#text")i+=d[h];else if(h==="#cdata")i+="<![CDATA["+d[h]+"]]\>";else if(h.charAt(0)!=="@")i+=g(d[h],h,j+"\t");i+=(i.charAt(i.leng...
g(a[f],f,"");return b?e.replace(/\t/g,b):e.replace(/\t|\n/g,"")},toObj:function(a){var b={},g=/function/i;if(a.nodeType===1){if(a.attributes.length){var e;for(e=0;e<a.attributes.length;e+=1)b["@"+a.attributes[e].nodeName]=(a.attributes[e].nodeValue||...
a.firstChild;c;c=c.nextSibling)if(c.nodeType===3)b["#text"]=this.escape(c.nodeValue);else if(c.nodeType===4)if(g.test(c.nodeValue))b[c.nodeName]=[b[c.nodeName],c.nodeValue];else b["#cdata"]=this.escape(c.nodeValue);else if(b[c.nodeName])if(b[c.nodeNa...
else if(e)if(a.attributes.length)b["#text"]=this.escape(this.innerXml(a));else{b=this.escape(this.innerXml(a));if(b==="__EMPTY_ARRAY_")b="[]";else if(b==="__EMPTY_STRING_")b=""}else if(f)if(f>1)b=this.escape(this.innerXml(a));else for(c=a.firstChild;...
a.nodeType);return b},toJson:function(a,b,g){var e=b?'"'+b+'"':"";if(a==="[]")e+=b?":[]":"[]";else if(a instanceof Array){var f,d,c=[];d=0;for(f=a.length;d<f;d+=1)c[d]=this.toJson(a[d],"",g+"\t");e+=(b?":[":"[")+(c.length>1?"\n"+g+"\t"+c.join(",\n"+g...
"}"}else if(typeof a==="string"){g=/function/i;f=a.toString();e+=/(^-?\d+\.?\d*$)/.test(f)||g.test(f)||f==="false"||f==="true"?(b&&":")+f:(b&&":")+'"'+a+'"'}else e+=(b&&":")+a.toString();return e},innerXml:function(a){var b="";if("innerHTML"in a)b=a....
g(d);f+="</"+e.nodeName+">"}else f+="/>"}else if(e.nodeType===3)f+=e.nodeValue;else if(e.nodeType===4)f+="<![CDATA["+e.nodeValue+"]]\>";return f};for(a=a.firstChild;a;a=a.nextSibling)b+=g(a)}return b},escape:function(a){return a.replace(/[\\]/g,"\\\\...
b=g}else{b.nodeType===1&&this.removeWhite(b);b=b.nextSibling}return a}};
(function(b){b.jgrid.extend({setColumns:function(a){a=b.extend({top:0,left:0,width:200,height:"auto",dataheight:"auto",modal:false,drag:true,beforeShowForm:null,afterShowForm:null,afterSubmitForm:null,closeOnEscape:true,ShrinkToFit:false,jqModal:fals...
"function"?true:false,k=typeof a.afterShowForm==="function"?true:false,l=typeof a.afterSubmitForm==="function"?true:false,e=c.p.id,d="ColTbl_"+e,f={themodal:"colmod"+e,modalhead:"colhd"+e,modalcontent:"colcnt"+e,scrollelm:d};a.recreateForm===true&&b(...
"px";g="<div id='"+d+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+g+";'>";g+="<table class='ColTable' cellspacing='1' cellpading='2' border='0'><tbody>";for(i=0;i<this.p.colNames.length;i++)c.p.colModel[i].hidedlg||(...
(a.colnameview?" ("+this.p.colModel[i].name+")":"")+"</label></td></tr>");g+="</tbody></table></div>";g+="<table border='0' class='EditTable' id='"+d+"_2'><tbody><tr style='display:block;height:3px;'><td></td></tr><tr><td class='DataTD ui-widget-cont...
a.bCancel+"</a>")+"</td></tr></tbody></table>";a.gbox="#gbox_"+e;createModal(f,g,a,"#gview_"+c.p.id,b("#gview_"+c.p.id)[0]);if(a.saveicon[0]==true)b("#dData","#"+d+"_2").addClass(a.saveicon[1]=="right"?"fm-button-icon-right":"fm-button-icon-left").ap...
b(":input","#"+d).click(function(){var h=this.id.substr(4);if(h){this.checked?b(c).jqGrid("showCol",h):b(c).jqGrid("hideCol",h);a.ShrinkToFit===true&&b(c).jqGrid("setGridWidth",c.grid.width-0.0010,true)}return this}):b("#dData","#"+d+"_2").click(func...
c.p.colModel[i].name);b("#col_"+h,"#"+d).attr("defaultChecked","")}}a.ShrinkToFit===true&&b(c).jqGrid("setGridWidth",c.grid.width-0.0010,true);a.closeAfterSubmit&&hideModal("#"+f.themodal,{gb:"#gbox_"+e,jqm:a.jqModal,onClose:a.onClose});l&&a.afterSub...
j&&a.beforeShowForm(b("#"+d));viewModal("#"+f.themodal,{gbox:"#gbox_"+e,jqm:a.jqModal,jqM:true,modal:a.modal})}k&&a.afterShowForm(b("#"+d))}})}})})(jQuery);
(function(c){c.jgrid.extend({getPostData:function(){var a=this[0];if(a.grid)return a.p.postData},setPostData:function(a){var b=this[0];if(b.grid)if(typeof a==="object")b.p.postData=a;else alert("Error: cannot add a non-object postData value. postData...
b},getPostDataItem:function(a){var b=this[0];if(b.grid)return b.p.postData[a]},removePostDataItem:function(a){var b=this[0];b.grid&&delete b.p.postData[a]},getUserData:function(){var a=this[0];if(a.grid)return a.p.userData},getUserDataItem:function(a...
(function(a){if(a.browser.msie&&a.browser.version==8)a.expr[":"].hidden=function(b){return b.offsetWidth===0||b.offsetHeight===0||b.style.display=="none"};if(a.ui&&a.ui.multiselect&&a.ui.multiselect.prototype._setSelected){var q=a.ui.multiselect.prot...
true}var c=this,g={tolerance:"pointer",axis:"x",items:">th:not(:has(#jqgh_cb,#jqgh_rn,#jqgh_subgrid),:hidden)",placeholder:{element:function(e){return a(document.createElement(e[0].nodeName)).addClass(e[0].className+" ui-sortable-placeholder ui-state...
0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}},update:function(e,h){e=a(h.item).parent();e=a(">th",e);var j={};a.each(c.p.colModel,function(m){j[this.name]=m});var l=[];e.each(function(){var m=a(">div",this).get(0).id.replace(/^jqgh_/,"")...
{update:c.p.sortable};if(g.start){var d=g.start;g.start=function(e,h){i();d.call(this,e,h)}}else g.start=i;if(c.p.sortable.exclude)g.items+=":not("+c.p.sortable.exclude+")";b.sortable(g).data("sortable").floating=true})},columnChooser:function(b){fun...
var g=this;if(!a("#colchooser_"+g[0].p.id).length){var d=a('<div id="colchooser_'+g[0].p.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"></select></div></div>'),e=a("select",d);b=a.extend({width:420,height:240,classna...
modal:false,resizable:false,width:f.width+20}},apply_perm:function(){a("option",e).each(function(){this.selected?g.jqGrid("showCol",h[this.value].name):g.jqGrid("hideCol",h[this.value].name)});var f=[];a("option[selected]",e).each(function(){f.push(p...
msel_opts:{}},a.jgrid.col,b||{});b.caption&&d.attr("title",b.caption);if(b.classname){d.addClass(classname);e.addClass(classname)}if(b.width){a(">div",d).css({width:b.width,margin:"0 auto"});e.css("width",b.width)}if(b.height){a(">div",d).css("height...
(this.hidden?"":"selected='selected'")+">"+j[f]+"</option>")});var n=a.isFunction(b.dlog_opts)?b.dlog_opts.call(g,b):b.dlog_opts;c(b.dlog,d,n);n=a.isFunction(b.msel_opts)?b.msel_opts.call(g,b):b.msel_opts;c(b.msel,e,n)}},sortableRows:function(b){retu...
b.update;delete b.update}else b._update_=false;b.start=function(c,g){a(g.item).css("border-width","0px");a("td",g.item).each(function(h){this.style.width=i.grid.cols[h].style.width});if(i.p.subGrid){var d=a(g.item).attr("id");try{a(i).jqGrid("collaps...
[c,g])};a("tbody:first",i).sortable(b)}})},gridDnD:function(b){return this.each(function(){function i(){var d=a.data(c,"dnd");a("tr.jqgrow:not(.ui-draggable)",c).draggable(a.isFunction(d.drag)?d.drag.call(a(c),d):d.drag)}var c=this;if(c.grid)if(!c.p....
h){if(c.p.subGrid){var j=a(h.helper).attr("id");try{a(c).jqGrid("collapseSubGridRow",j)}catch(l){}}for(j=0;j<a.data(c,"dnd").connectWith.length;j++)a(a.data(c,"dnd").connectWith[j]).jqGrid("getGridParam","reccount")=="0"&&a(a.data(c,"dnd").connectWit...
a(h.helper).attr("id");a(c).jqGrid("delRowData",j)}for(j=0;j<a.data(c,"dnd").connectWith.length;j++)a(a.data(c,"dnd").connectWith[j]).jqGrid("delRowData","jqg_empty_row");d.onstop&&a.isFunction(d.onstop)&&d.onstop.call(a(c),e,h)}},d.drag_opts||{})},d...
j=a("#"+c.id).jqGrid("getRowData",j);if(!d.dropbyname){var l=0,m={},n,f=a("#"+this.id).jqGrid("getGridParam","colModel");try{for(key in j){if(f[l]){n=f[l].name;m[n]=j[key]}l++}j=m}catch(k){}}h.helper.dropped=true;if(d.beforedrop&&a.isFunction(d.befor...
o}a("#"+this.id).jqGrid("addRowData",o,j,d.droppos)}d.ondrop&&a.isFunction(d.ondrop)&&d.ondrop.call(this,e,h,j)}},d.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hov...
function(d){return a.trim(d)});a.data(c,"dnd",b);c.p.reccount!="0"&&!c.p.jqgdnd&&i();c.p.jqgdnd=true;for(var g=0;g<b.connectWith.length;g++)a(b.connectWith[g]).droppable(a.isFunction(b.drop)?b.drop.call(a(c),b):b.drop)}}}})},gridResize:function(b){re...
false;b.stop=function(c,g){a(i).jqGrid("setGridParam",{height:a("#gview_"+i.p.id+" .ui-jqgrid-bdiv").height()});a(i).jqGrid("setGridWidth",g.size.width,b.shrinkToFit);b._stop_&&b._stop_.call(i,c,g)};b.alsoResize=b._alsoResize_?eval("("+("{'#gview_"+i...
( run in 0.327 second using v1.01-cache-2.11-cpan-119454b85a5 )