view release on metacpan or search on metacpan
root/css/excite-bike/jquery-ui-1.7.2.custom.css view on Meta::CPAN
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=segoe%20ui,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=3px&bgColorHeader=f9f9f9&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=100&bord...
*/
root/css/excite-bike/jquery-ui-1.7.2.custom.css view on Meta::CPAN
.ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; }
.ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; }
.ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; }
.ui-corner-top { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; }
.ui-corner-bottom { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; }
.ui-corner-right { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; }
.ui-corner-left { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; }
.ui-corner-all { -moz-border-radius: 3px; -webkit-border-radius: 3px; }
/* Overlays */
.ui-widget-overlay { background: #e6b900 url(images/ui-bg_flat_0_e6b900_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
.ui-widget-shadow { margin: 6px 0 0 6px; padding: 0px; background: #e69700 url(images/ui-bg_flat_0_e69700_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 3px; -webkit-border-radius: 3px; }/* Resizable
----------------------------------*/
.ui-resizable { position: relative;}
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; }
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; }
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; }
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; }
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
root/css/ui.jqgrid.css view on Meta::CPAN
.ui-jqgrid{position:relative;font-size:11px;}.ui-jqgrid .ui-jqgrid-view{position:relative;left:0;top:0;padding:.0em;}.ui-jqgrid .ui-jqgrid-titlebar{padding:.3em .2em .2em .3em;position:relative;border-left:0 none;border-right:0 none;border-top:0 none...
.ui-searchFilter{display:none;position:absolute;z-index:770;overflow:visible;}.ui-searchFilter table{position:relative;margin:0;width:auto;}.ui-searchFilter table td{margin:0;padding:1px;}.ui-searchFilter table td input,.ui-searchFilter table td sele...
root/js/Changes.txt view on Meta::CPAN
3.5 beta (buld5)
FormEditing
===========
- added options checkOnUpdate (default false) in editGridRow method.
Also available in add and edit mode.
When this option is set to true the behaviour as follow:
When something is changed in the form and the user click on
Cancel button, navigator buttons, close button (on upper right corner of the
form), in overlay (if available) or press Esc key (if set) a message box apper
asking the user to save the changes, not to save the changes and go back in the
form or cancel all changes (this will close the modal form)
Note that checkOnSubmit option will work only when a submit button is clicked.
When nothing is changed we contionue with the action.
- added option - rowabove (default false) in colModel formoptions
When set to true a new empty row is added above this row in form editing.
- added option - rowcontent (default empty) in colModel formoptions.
This option have sense only when rowabove option is set to true.
With this option is possible to set a content to the new added empty row in
root/js/Changes.txt view on Meta::CPAN
FormEditing
===========
In all methods that deal with the modals are added the following options (thanks
to Faserline Team: www.faserline.com)
jqModal: true. The default value is true. How it works. If set to true, first
jqGrid checks if the jqModal plugin is available. If this plugin is available we
create the modal according to the jqModal plugin. If this plugin is not
available jqGrid create its own modal. The difference between the jqModal window
and jqGrid modal window is that the overlay covers only the grid, but not the
entry page as jqModal does. If this option is set to false, jqGrid will create
its own modal as described above even if jqModal is available.
The only exception here is searchGrid method created with the new searchFilter
plugin, where this option is not available. In this method a jqGrid modal window
is used.
closeOnEscape : false. Default false. When set to true the modal window can be
closed with ESC key.
root/js/jquery-ui-1.7.2.custom.min.js view on Meta::CPAN
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Dialog
*
* Depends:
* ui.core.js
* ui.draggable.js
* ui.resizable.js
*/
(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",...
* jQuery UI Tabs 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/Tabs
*
* Depends:
* ui.core.js
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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&&(...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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(...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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,...
root/js/jquery.jqGrid.min.js view on Meta::CPAN
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...