view release on metacpan or search on metacpan
root/js/jquery-1.3.2.min.js view on Meta::CPAN
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;thi...
/*
* Sizzle CSS Selector Engine - v0.9.3
* Copyright 2009, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==...
root/js/jquery-ui-1.7.2.custom.min.js view on Meta::CPAN
/*
* jQuery UI 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},c...
* jQuery UI Draggable 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Draggables
*
* Depends:
* ui.core.js
root/js/jquery-ui-1.7.2.custom.min.js view on Meta::CPAN
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Resizables
*
* Depends:
* ui.core.js
*/
(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_propor...
* jQuery UI Selectable 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Selectables
*
* Depends:
* ui.core.js
root/js/jquery-ui-1.7.2.custom.min.js view on Meta::CPAN
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Datepicker
*
* Depends:
* ui.core.js
*/
(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._main...
* jQuery UI Effects 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Effects/
*/
jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data(...
* jQuery UI Effects Blind 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Effects/Blind
*
* Depends:
* effects.core.js
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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("#...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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(...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...