(function(a){a.fn.extend({setColumns:function(b){b=a.extend({top:0,left:0,width:200,height:195,modal:false,drag:true,closeicon:"ico-close.gif",beforeShowForm:null,afterShowForm:null,afterSubmitForm:null},a.jgrid.col,b||{});return this.each(function(){var j=this;if(!j.grid){return}var l=typeof b.beforeShowForm==="function"?true:false;var d=typeof b.afterShowForm==="function"?true:false;var e=typeof b.afterSubmitForm==="function"?true:false;if(!b.imgpath){b.imgpath=j.p.imgpath}var c=a("table:first",j.grid.bDiv).attr("id");var f={themodal:"colmod"+c,modalhead:"colhd"+c,modalcontent:"colcnt"+c};var h="ColTbl_"+c;if(a("#"+f.themodal).html()!=null){if(l){b.beforeShowForm(a("#"+h))}viewModal("#"+f.themodal,{modal:b.modal});if(d){b.afterShowForm(a("#"+h))}}else{var k=a("
");for(i=0;i")}}var g="";var m="";a(k).append(""+g+" "+m+"");createModal(f,k,b,j.grid.hDiv,j.grid.hDiv);if(b.drag){DnRModal("#"+f.themodal,"#"+f.modalhead+" td.modaltext")}a("#dData","#"+h).click(function(n){for(i=0;i