remove unused jquery easyui stuff
190
html/javascript/jquery/easyloader.js
vendored
|
@ -1,190 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function(){
|
||||
var _1={draggable:{js:"jquery.draggable.js"},droppable:{js:"jquery.droppable.js"},resizable:{js:"jquery.resizable.js"},linkbutton:{js:"jquery.linkbutton.js",css:"linkbutton.css"},progressbar:{js:"jquery.progressbar.js",css:"progressbar.css"},pagination:{js:"jquery.pagination.js",css:"pagination.css",dependencies:["linkbutton"]},datagrid:{js:"jquery.datagrid.js",css:"datagrid.css",dependencies:["panel","resizable","linkbutton","pagination"]},treegrid:{js:"jquery.treegrid.js",css:"tree.css",dependencies:["datagrid"]},propertygrid:{js:"jquery.propertygrid.js",css:"propertygrid.css",dependencies:["datagrid"]},panel:{js:"jquery.panel.js",css:"panel.css"},window:{js:"jquery.window.js",css:"window.css",dependencies:["resizable","draggable","panel"]},dialog:{js:"jquery.dialog.js",css:"dialog.css",dependencies:["linkbutton","window"]},messager:{js:"jquery.messager.js",css:"messager.css",dependencies:["linkbutton","window","progressbar"]},layout:{js:"jquery.layout.js",css:"layout.css",dependencies:["resizable","panel"]},form:{js:"jquery.form.js"},menu:{js:"jquery.menu.js",css:"menu.css"},tabs:{js:"jquery.tabs.js",css:"tabs.css",dependencies:["panel","linkbutton"]},splitbutton:{js:"jquery.splitbutton.js",css:"splitbutton.css",dependencies:["linkbutton","menu"]},menubutton:{js:"jquery.menubutton.js",css:"menubutton.css",dependencies:["linkbutton","menu"]},accordion:{js:"jquery.accordion.js",css:"accordion.css",dependencies:["panel"]},calendar:{js:"jquery.calendar.js",css:"calendar.css"},combo:{js:"jquery.combo.js",css:"combo.css",dependencies:["panel","validatebox"]},combobox:{js:"jquery.combobox.js",css:"combobox.css",dependencies:["combo"]},combotree:{js:"jquery.combotree.js",dependencies:["combo","tree"]},combogrid:{js:"jquery.combogrid.js",dependencies:["combo","datagrid"]},validatebox:{js:"jquery.validatebox.js",css:"validatebox.css"},numberbox:{js:"jquery.numberbox.js",dependencies:["validatebox"]},searchbox:{js:"jquery.searchbox.js",css:"searchbox.css",dependencies:["menubutton"]},spinner:{js:"jquery.spinner.js",css:"spinner.css",dependencies:["validatebox"]},numberspinner:{js:"jquery.numberspinner.js",dependencies:["spinner","numberbox"]},timespinner:{js:"jquery.timespinner.js",dependencies:["spinner"]},tree:{js:"jquery.tree.js",css:"tree.css",dependencies:["draggable","droppable"]},datebox:{js:"jquery.datebox.js",css:"datebox.css",dependencies:["calendar","combo"]},datetimebox:{js:"jquery.datetimebox.js",dependencies:["datebox","timespinner"]},slider:{js:"jquery.slider.js",dependencies:["draggable"]},parser:{js:"jquery.parser.js"}};
|
||||
var _2={"af":"easyui-lang-af.js","bg":"easyui-lang-bg.js","ca":"easyui-lang-ca.js","cs":"easyui-lang-cs.js","cz":"easyui-lang-cz.js","da":"easyui-lang-da.js","de":"easyui-lang-de.js","en":"easyui-lang-en.js","fr":"easyui-lang-fr.js","nl":"easyui-lang-nl.js","zh_CN":"easyui-lang-zh_CN.js","zh_TW":"easyui-lang-zh_TW.js"};
|
||||
var _3={};
|
||||
function _4(_5,_6){
|
||||
var _7=false;
|
||||
var _8=document.createElement("script");
|
||||
_8.type="text/javascript";
|
||||
_8.language="javascript";
|
||||
_8.src=_5;
|
||||
_8.onload=_8.onreadystatechange=function(){
|
||||
if(!_7&&(!_8.readyState||_8.readyState=="loaded"||_8.readyState=="complete")){
|
||||
_7=true;
|
||||
_8.onload=_8.onreadystatechange=null;
|
||||
if(_6){
|
||||
_6.call(_8);
|
||||
}
|
||||
}
|
||||
};
|
||||
document.getElementsByTagName("head")[0].appendChild(_8);
|
||||
};
|
||||
function _9(_a,_b){
|
||||
_4(_a,function(){
|
||||
document.getElementsByTagName("head")[0].removeChild(this);
|
||||
if(_b){
|
||||
_b();
|
||||
}
|
||||
});
|
||||
};
|
||||
function _c(_d,_e){
|
||||
var _f=document.createElement("link");
|
||||
_f.rel="stylesheet";
|
||||
_f.type="text/css";
|
||||
_f.media="screen";
|
||||
_f.href=_d;
|
||||
document.getElementsByTagName("head")[0].appendChild(_f);
|
||||
if(_e){
|
||||
_e.call(_f);
|
||||
}
|
||||
};
|
||||
function _10(_11,_12){
|
||||
_3[_11]="loading";
|
||||
var _13=_1[_11];
|
||||
var _14="loading";
|
||||
var _15=(easyloader.css&&_13["css"])?"loading":"loaded";
|
||||
if(easyloader.css&&_13["css"]){
|
||||
if(/^http/i.test(_13["css"])){
|
||||
var url=_13["css"];
|
||||
}else{
|
||||
var url=easyloader.base+"themes/"+easyloader.theme+"/"+_13["css"];
|
||||
}
|
||||
_c(url,function(){
|
||||
_15="loaded";
|
||||
if(_14=="loaded"&&_15=="loaded"){
|
||||
_16();
|
||||
}
|
||||
});
|
||||
}
|
||||
if(/^http/i.test(_13["js"])){
|
||||
var url=_13["js"];
|
||||
}else{
|
||||
var url=easyloader.base+"plugins/"+_13["js"];
|
||||
}
|
||||
_4(url,function(){
|
||||
_14="loaded";
|
||||
if(_14=="loaded"&&_15=="loaded"){
|
||||
_16();
|
||||
}
|
||||
});
|
||||
function _16(){
|
||||
_3[_11]="loaded";
|
||||
easyloader.onProgress(_11);
|
||||
if(_12){
|
||||
_12();
|
||||
}
|
||||
};
|
||||
};
|
||||
function _17(_18,_19){
|
||||
var mm=[];
|
||||
var _1a=false;
|
||||
if(typeof _18=="string"){
|
||||
add(_18);
|
||||
}else{
|
||||
for(var i=0;i<_18.length;i++){
|
||||
add(_18[i]);
|
||||
}
|
||||
}
|
||||
function add(_1b){
|
||||
if(!_1[_1b]){
|
||||
return;
|
||||
}
|
||||
var d=_1[_1b]["dependencies"];
|
||||
if(d){
|
||||
for(var i=0;i<d.length;i++){
|
||||
add(d[i]);
|
||||
}
|
||||
}
|
||||
mm.push(_1b);
|
||||
};
|
||||
function _1c(){
|
||||
if(_19){
|
||||
_19();
|
||||
}
|
||||
easyloader.onLoad(_18);
|
||||
};
|
||||
var _1d=0;
|
||||
function _1e(){
|
||||
if(mm.length){
|
||||
var m=mm[0];
|
||||
if(!_3[m]){
|
||||
_1a=true;
|
||||
_10(m,function(){
|
||||
mm.shift();
|
||||
_1e();
|
||||
});
|
||||
}else{
|
||||
if(_3[m]=="loaded"){
|
||||
mm.shift();
|
||||
_1e();
|
||||
}else{
|
||||
if(_1d<easyloader.timeout){
|
||||
_1d+=10;
|
||||
setTimeout(arguments.callee,10);
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(easyloader.locale&&_1a==true&&_2[easyloader.locale]){
|
||||
var url=easyloader.base+"locale/"+_2[easyloader.locale];
|
||||
_9(url,function(){
|
||||
_1c();
|
||||
});
|
||||
}else{
|
||||
_1c();
|
||||
}
|
||||
}
|
||||
};
|
||||
_1e();
|
||||
};
|
||||
easyloader={modules:_1,locales:_2,base:".",theme:"default",css:true,locale:null,timeout:2000,load:function(_1f,_20){
|
||||
if(/\.css$/i.test(_1f)){
|
||||
if(/^http/i.test(_1f)){
|
||||
_c(_1f,_20);
|
||||
}else{
|
||||
_c(easyloader.base+_1f,_20);
|
||||
}
|
||||
}else{
|
||||
if(/\.js$/i.test(_1f)){
|
||||
if(/^http/i.test(_1f)){
|
||||
_4(_1f,_20);
|
||||
}else{
|
||||
_4(easyloader.base+_1f,_20);
|
||||
}
|
||||
}else{
|
||||
_17(_1f,_20);
|
||||
}
|
||||
}
|
||||
},onProgress:function(_21){
|
||||
},onLoad:function(_22){
|
||||
}};
|
||||
var _23=document.getElementsByTagName("script");
|
||||
for(var i=0;i<_23.length;i++){
|
||||
var src=_23[i].src;
|
||||
if(!src){
|
||||
continue;
|
||||
}
|
||||
var m=src.match(/easyloader\.js(\W|$)/i);
|
||||
if(m){
|
||||
easyloader.base=src.substring(0,m.index);
|
||||
}
|
||||
}
|
||||
window.using=easyloader.load;
|
||||
if(window.jQuery){
|
||||
jQuery(function(){
|
||||
easyloader.load("parser",function(){
|
||||
jQuery.parser.parse();
|
||||
});
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
190
html/javascript/jquery/jquery-easyui/easyloader.js
vendored
|
@ -1,190 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function(){
|
||||
var _1={draggable:{js:"jquery.draggable.js"},droppable:{js:"jquery.droppable.js"},resizable:{js:"jquery.resizable.js"},linkbutton:{js:"jquery.linkbutton.js",css:"linkbutton.css"},progressbar:{js:"jquery.progressbar.js",css:"progressbar.css"},pagination:{js:"jquery.pagination.js",css:"pagination.css",dependencies:["linkbutton"]},datagrid:{js:"jquery.datagrid.js",css:"datagrid.css",dependencies:["panel","resizable","linkbutton","pagination"]},treegrid:{js:"jquery.treegrid.js",css:"tree.css",dependencies:["datagrid"]},propertygrid:{js:"jquery.propertygrid.js",css:"propertygrid.css",dependencies:["datagrid"]},panel:{js:"jquery.panel.js",css:"panel.css"},window:{js:"jquery.window.js",css:"window.css",dependencies:["resizable","draggable","panel"]},dialog:{js:"jquery.dialog.js",css:"dialog.css",dependencies:["linkbutton","window"]},messager:{js:"jquery.messager.js",css:"messager.css",dependencies:["linkbutton","window","progressbar"]},layout:{js:"jquery.layout.js",css:"layout.css",dependencies:["resizable","panel"]},form:{js:"jquery.form.js"},menu:{js:"jquery.menu.js",css:"menu.css"},tabs:{js:"jquery.tabs.js",css:"tabs.css",dependencies:["panel","linkbutton"]},splitbutton:{js:"jquery.splitbutton.js",css:"splitbutton.css",dependencies:["linkbutton","menu"]},menubutton:{js:"jquery.menubutton.js",css:"menubutton.css",dependencies:["linkbutton","menu"]},accordion:{js:"jquery.accordion.js",css:"accordion.css",dependencies:["panel"]},calendar:{js:"jquery.calendar.js",css:"calendar.css"},combo:{js:"jquery.combo.js",css:"combo.css",dependencies:["panel","validatebox"]},combobox:{js:"jquery.combobox.js",css:"combobox.css",dependencies:["combo"]},combotree:{js:"jquery.combotree.js",dependencies:["combo","tree"]},combogrid:{js:"jquery.combogrid.js",dependencies:["combo","datagrid"]},validatebox:{js:"jquery.validatebox.js",css:"validatebox.css"},numberbox:{js:"jquery.numberbox.js",dependencies:["validatebox"]},searchbox:{js:"jquery.searchbox.js",css:"searchbox.css",dependencies:["menubutton"]},spinner:{js:"jquery.spinner.js",css:"spinner.css",dependencies:["validatebox"]},numberspinner:{js:"jquery.numberspinner.js",dependencies:["spinner","numberbox"]},timespinner:{js:"jquery.timespinner.js",dependencies:["spinner"]},tree:{js:"jquery.tree.js",css:"tree.css",dependencies:["draggable","droppable"]},datebox:{js:"jquery.datebox.js",css:"datebox.css",dependencies:["calendar","combo"]},datetimebox:{js:"jquery.datetimebox.js",dependencies:["datebox","timespinner"]},slider:{js:"jquery.slider.js",dependencies:["draggable"]},parser:{js:"jquery.parser.js"}};
|
||||
var _2={"af":"easyui-lang-af.js","bg":"easyui-lang-bg.js","ca":"easyui-lang-ca.js","cs":"easyui-lang-cs.js","cz":"easyui-lang-cz.js","da":"easyui-lang-da.js","de":"easyui-lang-de.js","en":"easyui-lang-en.js","fr":"easyui-lang-fr.js","nl":"easyui-lang-nl.js","zh_CN":"easyui-lang-zh_CN.js","zh_TW":"easyui-lang-zh_TW.js"};
|
||||
var _3={};
|
||||
function _4(_5,_6){
|
||||
var _7=false;
|
||||
var _8=document.createElement("script");
|
||||
_8.type="text/javascript";
|
||||
_8.language="javascript";
|
||||
_8.src=_5;
|
||||
_8.onload=_8.onreadystatechange=function(){
|
||||
if(!_7&&(!_8.readyState||_8.readyState=="loaded"||_8.readyState=="complete")){
|
||||
_7=true;
|
||||
_8.onload=_8.onreadystatechange=null;
|
||||
if(_6){
|
||||
_6.call(_8);
|
||||
}
|
||||
}
|
||||
};
|
||||
document.getElementsByTagName("head")[0].appendChild(_8);
|
||||
};
|
||||
function _9(_a,_b){
|
||||
_4(_a,function(){
|
||||
document.getElementsByTagName("head")[0].removeChild(this);
|
||||
if(_b){
|
||||
_b();
|
||||
}
|
||||
});
|
||||
};
|
||||
function _c(_d,_e){
|
||||
var _f=document.createElement("link");
|
||||
_f.rel="stylesheet";
|
||||
_f.type="text/css";
|
||||
_f.media="screen";
|
||||
_f.href=_d;
|
||||
document.getElementsByTagName("head")[0].appendChild(_f);
|
||||
if(_e){
|
||||
_e.call(_f);
|
||||
}
|
||||
};
|
||||
function _10(_11,_12){
|
||||
_3[_11]="loading";
|
||||
var _13=_1[_11];
|
||||
var _14="loading";
|
||||
var _15=(easyloader.css&&_13["css"])?"loading":"loaded";
|
||||
if(easyloader.css&&_13["css"]){
|
||||
if(/^http/i.test(_13["css"])){
|
||||
var url=_13["css"];
|
||||
}else{
|
||||
var url=easyloader.base+"themes/"+easyloader.theme+"/"+_13["css"];
|
||||
}
|
||||
_c(url,function(){
|
||||
_15="loaded";
|
||||
if(_14=="loaded"&&_15=="loaded"){
|
||||
_16();
|
||||
}
|
||||
});
|
||||
}
|
||||
if(/^http/i.test(_13["js"])){
|
||||
var url=_13["js"];
|
||||
}else{
|
||||
var url=easyloader.base+"plugins/"+_13["js"];
|
||||
}
|
||||
_4(url,function(){
|
||||
_14="loaded";
|
||||
if(_14=="loaded"&&_15=="loaded"){
|
||||
_16();
|
||||
}
|
||||
});
|
||||
function _16(){
|
||||
_3[_11]="loaded";
|
||||
easyloader.onProgress(_11);
|
||||
if(_12){
|
||||
_12();
|
||||
}
|
||||
};
|
||||
};
|
||||
function _17(_18,_19){
|
||||
var mm=[];
|
||||
var _1a=false;
|
||||
if(typeof _18=="string"){
|
||||
add(_18);
|
||||
}else{
|
||||
for(var i=0;i<_18.length;i++){
|
||||
add(_18[i]);
|
||||
}
|
||||
}
|
||||
function add(_1b){
|
||||
if(!_1[_1b]){
|
||||
return;
|
||||
}
|
||||
var d=_1[_1b]["dependencies"];
|
||||
if(d){
|
||||
for(var i=0;i<d.length;i++){
|
||||
add(d[i]);
|
||||
}
|
||||
}
|
||||
mm.push(_1b);
|
||||
};
|
||||
function _1c(){
|
||||
if(_19){
|
||||
_19();
|
||||
}
|
||||
easyloader.onLoad(_18);
|
||||
};
|
||||
var _1d=0;
|
||||
function _1e(){
|
||||
if(mm.length){
|
||||
var m=mm[0];
|
||||
if(!_3[m]){
|
||||
_1a=true;
|
||||
_10(m,function(){
|
||||
mm.shift();
|
||||
_1e();
|
||||
});
|
||||
}else{
|
||||
if(_3[m]=="loaded"){
|
||||
mm.shift();
|
||||
_1e();
|
||||
}else{
|
||||
if(_1d<easyloader.timeout){
|
||||
_1d+=10;
|
||||
setTimeout(arguments.callee,10);
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(easyloader.locale&&_1a==true&&_2[easyloader.locale]){
|
||||
var url=easyloader.base+"locale/"+_2[easyloader.locale];
|
||||
_9(url,function(){
|
||||
_1c();
|
||||
});
|
||||
}else{
|
||||
_1c();
|
||||
}
|
||||
}
|
||||
};
|
||||
_1e();
|
||||
};
|
||||
easyloader={modules:_1,locales:_2,base:".",theme:"default",css:true,locale:null,timeout:2000,load:function(_1f,_20){
|
||||
if(/\.css$/i.test(_1f)){
|
||||
if(/^http/i.test(_1f)){
|
||||
_c(_1f,_20);
|
||||
}else{
|
||||
_c(easyloader.base+_1f,_20);
|
||||
}
|
||||
}else{
|
||||
if(/\.js$/i.test(_1f)){
|
||||
if(/^http/i.test(_1f)){
|
||||
_4(_1f,_20);
|
||||
}else{
|
||||
_4(easyloader.base+_1f,_20);
|
||||
}
|
||||
}else{
|
||||
_17(_1f,_20);
|
||||
}
|
||||
}
|
||||
},onProgress:function(_21){
|
||||
},onLoad:function(_22){
|
||||
}};
|
||||
var _23=document.getElementsByTagName("script");
|
||||
for(var i=0;i<_23.length;i++){
|
||||
var src=_23[i].src;
|
||||
if(!src){
|
||||
continue;
|
||||
}
|
||||
var m=src.match(/easyloader\.js(\W|$)/i);
|
||||
if(m){
|
||||
easyloader.base=src.substring(0,m.index);
|
||||
}
|
||||
}
|
||||
window.using=easyloader.load;
|
||||
if(window.jQuery){
|
||||
jQuery(function(){
|
||||
easyloader.load("parser",function(){
|
||||
jQuery.parser.parse();
|
||||
});
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
10550
html/javascript/jquery/jquery-easyui/jquery.easyui.min.js
vendored
|
@ -1,233 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"accordion").options;
|
||||
var _4=$.data(_2,"accordion").panels;
|
||||
var cc=$(_2);
|
||||
if(_3.fit==true){
|
||||
var p=cc.parent();
|
||||
p.addClass("panel-noscroll");
|
||||
_3.width=p.width();
|
||||
_3.height=p.height();
|
||||
}
|
||||
if(_3.width>0){
|
||||
cc._outerWidth(_3.width);
|
||||
}
|
||||
var _5="auto";
|
||||
if(_3.height>0){
|
||||
cc._outerHeight(_3.height);
|
||||
var _6=_4.length?_4[0].panel("header").css("height","").outerHeight():"auto";
|
||||
var _5=cc.height()-(_4.length-1)*_6;
|
||||
}
|
||||
for(var i=0;i<_4.length;i++){
|
||||
var _7=_4[i];
|
||||
var _8=_7.panel("header");
|
||||
_8._outerHeight(_6);
|
||||
_7.panel("resize",{width:cc.width(),height:_5});
|
||||
}
|
||||
};
|
||||
function _9(_a){
|
||||
var _b=$.data(_a,"accordion").panels;
|
||||
for(var i=0;i<_b.length;i++){
|
||||
var _c=_b[i];
|
||||
if(_c.panel("options").collapsed==false){
|
||||
return _c;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
function _d(_e,_f,_10){
|
||||
var _11=$.data(_e,"accordion").panels;
|
||||
for(var i=0;i<_11.length;i++){
|
||||
var _12=_11[i];
|
||||
if(_12.panel("options").title==_f){
|
||||
if(_10){
|
||||
_11.splice(i,1);
|
||||
}
|
||||
return _12;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
function _13(_14){
|
||||
var cc=$(_14);
|
||||
cc.addClass("accordion");
|
||||
if(cc.attr("border")=="false"){
|
||||
cc.addClass("accordion-noborder");
|
||||
}else{
|
||||
cc.removeClass("accordion-noborder");
|
||||
}
|
||||
var _15=cc.children("div[selected]");
|
||||
cc.children("div").not(_15).attr("collapsed","true");
|
||||
if(_15.length==0){
|
||||
cc.children("div:first").attr("collapsed","false");
|
||||
}
|
||||
var _16=[];
|
||||
cc.children("div").each(function(){
|
||||
var pp=$(this);
|
||||
_16.push(pp);
|
||||
_19(_14,pp,{});
|
||||
});
|
||||
cc.bind("_resize",function(e,_17){
|
||||
var _18=$.data(_14,"accordion").options;
|
||||
if(_18.fit==true||_17){
|
||||
_1(_14);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return {accordion:cc,panels:_16};
|
||||
};
|
||||
function _19(_1a,pp,_1b){
|
||||
pp.panel($.extend({},_1b,{collapsible:false,minimizable:false,maximizable:false,closable:false,doSize:false,tools:[{iconCls:"accordion-collapse",handler:function(){
|
||||
var _1c=$.data(_1a,"accordion").options.animate;
|
||||
if(pp.panel("options").collapsed){
|
||||
_28(_1a);
|
||||
pp.panel("expand",_1c);
|
||||
}else{
|
||||
_28(_1a);
|
||||
pp.panel("collapse",_1c);
|
||||
}
|
||||
return false;
|
||||
}}],onBeforeExpand:function(){
|
||||
var _1d=_9(_1a);
|
||||
if(_1d){
|
||||
var _1e=$(_1d).panel("header");
|
||||
_1e.removeClass("accordion-header-selected");
|
||||
_1e.find(".accordion-collapse").triggerHandler("click");
|
||||
}
|
||||
var _1e=pp.panel("header");
|
||||
_1e.addClass("accordion-header-selected");
|
||||
_1e.find(".accordion-collapse").removeClass("accordion-expand");
|
||||
},onExpand:function(){
|
||||
var _1f=$.data(_1a,"accordion").options;
|
||||
_1f.onSelect.call(_1a,pp.panel("options").title);
|
||||
},onBeforeCollapse:function(){
|
||||
var _20=pp.panel("header");
|
||||
_20.removeClass("accordion-header-selected");
|
||||
_20.find(".accordion-collapse").addClass("accordion-expand");
|
||||
}}));
|
||||
pp.panel("body").addClass("accordion-body");
|
||||
pp.panel("header").addClass("accordion-header").click(function(){
|
||||
$(this).find(".accordion-collapse").triggerHandler("click");
|
||||
return false;
|
||||
});
|
||||
};
|
||||
function _21(_22,_23){
|
||||
var _24=$.data(_22,"accordion").options;
|
||||
var _25=$.data(_22,"accordion").panels;
|
||||
var _26=_9(_22);
|
||||
if(_26&&_26.panel("options").title==_23){
|
||||
return;
|
||||
}
|
||||
var _27=_d(_22,_23);
|
||||
if(_27){
|
||||
_27.panel("header").triggerHandler("click");
|
||||
}else{
|
||||
if(_26){
|
||||
_26.panel("header").addClass("accordion-header-selected");
|
||||
_24.onSelect.call(_22,_26.panel("options").title);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _28(_29){
|
||||
var _2a=$.data(_29,"accordion").panels;
|
||||
for(var i=0;i<_2a.length;i++){
|
||||
_2a[i].stop(true,true);
|
||||
}
|
||||
};
|
||||
function add(_2b,_2c){
|
||||
var _2d=$.data(_2b,"accordion").options;
|
||||
var _2e=$.data(_2b,"accordion").panels;
|
||||
_28(_2b);
|
||||
_2c.collapsed=_2c.selected==undefined?true:_2c.selected;
|
||||
var pp=$("<div></div>").appendTo(_2b);
|
||||
_2e.push(pp);
|
||||
_19(_2b,pp,_2c);
|
||||
_1(_2b);
|
||||
_2d.onAdd.call(_2b,_2c.title);
|
||||
_21(_2b,_2c.title);
|
||||
};
|
||||
function _2f(_30,_31){
|
||||
var _32=$.data(_30,"accordion").options;
|
||||
var _33=$.data(_30,"accordion").panels;
|
||||
_28(_30);
|
||||
if(_32.onBeforeRemove.call(_30,_31)==false){
|
||||
return;
|
||||
}
|
||||
var _34=_d(_30,_31,true);
|
||||
if(_34){
|
||||
_34.panel("destroy");
|
||||
if(_33.length){
|
||||
_1(_30);
|
||||
var _35=_9(_30);
|
||||
if(!_35){
|
||||
_21(_30,_33[0].panel("options").title);
|
||||
}
|
||||
}
|
||||
}
|
||||
_32.onRemove.call(_30,_31);
|
||||
};
|
||||
$.fn.accordion=function(_36,_37){
|
||||
if(typeof _36=="string"){
|
||||
return $.fn.accordion.methods[_36](this,_37);
|
||||
}
|
||||
_36=_36||{};
|
||||
return this.each(function(){
|
||||
var _38=$.data(this,"accordion");
|
||||
var _39;
|
||||
if(_38){
|
||||
_39=$.extend(_38.options,_36);
|
||||
_38.opts=_39;
|
||||
}else{
|
||||
_39=$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_36);
|
||||
var r=_13(this);
|
||||
$.data(this,"accordion",{options:_39,accordion:r.accordion,panels:r.panels});
|
||||
}
|
||||
_1(this);
|
||||
_21(this);
|
||||
});
|
||||
};
|
||||
$.fn.accordion.methods={options:function(jq){
|
||||
return $.data(jq[0],"accordion").options;
|
||||
},panels:function(jq){
|
||||
return $.data(jq[0],"accordion").panels;
|
||||
},resize:function(jq){
|
||||
return jq.each(function(){
|
||||
_1(this);
|
||||
});
|
||||
},getSelected:function(jq){
|
||||
return _9(jq[0]);
|
||||
},getPanel:function(jq,_3a){
|
||||
return _d(jq[0],_3a);
|
||||
},select:function(jq,_3b){
|
||||
return jq.each(function(){
|
||||
_21(this,_3b);
|
||||
});
|
||||
},add:function(jq,_3c){
|
||||
return jq.each(function(){
|
||||
add(this,_3c);
|
||||
});
|
||||
},remove:function(jq,_3d){
|
||||
return jq.each(function(){
|
||||
_2f(this,_3d);
|
||||
});
|
||||
}};
|
||||
$.fn.accordion.parseOptions=function(_3e){
|
||||
var t=$(_3e);
|
||||
return {width:(parseInt(_3e.style.width)||undefined),height:(parseInt(_3e.style.height)||undefined),fit:(t.attr("fit")?t.attr("fit")=="true":undefined),border:(t.attr("border")?t.attr("border")=="true":undefined),animate:(t.attr("animate")?t.attr("animate")=="true":undefined)};
|
||||
};
|
||||
$.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,onSelect:function(_3f){
|
||||
},onAdd:function(_40){
|
||||
},onBeforeRemove:function(_41){
|
||||
},onRemove:function(_42){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,318 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"calendar").options;
|
||||
var t=$(_2);
|
||||
if(_3.fit==true){
|
||||
var p=t.parent();
|
||||
_3.width=p.width();
|
||||
_3.height=p.height();
|
||||
}
|
||||
var _4=t.find(".calendar-header");
|
||||
t._outerWidth(_3.width);
|
||||
t._outerHeight(_3.height);
|
||||
t.find(".calendar-body")._outerHeight(t.height()-_4.outerHeight());
|
||||
};
|
||||
function _5(_6){
|
||||
$(_6).addClass("calendar").wrapInner("<div class=\"calendar-header\">"+"<div class=\"calendar-prevmonth\"></div>"+"<div class=\"calendar-nextmonth\"></div>"+"<div class=\"calendar-prevyear\"></div>"+"<div class=\"calendar-nextyear\"></div>"+"<div class=\"calendar-title\">"+"<span>Aprial 2010</span>"+"</div>"+"</div>"+"<div class=\"calendar-body\">"+"<div class=\"calendar-menu\">"+"<div class=\"calendar-menu-year-inner\">"+"<span class=\"calendar-menu-prev\"></span>"+"<span><input class=\"calendar-menu-year\" type=\"text\"></input></span>"+"<span class=\"calendar-menu-next\"></span>"+"</div>"+"<div class=\"calendar-menu-month-inner\">"+"</div>"+"</div>"+"</div>");
|
||||
$(_6).find(".calendar-title span").hover(function(){
|
||||
$(this).addClass("calendar-menu-hover");
|
||||
},function(){
|
||||
$(this).removeClass("calendar-menu-hover");
|
||||
}).click(function(){
|
||||
var _7=$(_6).find(".calendar-menu");
|
||||
if(_7.is(":visible")){
|
||||
_7.hide();
|
||||
}else{
|
||||
_14(_6);
|
||||
}
|
||||
});
|
||||
$(".calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear",_6).hover(function(){
|
||||
$(this).addClass("calendar-nav-hover");
|
||||
},function(){
|
||||
$(this).removeClass("calendar-nav-hover");
|
||||
});
|
||||
$(_6).find(".calendar-nextmonth").click(function(){
|
||||
_9(_6,1);
|
||||
});
|
||||
$(_6).find(".calendar-prevmonth").click(function(){
|
||||
_9(_6,-1);
|
||||
});
|
||||
$(_6).find(".calendar-nextyear").click(function(){
|
||||
_f(_6,1);
|
||||
});
|
||||
$(_6).find(".calendar-prevyear").click(function(){
|
||||
_f(_6,-1);
|
||||
});
|
||||
$(_6).bind("_resize",function(){
|
||||
var _8=$.data(_6,"calendar").options;
|
||||
if(_8.fit==true){
|
||||
_1(_6);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
};
|
||||
function _9(_a,_b){
|
||||
var _c=$.data(_a,"calendar").options;
|
||||
_c.month+=_b;
|
||||
if(_c.month>12){
|
||||
_c.year++;
|
||||
_c.month=1;
|
||||
}else{
|
||||
if(_c.month<1){
|
||||
_c.year--;
|
||||
_c.month=12;
|
||||
}
|
||||
}
|
||||
_d(_a);
|
||||
var _e=$(_a).find(".calendar-menu-month-inner");
|
||||
_e.find("td.calendar-selected").removeClass("calendar-selected");
|
||||
_e.find("td:eq("+(_c.month-1)+")").addClass("calendar-selected");
|
||||
};
|
||||
function _f(_10,_11){
|
||||
var _12=$.data(_10,"calendar").options;
|
||||
_12.year+=_11;
|
||||
_d(_10);
|
||||
var _13=$(_10).find(".calendar-menu-year");
|
||||
_13.val(_12.year);
|
||||
};
|
||||
function _14(_15){
|
||||
var _16=$.data(_15,"calendar").options;
|
||||
$(_15).find(".calendar-menu").show();
|
||||
if($(_15).find(".calendar-menu-month-inner").is(":empty")){
|
||||
$(_15).find(".calendar-menu-month-inner").empty();
|
||||
var t=$("<table></table>").appendTo($(_15).find(".calendar-menu-month-inner"));
|
||||
var idx=0;
|
||||
for(var i=0;i<3;i++){
|
||||
var tr=$("<tr></tr>").appendTo(t);
|
||||
for(var j=0;j<4;j++){
|
||||
$("<td class=\"calendar-menu-month\"></td>").html(_16.months[idx++]).attr("abbr",idx).appendTo(tr);
|
||||
}
|
||||
}
|
||||
$(_15).find(".calendar-menu-prev,.calendar-menu-next").hover(function(){
|
||||
$(this).addClass("calendar-menu-hover");
|
||||
},function(){
|
||||
$(this).removeClass("calendar-menu-hover");
|
||||
});
|
||||
$(_15).find(".calendar-menu-next").click(function(){
|
||||
var y=$(_15).find(".calendar-menu-year");
|
||||
if(!isNaN(y.val())){
|
||||
y.val(parseInt(y.val())+1);
|
||||
}
|
||||
});
|
||||
$(_15).find(".calendar-menu-prev").click(function(){
|
||||
var y=$(_15).find(".calendar-menu-year");
|
||||
if(!isNaN(y.val())){
|
||||
y.val(parseInt(y.val()-1));
|
||||
}
|
||||
});
|
||||
$(_15).find(".calendar-menu-year").keypress(function(e){
|
||||
if(e.keyCode==13){
|
||||
_17();
|
||||
}
|
||||
});
|
||||
$(_15).find(".calendar-menu-month").hover(function(){
|
||||
$(this).addClass("calendar-menu-hover");
|
||||
},function(){
|
||||
$(this).removeClass("calendar-menu-hover");
|
||||
}).click(function(){
|
||||
var _18=$(_15).find(".calendar-menu");
|
||||
_18.find(".calendar-selected").removeClass("calendar-selected");
|
||||
$(this).addClass("calendar-selected");
|
||||
_17();
|
||||
});
|
||||
}
|
||||
function _17(){
|
||||
var _19=$(_15).find(".calendar-menu");
|
||||
var _1a=_19.find(".calendar-menu-year").val();
|
||||
var _1b=_19.find(".calendar-selected").attr("abbr");
|
||||
if(!isNaN(_1a)){
|
||||
_16.year=parseInt(_1a);
|
||||
_16.month=parseInt(_1b);
|
||||
_d(_15);
|
||||
}
|
||||
_19.hide();
|
||||
};
|
||||
var _1c=$(_15).find(".calendar-body");
|
||||
var _1d=$(_15).find(".calendar-menu");
|
||||
var _1e=_1d.find(".calendar-menu-year-inner");
|
||||
var _1f=_1d.find(".calendar-menu-month-inner");
|
||||
_1e.find("input").val(_16.year).focus();
|
||||
_1f.find("td.calendar-selected").removeClass("calendar-selected");
|
||||
_1f.find("td:eq("+(_16.month-1)+")").addClass("calendar-selected");
|
||||
_1d._outerWidth(_1c.outerWidth());
|
||||
_1d._outerHeight(_1c.outerHeight());
|
||||
_1f._outerHeight(_1d.height()-_1e.outerHeight());
|
||||
};
|
||||
function _20(_21,_22,_23){
|
||||
var _24=$.data(_21,"calendar").options;
|
||||
var _25=[];
|
||||
var _26=new Date(_22,_23,0).getDate();
|
||||
for(var i=1;i<=_26;i++){
|
||||
_25.push([_22,_23,i]);
|
||||
}
|
||||
var _27=[],_28=[];
|
||||
while(_25.length>0){
|
||||
var _29=_25.shift();
|
||||
_28.push(_29);
|
||||
var day=new Date(_29[0],_29[1]-1,_29[2]).getDay();
|
||||
if(day==(_24.firstDay==0?7:_24.firstDay)-1){
|
||||
_27.push(_28);
|
||||
_28=[];
|
||||
}
|
||||
}
|
||||
if(_28.length){
|
||||
_27.push(_28);
|
||||
}
|
||||
var _2a=_27[0];
|
||||
if(_2a.length<7){
|
||||
while(_2a.length<7){
|
||||
var _2b=_2a[0];
|
||||
var _29=new Date(_2b[0],_2b[1]-1,_2b[2]-1);
|
||||
_2a.unshift([_29.getFullYear(),_29.getMonth()+1,_29.getDate()]);
|
||||
}
|
||||
}else{
|
||||
var _2b=_2a[0];
|
||||
var _28=[];
|
||||
for(var i=1;i<=7;i++){
|
||||
var _29=new Date(_2b[0],_2b[1]-1,_2b[2]-i);
|
||||
_28.unshift([_29.getFullYear(),_29.getMonth()+1,_29.getDate()]);
|
||||
}
|
||||
_27.unshift(_28);
|
||||
}
|
||||
var _2c=_27[_27.length-1];
|
||||
while(_2c.length<7){
|
||||
var _2d=_2c[_2c.length-1];
|
||||
var _29=new Date(_2d[0],_2d[1]-1,_2d[2]+1);
|
||||
_2c.push([_29.getFullYear(),_29.getMonth()+1,_29.getDate()]);
|
||||
}
|
||||
if(_27.length<6){
|
||||
var _2d=_2c[_2c.length-1];
|
||||
var _28=[];
|
||||
for(var i=1;i<=7;i++){
|
||||
var _29=new Date(_2d[0],_2d[1]-1,_2d[2]+i);
|
||||
_28.push([_29.getFullYear(),_29.getMonth()+1,_29.getDate()]);
|
||||
}
|
||||
_27.push(_28);
|
||||
}
|
||||
return _27;
|
||||
};
|
||||
function _d(_2e){
|
||||
var _2f=$.data(_2e,"calendar").options;
|
||||
$(_2e).find(".calendar-title span").html(_2f.months[_2f.month-1]+" "+_2f.year);
|
||||
var _30=$(_2e).find("div.calendar-body");
|
||||
_30.find(">table").remove();
|
||||
var t=$("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><thead></thead><tbody></tbody></table>").prependTo(_30);
|
||||
var tr=$("<tr></tr>").appendTo(t.find("thead"));
|
||||
for(var i=_2f.firstDay;i<_2f.weeks.length;i++){
|
||||
tr.append("<th>"+_2f.weeks[i]+"</th>");
|
||||
}
|
||||
for(var i=0;i<_2f.firstDay;i++){
|
||||
tr.append("<th>"+_2f.weeks[i]+"</th>");
|
||||
}
|
||||
var _31=_20(_2e,_2f.year,_2f.month);
|
||||
for(var i=0;i<_31.length;i++){
|
||||
var _32=_31[i];
|
||||
var tr=$("<tr></tr>").appendTo(t.find("tbody"));
|
||||
for(var j=0;j<_32.length;j++){
|
||||
var day=_32[j];
|
||||
$("<td class=\"calendar-day calendar-other-month\"></td>").attr("abbr",day[0]+","+day[1]+","+day[2]).html(day[2]).appendTo(tr);
|
||||
}
|
||||
}
|
||||
t.find("td[abbr^=\""+_2f.year+","+_2f.month+"\"]").removeClass("calendar-other-month");
|
||||
var now=new Date();
|
||||
var _33=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate();
|
||||
t.find("td[abbr=\""+_33+"\"]").addClass("calendar-today");
|
||||
if(_2f.current){
|
||||
t.find(".calendar-selected").removeClass("calendar-selected");
|
||||
var _34=_2f.current.getFullYear()+","+(_2f.current.getMonth()+1)+","+_2f.current.getDate();
|
||||
t.find("td[abbr=\""+_34+"\"]").addClass("calendar-selected");
|
||||
}
|
||||
var _35=6-_2f.firstDay;
|
||||
var _36=_35+1;
|
||||
if(_35>=7){
|
||||
_35-=7;
|
||||
}
|
||||
if(_36>=7){
|
||||
_36-=7;
|
||||
}
|
||||
t.find("tr").find("td:eq("+_35+")").addClass("calendar-saturday");
|
||||
t.find("tr").find("td:eq("+_36+")").addClass("calendar-sunday");
|
||||
t.find("td").hover(function(){
|
||||
$(this).addClass("calendar-hover");
|
||||
},function(){
|
||||
$(this).removeClass("calendar-hover");
|
||||
}).click(function(){
|
||||
t.find(".calendar-selected").removeClass("calendar-selected");
|
||||
$(this).addClass("calendar-selected");
|
||||
var _37=$(this).attr("abbr").split(",");
|
||||
_2f.current=new Date(_37[0],parseInt(_37[1])-1,_37[2]);
|
||||
_2f.onSelect.call(_2e,_2f.current);
|
||||
});
|
||||
};
|
||||
$.fn.calendar=function(_38,_39){
|
||||
if(typeof _38=="string"){
|
||||
return $.fn.calendar.methods[_38](this,_39);
|
||||
}
|
||||
_38=_38||{};
|
||||
return this.each(function(){
|
||||
var _3a=$.data(this,"calendar");
|
||||
if(_3a){
|
||||
$.extend(_3a.options,_38);
|
||||
}else{
|
||||
_3a=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_38)});
|
||||
_5(this);
|
||||
}
|
||||
if(_3a.options.border==false){
|
||||
$(this).addClass("calendar-noborder");
|
||||
}
|
||||
_1(this);
|
||||
_d(this);
|
||||
$(this).find("div.calendar-menu").hide();
|
||||
});
|
||||
};
|
||||
$.fn._outerWidth=function(_3b){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).width(_3b);
|
||||
}else{
|
||||
$(this).width(_3b-($(this).outerWidth()-$(this).width()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn._outerHeight=function(_3c){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).height(_3c);
|
||||
}else{
|
||||
$(this).height(_3c-($(this).outerHeight()-$(this).height()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.calendar.methods={options:function(jq){
|
||||
return $.data(jq[0],"calendar").options;
|
||||
},resize:function(jq){
|
||||
return jq.each(function(){
|
||||
_1(this);
|
||||
});
|
||||
},moveTo:function(jq,_3d){
|
||||
return jq.each(function(){
|
||||
$(this).calendar({year:_3d.getFullYear(),month:_3d.getMonth()+1,current:_3d});
|
||||
});
|
||||
}};
|
||||
$.fn.calendar.parseOptions=function(_3e){
|
||||
var t=$(_3e);
|
||||
return {width:(parseInt(_3e.style.width)||undefined),height:(parseInt(_3e.style.height)||undefined),firstDay:(parseInt(t.attr("firstDay"))||undefined),fit:(t.attr("fit")?t.attr("fit")=="true":undefined),border:(t.attr("border")?t.attr("border")=="true":undefined)};
|
||||
};
|
||||
$.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date(),onSelect:function(_3f){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,390 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2,_3){
|
||||
var _4=$.data(_2,"combo").options;
|
||||
var _5=$.data(_2,"combo").combo;
|
||||
var _6=$.data(_2,"combo").panel;
|
||||
if(_3){
|
||||
_4.width=_3;
|
||||
}
|
||||
_5.appendTo("body");
|
||||
if(isNaN(_4.width)){
|
||||
_4.width=_5.find("input.combo-text").outerWidth();
|
||||
}
|
||||
var _7=0;
|
||||
if(_4.hasDownArrow){
|
||||
_7=_5.find(".combo-arrow").outerWidth();
|
||||
}
|
||||
_5._outerWidth(_4.width);
|
||||
_5.find("input.combo-text").width(_5.width()-_7);
|
||||
_6.panel("resize",{width:(_4.panelWidth?_4.panelWidth:_5.outerWidth()),height:_4.panelHeight});
|
||||
_5.insertAfter(_2);
|
||||
};
|
||||
function _8(_9){
|
||||
var _a=$.data(_9,"combo").options;
|
||||
var _b=$.data(_9,"combo").combo;
|
||||
if(_a.hasDownArrow){
|
||||
_b.find(".combo-arrow").show();
|
||||
}else{
|
||||
_b.find(".combo-arrow").hide();
|
||||
}
|
||||
};
|
||||
function _c(_d){
|
||||
$(_d).addClass("combo-f").hide();
|
||||
var _e=$("<span class=\"combo\"></span>").insertAfter(_d);
|
||||
var _f=$("<input type=\"text\" class=\"combo-text\">").appendTo(_e);
|
||||
$("<span><span class=\"combo-arrow\"></span></span>").appendTo(_e);
|
||||
$("<input type=\"hidden\" class=\"combo-value\">").appendTo(_e);
|
||||
var _10=$("<div class=\"combo-panel\"></div>").appendTo("body");
|
||||
_10.panel({doSize:false,closed:true,style:{position:"absolute",zIndex:10},onOpen:function(){
|
||||
$(this).panel("resize");
|
||||
}});
|
||||
var _11=$(_d).attr("name");
|
||||
if(_11){
|
||||
_e.find("input.combo-value").attr("name",_11);
|
||||
$(_d).removeAttr("name").attr("comboName",_11);
|
||||
}
|
||||
_f.attr("autocomplete","off");
|
||||
return {combo:_e,panel:_10};
|
||||
};
|
||||
function _12(_13){
|
||||
var _14=$.data(_13,"combo").combo.find("input.combo-text");
|
||||
_14.validatebox("destroy");
|
||||
$.data(_13,"combo").panel.panel("destroy");
|
||||
$.data(_13,"combo").combo.remove();
|
||||
$(_13).remove();
|
||||
};
|
||||
function _15(_16){
|
||||
var _17=$.data(_16,"combo");
|
||||
var _18=_17.options;
|
||||
var _19=$.data(_16,"combo").combo;
|
||||
var _1a=$.data(_16,"combo").panel;
|
||||
var _1b=_19.find(".combo-text");
|
||||
var _1c=_19.find(".combo-arrow");
|
||||
$(document).unbind(".combo").bind("mousedown.combo",function(e){
|
||||
$("div.combo-panel").panel("close");
|
||||
});
|
||||
_19.unbind(".combo");
|
||||
_1a.unbind(".combo");
|
||||
_1b.unbind(".combo");
|
||||
_1c.unbind(".combo");
|
||||
if(!_18.disabled){
|
||||
_1a.bind("mousedown.combo",function(e){
|
||||
return false;
|
||||
});
|
||||
_1b.bind("mousedown.combo",function(e){
|
||||
e.stopPropagation();
|
||||
}).bind("keydown.combo",function(e){
|
||||
switch(e.keyCode){
|
||||
case 38:
|
||||
_18.keyHandler.up.call(_16);
|
||||
break;
|
||||
case 40:
|
||||
_18.keyHandler.down.call(_16);
|
||||
break;
|
||||
case 13:
|
||||
e.preventDefault();
|
||||
_18.keyHandler.enter.call(_16);
|
||||
return false;
|
||||
case 9:
|
||||
case 27:
|
||||
_25(_16);
|
||||
break;
|
||||
default:
|
||||
if(_18.editable){
|
||||
if(_17.timer){
|
||||
clearTimeout(_17.timer);
|
||||
}
|
||||
_17.timer=setTimeout(function(){
|
||||
var q=_1b.val();
|
||||
if(_17.previousValue!=q){
|
||||
_17.previousValue=q;
|
||||
_1d(_16);
|
||||
_18.keyHandler.query.call(_16,_1b.val());
|
||||
_29(_16,true);
|
||||
}
|
||||
},_18.delay);
|
||||
}
|
||||
}
|
||||
});
|
||||
_1c.bind("click.combo",function(){
|
||||
if(_1a.is(":visible")){
|
||||
_25(_16);
|
||||
}else{
|
||||
$("div.combo-panel").panel("close");
|
||||
_1d(_16);
|
||||
}
|
||||
_1b.focus();
|
||||
}).bind("mouseenter.combo",function(){
|
||||
$(this).addClass("combo-arrow-hover");
|
||||
}).bind("mouseleave.combo",function(){
|
||||
$(this).removeClass("combo-arrow-hover");
|
||||
}).bind("mousedown.combo",function(){
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
||||
function _1d(_1e){
|
||||
var _1f=$.data(_1e,"combo").options;
|
||||
var _20=$.data(_1e,"combo").combo;
|
||||
var _21=$.data(_1e,"combo").panel;
|
||||
if($.fn.window){
|
||||
_21.panel("panel").css("z-index",$.fn.window.defaults.zIndex++);
|
||||
}
|
||||
_21.panel("move",{left:_20.offset().left,top:_22()});
|
||||
_21.panel("open");
|
||||
_1f.onShowPanel.call(_1e);
|
||||
(function(){
|
||||
if(_21.is(":visible")){
|
||||
_21.panel("move",{left:_23(),top:_22()});
|
||||
setTimeout(arguments.callee,200);
|
||||
}
|
||||
})();
|
||||
function _23(){
|
||||
var _24=_20.offset().left;
|
||||
if(_24+_21.outerWidth()>$(window).width()+$(document).scrollLeft()){
|
||||
_24=$(window).width()+$(document).scrollLeft()-_21.outerWidth();
|
||||
}
|
||||
if(_24<0){
|
||||
_24=0;
|
||||
}
|
||||
return _24;
|
||||
};
|
||||
function _22(){
|
||||
var top=_20.offset().top+_20.outerHeight();
|
||||
if(top+_21.outerHeight()>$(window).height()+$(document).scrollTop()){
|
||||
top=_20.offset().top-_21.outerHeight();
|
||||
}
|
||||
if(top<$(document).scrollTop()){
|
||||
top=_20.offset().top+_20.outerHeight();
|
||||
}
|
||||
return top;
|
||||
};
|
||||
};
|
||||
function _25(_26){
|
||||
var _27=$.data(_26,"combo").options;
|
||||
var _28=$.data(_26,"combo").panel;
|
||||
_28.panel("close");
|
||||
_27.onHidePanel.call(_26);
|
||||
};
|
||||
function _29(_2a,_2b){
|
||||
var _2c=$.data(_2a,"combo").options;
|
||||
var _2d=$.data(_2a,"combo").combo.find("input.combo-text");
|
||||
_2d.validatebox(_2c);
|
||||
if(_2b){
|
||||
_2d.validatebox("validate");
|
||||
_2d.trigger("mouseleave");
|
||||
}
|
||||
};
|
||||
function _2e(_2f,_30){
|
||||
var _31=$.data(_2f,"combo").options;
|
||||
var _32=$.data(_2f,"combo").combo;
|
||||
if(_30){
|
||||
_31.disabled=true;
|
||||
$(_2f).attr("disabled",true);
|
||||
_32.find(".combo-value").attr("disabled",true);
|
||||
_32.find(".combo-text").attr("disabled",true);
|
||||
}else{
|
||||
_31.disabled=false;
|
||||
$(_2f).removeAttr("disabled");
|
||||
_32.find(".combo-value").removeAttr("disabled");
|
||||
_32.find(".combo-text").removeAttr("disabled");
|
||||
}
|
||||
};
|
||||
function _33(_34){
|
||||
var _35=$.data(_34,"combo").options;
|
||||
var _36=$.data(_34,"combo").combo;
|
||||
if(_35.multiple){
|
||||
_36.find("input.combo-value").remove();
|
||||
}else{
|
||||
_36.find("input.combo-value").val("");
|
||||
}
|
||||
_36.find("input.combo-text").val("");
|
||||
};
|
||||
function _37(_38){
|
||||
var _39=$.data(_38,"combo").combo;
|
||||
return _39.find("input.combo-text").val();
|
||||
};
|
||||
function _3a(_3b,_3c){
|
||||
var _3d=$.data(_3b,"combo").combo;
|
||||
_3d.find("input.combo-text").val(_3c);
|
||||
_29(_3b,true);
|
||||
$.data(_3b,"combo").previousValue=_3c;
|
||||
};
|
||||
function _3e(_3f){
|
||||
var _40=[];
|
||||
var _41=$.data(_3f,"combo").combo;
|
||||
_41.find("input.combo-value").each(function(){
|
||||
_40.push($(this).val());
|
||||
});
|
||||
return _40;
|
||||
};
|
||||
function _42(_43,_44){
|
||||
var _45=$.data(_43,"combo").options;
|
||||
var _46=_3e(_43);
|
||||
var _47=$.data(_43,"combo").combo;
|
||||
_47.find("input.combo-value").remove();
|
||||
var _48=$(_43).attr("comboName");
|
||||
for(var i=0;i<_44.length;i++){
|
||||
var _49=$("<input type=\"hidden\" class=\"combo-value\">").appendTo(_47);
|
||||
if(_48){
|
||||
_49.attr("name",_48);
|
||||
}
|
||||
_49.val(_44[i]);
|
||||
}
|
||||
var tmp=[];
|
||||
for(var i=0;i<_46.length;i++){
|
||||
tmp[i]=_46[i];
|
||||
}
|
||||
var aa=[];
|
||||
for(var i=0;i<_44.length;i++){
|
||||
for(var j=0;j<tmp.length;j++){
|
||||
if(_44[i]==tmp[j]){
|
||||
aa.push(_44[i]);
|
||||
tmp.splice(j,1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(aa.length!=_44.length||_44.length!=_46.length){
|
||||
if(_45.multiple){
|
||||
_45.onChange.call(_43,_44,_46);
|
||||
}else{
|
||||
_45.onChange.call(_43,_44[0],_46[0]);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _4a(_4b){
|
||||
var _4c=_3e(_4b);
|
||||
return _4c[0];
|
||||
};
|
||||
function _4d(_4e,_4f){
|
||||
_42(_4e,[_4f]);
|
||||
};
|
||||
function _50(_51){
|
||||
var _52=$.data(_51,"combo").options;
|
||||
var fn=_52.onChange;
|
||||
_52.onChange=function(){
|
||||
};
|
||||
if(_52.multiple){
|
||||
if(_52.value){
|
||||
if(typeof _52.value=="object"){
|
||||
_42(_51,_52.value);
|
||||
}else{
|
||||
_4d(_51,_52.value);
|
||||
}
|
||||
}else{
|
||||
_42(_51,[]);
|
||||
}
|
||||
}else{
|
||||
_4d(_51,_52.value);
|
||||
}
|
||||
_52.onChange=fn;
|
||||
};
|
||||
$.fn.combo=function(_53,_54){
|
||||
if(typeof _53=="string"){
|
||||
return $.fn.combo.methods[_53](this,_54);
|
||||
}
|
||||
_53=_53||{};
|
||||
return this.each(function(){
|
||||
var _55=$.data(this,"combo");
|
||||
if(_55){
|
||||
$.extend(_55.options,_53);
|
||||
}else{
|
||||
var r=_c(this);
|
||||
_55=$.data(this,"combo",{options:$.extend({},$.fn.combo.defaults,$.fn.combo.parseOptions(this),_53),combo:r.combo,panel:r.panel,previousValue:null});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
$("input.combo-text",_55.combo).attr("readonly",!_55.options.editable);
|
||||
_8(this);
|
||||
_2e(this,_55.options.disabled);
|
||||
_1(this);
|
||||
_15(this);
|
||||
_29(this);
|
||||
_50(this);
|
||||
});
|
||||
};
|
||||
$.fn.combo.methods={options:function(jq){
|
||||
return $.data(jq[0],"combo").options;
|
||||
},panel:function(jq){
|
||||
return $.data(jq[0],"combo").panel;
|
||||
},textbox:function(jq){
|
||||
return $.data(jq[0],"combo").combo.find("input.combo-text");
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
_12(this);
|
||||
});
|
||||
},resize:function(jq,_56){
|
||||
return jq.each(function(){
|
||||
_1(this,_56);
|
||||
});
|
||||
},showPanel:function(jq){
|
||||
return jq.each(function(){
|
||||
_1d(this);
|
||||
});
|
||||
},hidePanel:function(jq){
|
||||
return jq.each(function(){
|
||||
_25(this);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_2e(this,true);
|
||||
_15(this);
|
||||
});
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_2e(this,false);
|
||||
_15(this);
|
||||
});
|
||||
},validate:function(jq){
|
||||
return jq.each(function(){
|
||||
_29(this,true);
|
||||
});
|
||||
},isValid:function(jq){
|
||||
var _57=$.data(jq[0],"combo").combo.find("input.combo-text");
|
||||
return _57.validatebox("isValid");
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
_33(this);
|
||||
});
|
||||
},getText:function(jq){
|
||||
return _37(jq[0]);
|
||||
},setText:function(jq,_58){
|
||||
return jq.each(function(){
|
||||
_3a(this,_58);
|
||||
});
|
||||
},getValues:function(jq){
|
||||
return _3e(jq[0]);
|
||||
},setValues:function(jq,_59){
|
||||
return jq.each(function(){
|
||||
_42(this,_59);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return _4a(jq[0]);
|
||||
},setValue:function(jq,_5a){
|
||||
return jq.each(function(){
|
||||
_4d(this,_5a);
|
||||
});
|
||||
}};
|
||||
$.fn.combo.parseOptions=function(_5b){
|
||||
var t=$(_5b);
|
||||
return $.extend({},$.fn.validatebox.parseOptions(_5b),{width:(parseInt(_5b.style.width)||undefined),panelWidth:(parseInt(t.attr("panelWidth"))||undefined),panelHeight:(t.attr("panelHeight")=="auto"?"auto":parseInt(t.attr("panelHeight"))||undefined),separator:(t.attr("separator")||undefined),multiple:(t.attr("multiple")?(t.attr("multiple")=="true"||t.attr("multiple")==true||t.attr("multiple")=="multiple"):undefined),editable:(t.attr("editable")?t.attr("editable")=="true":undefined),disabled:(t.attr("disabled")?true:undefined),hasDownArrow:(t.attr("hasDownArrow")?t.attr("hasDownArrow")=="true":undefined),value:(t.val()||undefined),delay:(t.attr("delay")?parseInt(t.attr("delay")):undefined)});
|
||||
};
|
||||
$.fn.combo.defaults=$.extend({},$.fn.validatebox.defaults,{width:"auto",panelWidth:null,panelHeight:200,multiple:false,separator:",",editable:true,disabled:false,hasDownArrow:true,value:"",delay:200,keyHandler:{up:function(){
|
||||
},down:function(){
|
||||
},enter:function(){
|
||||
},query:function(q){
|
||||
}},onShowPanel:function(){
|
||||
},onHidePanel:function(){
|
||||
},onChange:function(_5c,_5d){
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,338 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2,_3){
|
||||
var _4=$(_2).combo("panel");
|
||||
var _5=_4.find("div.combobox-item[value="+_3+"]");
|
||||
if(_5.length){
|
||||
if(_5.position().top<=0){
|
||||
var h=_4.scrollTop()+_5.position().top;
|
||||
_4.scrollTop(h);
|
||||
}else{
|
||||
if(_5.position().top+_5.outerHeight()>_4.height()){
|
||||
var h=_4.scrollTop()+_5.position().top+_5.outerHeight()-_4.height();
|
||||
_4.scrollTop(h);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
function _6(_7){
|
||||
var _8=$(_7).combo("panel");
|
||||
var _9=$(_7).combo("getValues");
|
||||
var _a=_8.find("div.combobox-item[value="+_9.pop()+"]");
|
||||
if(_a.length){
|
||||
var _b=_a.prev(":visible");
|
||||
if(_b.length){
|
||||
_a=_b;
|
||||
}
|
||||
}else{
|
||||
_a=_8.find("div.combobox-item:visible:last");
|
||||
}
|
||||
var _c=_a.attr("value");
|
||||
_d(_7,_c);
|
||||
_1(_7,_c);
|
||||
};
|
||||
function _e(_f){
|
||||
var _10=$(_f).combo("panel");
|
||||
var _11=$(_f).combo("getValues");
|
||||
var _12=_10.find("div.combobox-item[value="+_11.pop()+"]");
|
||||
if(_12.length){
|
||||
var _13=_12.next(":visible");
|
||||
if(_13.length){
|
||||
_12=_13;
|
||||
}
|
||||
}else{
|
||||
_12=_10.find("div.combobox-item:visible:first");
|
||||
}
|
||||
var _14=_12.attr("value");
|
||||
_d(_f,_14);
|
||||
_1(_f,_14);
|
||||
};
|
||||
function _d(_15,_16){
|
||||
var _17=$.data(_15,"combobox").options;
|
||||
var _18=$.data(_15,"combobox").data;
|
||||
if(_17.multiple){
|
||||
var _19=$(_15).combo("getValues");
|
||||
for(var i=0;i<_19.length;i++){
|
||||
if(_19[i]==_16){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_19.push(_16);
|
||||
_1a(_15,_19);
|
||||
}else{
|
||||
_1a(_15,[_16]);
|
||||
}
|
||||
for(var i=0;i<_18.length;i++){
|
||||
if(_18[i][_17.valueField]==_16){
|
||||
_17.onSelect.call(_15,_18[i]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _1b(_1c,_1d){
|
||||
var _1e=$.data(_1c,"combobox").options;
|
||||
var _1f=$.data(_1c,"combobox").data;
|
||||
var _20=$(_1c).combo("getValues");
|
||||
for(var i=0;i<_20.length;i++){
|
||||
if(_20[i]==_1d){
|
||||
_20.splice(i,1);
|
||||
_1a(_1c,_20);
|
||||
break;
|
||||
}
|
||||
}
|
||||
for(var i=0;i<_1f.length;i++){
|
||||
if(_1f[i][_1e.valueField]==_1d){
|
||||
_1e.onUnselect.call(_1c,_1f[i]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _1a(_21,_22,_23){
|
||||
var _24=$.data(_21,"combobox").options;
|
||||
var _25=$.data(_21,"combobox").data;
|
||||
var _26=$(_21).combo("panel");
|
||||
_26.find("div.combobox-item-selected").removeClass("combobox-item-selected");
|
||||
var vv=[],ss=[];
|
||||
for(var i=0;i<_22.length;i++){
|
||||
var v=_22[i];
|
||||
var s=v;
|
||||
for(var j=0;j<_25.length;j++){
|
||||
if(_25[j][_24.valueField]==v){
|
||||
s=_25[j][_24.textField];
|
||||
break;
|
||||
}
|
||||
}
|
||||
vv.push(v);
|
||||
ss.push(s);
|
||||
_26.find("div.combobox-item[value="+v+"]").addClass("combobox-item-selected");
|
||||
}
|
||||
$(_21).combo("setValues",vv);
|
||||
if(!_23){
|
||||
$(_21).combo("setText",ss.join(_24.separator));
|
||||
}
|
||||
};
|
||||
function _27(_28){
|
||||
var _29=$.data(_28,"combobox").options;
|
||||
var _2a=[];
|
||||
$(">option",_28).each(function(){
|
||||
var _2b={};
|
||||
_2b[_29.valueField]=$(this).attr("value")!=undefined?$(this).attr("value"):$(this).html();
|
||||
_2b[_29.textField]=$(this).html();
|
||||
_2b["selected"]=$(this).attr("selected");
|
||||
_2a.push(_2b);
|
||||
});
|
||||
return _2a;
|
||||
};
|
||||
function _2c(_2d,_2e,_2f){
|
||||
var _30=$.data(_2d,"combobox").options;
|
||||
var _31=$(_2d).combo("panel");
|
||||
$.data(_2d,"combobox").data=_2e;
|
||||
var _32=$(_2d).combobox("getValues");
|
||||
_31.empty();
|
||||
for(var i=0;i<_2e.length;i++){
|
||||
var v=_2e[i][_30.valueField];
|
||||
var s=_2e[i][_30.textField];
|
||||
var _33=$("<div class=\"combobox-item\"></div>").appendTo(_31);
|
||||
_33.attr("value",v);
|
||||
if(_30.formatter){
|
||||
_33.html(_30.formatter.call(_2d,_2e[i]));
|
||||
}else{
|
||||
_33.html(s);
|
||||
}
|
||||
if(_2e[i]["selected"]){
|
||||
(function(){
|
||||
for(var i=0;i<_32.length;i++){
|
||||
if(v==_32[i]){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_32.push(v);
|
||||
})();
|
||||
}
|
||||
}
|
||||
if(_30.multiple){
|
||||
_1a(_2d,_32,_2f);
|
||||
}else{
|
||||
if(_32.length){
|
||||
_1a(_2d,[_32[_32.length-1]],_2f);
|
||||
}else{
|
||||
_1a(_2d,[],_2f);
|
||||
}
|
||||
}
|
||||
_30.onLoadSuccess.call(_2d,_2e);
|
||||
$(".combobox-item",_31).hover(function(){
|
||||
$(this).addClass("combobox-item-hover");
|
||||
},function(){
|
||||
$(this).removeClass("combobox-item-hover");
|
||||
}).click(function(){
|
||||
var _34=$(this);
|
||||
if(_30.multiple){
|
||||
if(_34.hasClass("combobox-item-selected")){
|
||||
_1b(_2d,_34.attr("value"));
|
||||
}else{
|
||||
_d(_2d,_34.attr("value"));
|
||||
}
|
||||
}else{
|
||||
_d(_2d,_34.attr("value"));
|
||||
$(_2d).combo("hidePanel");
|
||||
}
|
||||
});
|
||||
};
|
||||
function _35(_36,url,_37,_38){
|
||||
var _39=$.data(_36,"combobox").options;
|
||||
if(url){
|
||||
_39.url=url;
|
||||
}
|
||||
_37=_37||{};
|
||||
if(_39.onBeforeLoad.call(_36,_37)==false){
|
||||
return;
|
||||
}
|
||||
_39.loader.call(_36,_37,function(_3a){
|
||||
_2c(_36,_3a,_38);
|
||||
},function(){
|
||||
_39.onLoadError.apply(this,arguments);
|
||||
});
|
||||
};
|
||||
function _3b(_3c,q){
|
||||
var _3d=$.data(_3c,"combobox").options;
|
||||
if(_3d.multiple&&!q){
|
||||
_1a(_3c,[],true);
|
||||
}else{
|
||||
_1a(_3c,[q],true);
|
||||
}
|
||||
if(_3d.mode=="remote"){
|
||||
_35(_3c,null,{q:q},true);
|
||||
}else{
|
||||
var _3e=$(_3c).combo("panel");
|
||||
_3e.find("div.combobox-item").hide();
|
||||
var _3f=$.data(_3c,"combobox").data;
|
||||
for(var i=0;i<_3f.length;i++){
|
||||
if(_3d.filter.call(_3c,q,_3f[i])){
|
||||
var v=_3f[i][_3d.valueField];
|
||||
var s=_3f[i][_3d.textField];
|
||||
var _40=_3e.find("div.combobox-item[value="+v+"]");
|
||||
_40.show();
|
||||
if(s==q){
|
||||
_1a(_3c,[v],true);
|
||||
_40.addClass("combobox-item-selected");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
function _41(_42){
|
||||
var _43=$.data(_42,"combobox").options;
|
||||
$(_42).addClass("combobox-f");
|
||||
$(_42).combo($.extend({},_43,{onShowPanel:function(){
|
||||
$(_42).combo("panel").find("div.combobox-item").show();
|
||||
_1(_42,$(_42).combobox("getValue"));
|
||||
_43.onShowPanel.call(_42);
|
||||
}}));
|
||||
};
|
||||
$.fn.combobox=function(_44,_45){
|
||||
if(typeof _44=="string"){
|
||||
var _46=$.fn.combobox.methods[_44];
|
||||
if(_46){
|
||||
return _46(this,_45);
|
||||
}else{
|
||||
return this.combo(_44,_45);
|
||||
}
|
||||
}
|
||||
_44=_44||{};
|
||||
return this.each(function(){
|
||||
var _47=$.data(this,"combobox");
|
||||
if(_47){
|
||||
$.extend(_47.options,_44);
|
||||
_41(this);
|
||||
}else{
|
||||
_47=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_44)});
|
||||
_41(this);
|
||||
_2c(this,_27(this));
|
||||
}
|
||||
if(_47.options.data){
|
||||
_2c(this,_47.options.data);
|
||||
}
|
||||
_35(this);
|
||||
});
|
||||
};
|
||||
$.fn.combobox.methods={options:function(jq){
|
||||
return $.data(jq[0],"combobox").options;
|
||||
},getData:function(jq){
|
||||
return $.data(jq[0],"combobox").data;
|
||||
},setValues:function(jq,_48){
|
||||
return jq.each(function(){
|
||||
_1a(this,_48);
|
||||
});
|
||||
},setValue:function(jq,_49){
|
||||
return jq.each(function(){
|
||||
_1a(this,[_49]);
|
||||
});
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).combo("clear");
|
||||
var _4a=$(this).combo("panel");
|
||||
_4a.find("div.combobox-item-selected").removeClass("combobox-item-selected");
|
||||
});
|
||||
},loadData:function(jq,_4b){
|
||||
return jq.each(function(){
|
||||
_2c(this,_4b);
|
||||
});
|
||||
},reload:function(jq,url){
|
||||
return jq.each(function(){
|
||||
_35(this,url);
|
||||
});
|
||||
},select:function(jq,_4c){
|
||||
return jq.each(function(){
|
||||
_d(this,_4c);
|
||||
});
|
||||
},unselect:function(jq,_4d){
|
||||
return jq.each(function(){
|
||||
_1b(this,_4d);
|
||||
});
|
||||
}};
|
||||
$.fn.combobox.parseOptions=function(_4e){
|
||||
var t=$(_4e);
|
||||
return $.extend({},$.fn.combo.parseOptions(_4e),{valueField:t.attr("valueField"),textField:t.attr("textField"),mode:t.attr("mode"),method:(t.attr("method")?t.attr("method"):undefined),url:t.attr("url")});
|
||||
};
|
||||
$.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",mode:"local",method:"post",url:null,data:null,keyHandler:{up:function(){
|
||||
_6(this);
|
||||
},down:function(){
|
||||
_e(this);
|
||||
},enter:function(){
|
||||
var _4f=$(this).combobox("getValues");
|
||||
$(this).combobox("setValues",_4f);
|
||||
$(this).combobox("hidePanel");
|
||||
},query:function(q){
|
||||
_3b(this,q);
|
||||
}},filter:function(q,row){
|
||||
var _50=$(this).combobox("options");
|
||||
return row[_50.textField].indexOf(q)==0;
|
||||
},formatter:function(row){
|
||||
var _51=$(this).combobox("options");
|
||||
return row[_51.textField];
|
||||
},loader:function(_52,_53,_54){
|
||||
var _55=$(this).combobox("options");
|
||||
if(!_55.url){
|
||||
return false;
|
||||
}
|
||||
$.ajax({type:_55.method,url:_55.url,data:_52,dataType:"json",success:function(_56){
|
||||
_53(_56);
|
||||
},error:function(){
|
||||
_54.apply(this,arguments);
|
||||
}});
|
||||
},onBeforeLoad:function(_57){
|
||||
},onLoadSuccess:function(){
|
||||
},onLoadError:function(){
|
||||
},onSelect:function(_58){
|
||||
},onUnselect:function(_59){
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,203 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"combogrid").options;
|
||||
var _4=$.data(_2,"combogrid").grid;
|
||||
$(_2).addClass("combogrid-f");
|
||||
$(_2).combo(_3);
|
||||
var _5=$(_2).combo("panel");
|
||||
if(!_4){
|
||||
_4=$("<table></table>").appendTo(_5);
|
||||
$.data(_2,"combogrid").grid=_4;
|
||||
}
|
||||
_4.datagrid($.extend({},_3,{border:false,fit:true,singleSelect:(!_3.multiple),onLoadSuccess:function(_6){
|
||||
var _7=$.data(_2,"combogrid").remainText;
|
||||
var _8=$(_2).combo("getValues");
|
||||
_1c(_2,_8,_7);
|
||||
_3.onLoadSuccess.apply(_2,arguments);
|
||||
},onClickRow:_9,onSelect:function(_a,_b){
|
||||
_c();
|
||||
_3.onSelect.call(this,_a,_b);
|
||||
},onUnselect:function(_d,_e){
|
||||
_c();
|
||||
_3.onUnselect.call(this,_d,_e);
|
||||
},onSelectAll:function(_f){
|
||||
_c();
|
||||
_3.onSelectAll.call(this,_f);
|
||||
},onUnselectAll:function(_10){
|
||||
if(_3.multiple){
|
||||
_c();
|
||||
}
|
||||
_3.onUnselectAll.call(this,_10);
|
||||
}}));
|
||||
function _9(_11,row){
|
||||
$.data(_2,"combogrid").remainText=false;
|
||||
_c();
|
||||
if(!_3.multiple){
|
||||
$(_2).combo("hidePanel");
|
||||
}
|
||||
_3.onClickRow.call(this,_11,row);
|
||||
};
|
||||
function _c(){
|
||||
var _12=$.data(_2,"combogrid").remainText;
|
||||
var _13=_4.datagrid("getSelections");
|
||||
var vv=[],ss=[];
|
||||
for(var i=0;i<_13.length;i++){
|
||||
vv.push(_13[i][_3.idField]);
|
||||
ss.push(_13[i][_3.textField]);
|
||||
}
|
||||
if(!_3.multiple){
|
||||
$(_2).combo("setValues",(vv.length?vv:[""]));
|
||||
}else{
|
||||
$(_2).combo("setValues",vv);
|
||||
}
|
||||
if(!_12){
|
||||
$(_2).combo("setText",ss.join(_3.separator));
|
||||
}
|
||||
};
|
||||
};
|
||||
function _14(_15,_16){
|
||||
var _17=$.data(_15,"combogrid").options;
|
||||
var _18=$.data(_15,"combogrid").grid;
|
||||
var _19=_18.datagrid("getRows").length;
|
||||
$.data(_15,"combogrid").remainText=false;
|
||||
var _1a;
|
||||
var _1b=_18.datagrid("getSelections");
|
||||
if(_1b.length){
|
||||
_1a=_18.datagrid("getRowIndex",_1b[_1b.length-1][_17.idField]);
|
||||
_1a+=_16;
|
||||
if(_1a<0){
|
||||
_1a=0;
|
||||
}
|
||||
if(_1a>=_19){
|
||||
_1a=_19-1;
|
||||
}
|
||||
}else{
|
||||
if(_16>0){
|
||||
_1a=0;
|
||||
}else{
|
||||
if(_16<0){
|
||||
_1a=_19-1;
|
||||
}else{
|
||||
_1a=-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(_1a>=0){
|
||||
_18.datagrid("clearSelections");
|
||||
_18.datagrid("selectRow",_1a);
|
||||
}
|
||||
};
|
||||
function _1c(_1d,_1e,_1f){
|
||||
var _20=$.data(_1d,"combogrid").options;
|
||||
var _21=$.data(_1d,"combogrid").grid;
|
||||
var _22=_21.datagrid("getRows");
|
||||
var ss=[];
|
||||
for(var i=0;i<_1e.length;i++){
|
||||
var _23=_21.datagrid("getRowIndex",_1e[i]);
|
||||
if(_23>=0){
|
||||
_21.datagrid("selectRow",_23);
|
||||
ss.push(_22[_23][_20.textField]);
|
||||
}else{
|
||||
ss.push(_1e[i]);
|
||||
}
|
||||
}
|
||||
if($(_1d).combo("getValues").join(",")==_1e.join(",")){
|
||||
return;
|
||||
}
|
||||
$(_1d).combo("setValues",_1e);
|
||||
if(!_1f){
|
||||
$(_1d).combo("setText",ss.join(_20.separator));
|
||||
}
|
||||
};
|
||||
function _24(_25,q){
|
||||
var _26=$.data(_25,"combogrid").options;
|
||||
var _27=$.data(_25,"combogrid").grid;
|
||||
$.data(_25,"combogrid").remainText=true;
|
||||
if(_26.multiple&&!q){
|
||||
_1c(_25,[],true);
|
||||
}else{
|
||||
_1c(_25,[q],true);
|
||||
}
|
||||
if(_26.mode=="remote"){
|
||||
_27.datagrid("clearSelections");
|
||||
_27.datagrid("load",{q:q});
|
||||
}else{
|
||||
if(!q){
|
||||
return;
|
||||
}
|
||||
var _28=_27.datagrid("getRows");
|
||||
for(var i=0;i<_28.length;i++){
|
||||
if(_26.filter.call(_25,q,_28[i])){
|
||||
_27.datagrid("clearSelections");
|
||||
_27.datagrid("selectRow",i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
$.fn.combogrid=function(_29,_2a){
|
||||
if(typeof _29=="string"){
|
||||
var _2b=$.fn.combogrid.methods[_29];
|
||||
if(_2b){
|
||||
return _2b(this,_2a);
|
||||
}else{
|
||||
return $.fn.combo.methods[_29](this,_2a);
|
||||
}
|
||||
}
|
||||
_29=_29||{};
|
||||
return this.each(function(){
|
||||
var _2c=$.data(this,"combogrid");
|
||||
if(_2c){
|
||||
$.extend(_2c.options,_29);
|
||||
}else{
|
||||
_2c=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_29)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.combogrid.methods={options:function(jq){
|
||||
return $.data(jq[0],"combogrid").options;
|
||||
},grid:function(jq){
|
||||
return $.data(jq[0],"combogrid").grid;
|
||||
},setValues:function(jq,_2d){
|
||||
return jq.each(function(){
|
||||
_1c(this,_2d);
|
||||
});
|
||||
},setValue:function(jq,_2e){
|
||||
return jq.each(function(){
|
||||
_1c(this,[_2e]);
|
||||
});
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).combogrid("grid").datagrid("clearSelections");
|
||||
$(this).combo("clear");
|
||||
});
|
||||
}};
|
||||
$.fn.combogrid.parseOptions=function(_2f){
|
||||
var t=$(_2f);
|
||||
return $.extend({},$.fn.combo.parseOptions(_2f),$.fn.datagrid.parseOptions(_2f),{idField:(t.attr("idField")||undefined),textField:(t.attr("textField")||undefined),mode:t.attr("mode")});
|
||||
};
|
||||
$.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{loadMsg:null,idField:null,textField:null,mode:"local",keyHandler:{up:function(){
|
||||
_14(this,-1);
|
||||
},down:function(){
|
||||
_14(this,1);
|
||||
},enter:function(){
|
||||
_14(this,0);
|
||||
$(this).combo("hidePanel");
|
||||
},query:function(q){
|
||||
_24(this,q);
|
||||
}},filter:function(q,row){
|
||||
var _30=$(this).combogrid("options");
|
||||
return row[_30.textField].indexOf(q)==0;
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"combotree").options;
|
||||
var _4=$.data(_2,"combotree").tree;
|
||||
$(_2).addClass("combotree-f");
|
||||
$(_2).combo(_3);
|
||||
var _5=$(_2).combo("panel");
|
||||
if(!_4){
|
||||
_4=$("<ul></ul>").appendTo(_5);
|
||||
$.data(_2,"combotree").tree=_4;
|
||||
}
|
||||
_4.tree($.extend({},_3,{checkbox:_3.multiple,onLoadSuccess:function(_6,_7){
|
||||
var _8=$(_2).combotree("getValues");
|
||||
if(_3.multiple){
|
||||
var _9=_4.tree("getChecked");
|
||||
for(var i=0;i<_9.length;i++){
|
||||
var id=_9[i].id;
|
||||
(function(){
|
||||
for(var i=0;i<_8.length;i++){
|
||||
if(id==_8[i]){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_8.push(id);
|
||||
})();
|
||||
}
|
||||
}
|
||||
$(_2).combotree("setValues",_8);
|
||||
_3.onLoadSuccess.call(this,_6,_7);
|
||||
},onClick:function(_a){
|
||||
_d(_2);
|
||||
$(_2).combo("hidePanel");
|
||||
_3.onClick.call(this,_a);
|
||||
},onCheck:function(_b,_c){
|
||||
_d(_2);
|
||||
_3.onCheck.call(this,_b,_c);
|
||||
}}));
|
||||
};
|
||||
function _d(_e){
|
||||
var _f=$.data(_e,"combotree").options;
|
||||
var _10=$.data(_e,"combotree").tree;
|
||||
var vv=[],ss=[];
|
||||
if(_f.multiple){
|
||||
var _11=_10.tree("getChecked");
|
||||
for(var i=0;i<_11.length;i++){
|
||||
vv.push(_11[i].id);
|
||||
ss.push(_11[i].text);
|
||||
}
|
||||
}else{
|
||||
var _12=_10.tree("getSelected");
|
||||
if(_12){
|
||||
vv.push(_12.id);
|
||||
ss.push(_12.text);
|
||||
}
|
||||
}
|
||||
$(_e).combo("setValues",vv).combo("setText",ss.join(_f.separator));
|
||||
};
|
||||
function _13(_14,_15){
|
||||
var _16=$.data(_14,"combotree").options;
|
||||
var _17=$.data(_14,"combotree").tree;
|
||||
_17.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2");
|
||||
var vv=[],ss=[];
|
||||
for(var i=0;i<_15.length;i++){
|
||||
var v=_15[i];
|
||||
var s=v;
|
||||
var _18=_17.tree("find",v);
|
||||
if(_18){
|
||||
s=_18.text;
|
||||
_17.tree("check",_18.target);
|
||||
_17.tree("select",_18.target);
|
||||
}
|
||||
vv.push(v);
|
||||
ss.push(s);
|
||||
}
|
||||
$(_14).combo("setValues",vv).combo("setText",ss.join(_16.separator));
|
||||
};
|
||||
$.fn.combotree=function(_19,_1a){
|
||||
if(typeof _19=="string"){
|
||||
var _1b=$.fn.combotree.methods[_19];
|
||||
if(_1b){
|
||||
return _1b(this,_1a);
|
||||
}else{
|
||||
return this.combo(_19,_1a);
|
||||
}
|
||||
}
|
||||
_19=_19||{};
|
||||
return this.each(function(){
|
||||
var _1c=$.data(this,"combotree");
|
||||
if(_1c){
|
||||
$.extend(_1c.options,_19);
|
||||
}else{
|
||||
$.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_19)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.combotree.methods={options:function(jq){
|
||||
return $.data(jq[0],"combotree").options;
|
||||
},tree:function(jq){
|
||||
return $.data(jq[0],"combotree").tree;
|
||||
},loadData:function(jq,_1d){
|
||||
return jq.each(function(){
|
||||
var _1e=$.data(this,"combotree").options;
|
||||
_1e.data=_1d;
|
||||
var _1f=$.data(this,"combotree").tree;
|
||||
_1f.tree("loadData",_1d);
|
||||
});
|
||||
},reload:function(jq,url){
|
||||
return jq.each(function(){
|
||||
var _20=$.data(this,"combotree").options;
|
||||
var _21=$.data(this,"combotree").tree;
|
||||
if(url){
|
||||
_20.url=url;
|
||||
}
|
||||
_21.tree({url:_20.url});
|
||||
});
|
||||
},setValues:function(jq,_22){
|
||||
return jq.each(function(){
|
||||
_13(this,_22);
|
||||
});
|
||||
},setValue:function(jq,_23){
|
||||
return jq.each(function(){
|
||||
_13(this,[_23]);
|
||||
});
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
var _24=$.data(this,"combotree").tree;
|
||||
_24.find("div.tree-node-selected").removeClass("tree-node-selected");
|
||||
$(this).combo("clear");
|
||||
});
|
||||
}};
|
||||
$.fn.combotree.parseOptions=function(_25){
|
||||
return $.extend({},$.fn.combo.parseOptions(_25),$.fn.tree.parseOptions(_25));
|
||||
};
|
||||
$.fn.combotree.defaults=$.extend({},$.fn.combo.defaults,$.fn.tree.defaults,{editable:false});
|
||||
})(jQuery);
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"datebox");
|
||||
var _4=_3.options;
|
||||
$(_2).addClass("datebox-f");
|
||||
$(_2).combo($.extend({},_4,{onShowPanel:function(){
|
||||
_3.calendar.calendar("resize");
|
||||
_4.onShowPanel.call(_2);
|
||||
}}));
|
||||
$(_2).combo("textbox").parent().addClass("datebox");
|
||||
if(!_3.calendar){
|
||||
_5();
|
||||
}
|
||||
function _5(){
|
||||
var _6=$(_2).combo("panel");
|
||||
_3.calendar=$("<div></div>").appendTo(_6).wrap("<div class=\"datebox-calendar-inner\"></div>");
|
||||
_3.calendar.calendar({fit:true,border:false,onSelect:function(_7){
|
||||
var _8=_4.formatter(_7);
|
||||
_c(_2,_8);
|
||||
$(_2).combo("hidePanel");
|
||||
_4.onSelect.call(_2,_7);
|
||||
}});
|
||||
_c(_2,_4.value);
|
||||
var _9=$("<div class=\"datebox-button\"></div>").appendTo(_6);
|
||||
$("<a href=\"javascript:void(0)\" class=\"datebox-current\"></a>").html(_4.currentText).appendTo(_9);
|
||||
$("<a href=\"javascript:void(0)\" class=\"datebox-close\"></a>").html(_4.closeText).appendTo(_9);
|
||||
_9.find(".datebox-current,.datebox-close").hover(function(){
|
||||
$(this).addClass("datebox-button-hover");
|
||||
},function(){
|
||||
$(this).removeClass("datebox-button-hover");
|
||||
});
|
||||
_9.find(".datebox-current").click(function(){
|
||||
_3.calendar.calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()});
|
||||
});
|
||||
_9.find(".datebox-close").click(function(){
|
||||
$(_2).combo("hidePanel");
|
||||
});
|
||||
};
|
||||
};
|
||||
function _a(_b,q){
|
||||
_c(_b,q);
|
||||
};
|
||||
function _d(_e){
|
||||
var _f=$.data(_e,"datebox").options;
|
||||
var c=$.data(_e,"datebox").calendar;
|
||||
var _10=_f.formatter(c.calendar("options").current);
|
||||
_c(_e,_10);
|
||||
$(_e).combo("hidePanel");
|
||||
};
|
||||
function _c(_11,_12){
|
||||
var _13=$.data(_11,"datebox");
|
||||
var _14=_13.options;
|
||||
$(_11).combo("setValue",_12).combo("setText",_12);
|
||||
_13.calendar.calendar("moveTo",_14.parser(_12));
|
||||
};
|
||||
$.fn.datebox=function(_15,_16){
|
||||
if(typeof _15=="string"){
|
||||
var _17=$.fn.datebox.methods[_15];
|
||||
if(_17){
|
||||
return _17(this,_16);
|
||||
}else{
|
||||
return this.combo(_15,_16);
|
||||
}
|
||||
}
|
||||
_15=_15||{};
|
||||
return this.each(function(){
|
||||
var _18=$.data(this,"datebox");
|
||||
if(_18){
|
||||
$.extend(_18.options,_15);
|
||||
}else{
|
||||
$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_15)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.datebox.methods={options:function(jq){
|
||||
return $.data(jq[0],"datebox").options;
|
||||
},calendar:function(jq){
|
||||
return $.data(jq[0],"datebox").calendar;
|
||||
},setValue:function(jq,_19){
|
||||
return jq.each(function(){
|
||||
_c(this,_19);
|
||||
});
|
||||
}};
|
||||
$.fn.datebox.parseOptions=function(_1a){
|
||||
var t=$(_1a);
|
||||
return $.extend({},$.fn.combo.parseOptions(_1a),{});
|
||||
};
|
||||
$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",keyHandler:{up:function(){
|
||||
},down:function(){
|
||||
},enter:function(){
|
||||
_d(this);
|
||||
},query:function(q){
|
||||
_a(this,q);
|
||||
}},currentText:"Today",closeText:"Close",okText:"Ok",formatter:function(_1b){
|
||||
var y=_1b.getFullYear();
|
||||
var m=_1b.getMonth()+1;
|
||||
var d=_1b.getDate();
|
||||
return m+"/"+d+"/"+y;
|
||||
},parser:function(s){
|
||||
var t=Date.parse(s);
|
||||
if(!isNaN(t)){
|
||||
return new Date(t);
|
||||
}else{
|
||||
return new Date();
|
||||
}
|
||||
},onSelect:function(_1c){
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,143 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"datetimebox");
|
||||
var _4=_3.options;
|
||||
$(_2).datebox($.extend({},_4,{onShowPanel:function(){
|
||||
var _5=$(_2).datetimebox("getValue");
|
||||
_f(_2,_5,true);
|
||||
_4.onShowPanel.call(_2);
|
||||
}}));
|
||||
$(_2).removeClass("datebox-f").addClass("datetimebox-f");
|
||||
$(_2).datebox("calendar").calendar({onSelect:function(_6){
|
||||
_4.onSelect.call(_2,_6);
|
||||
}});
|
||||
var _7=$(_2).datebox("panel");
|
||||
if(!_3.spinner){
|
||||
var p=$("<div style=\"padding:2px\"><input style=\"width:80px\"></div>").insertAfter(_7.children("div.datebox-calendar-inner"));
|
||||
_3.spinner=p.children("input");
|
||||
_3.spinner.timespinner({showSeconds:true}).bind("mousedown",function(e){
|
||||
e.stopPropagation();
|
||||
});
|
||||
_f(_2,_4.value);
|
||||
var _8=_7.children("div.datebox-button");
|
||||
var ok=$("<a href=\"javascript:void(0)\" class=\"datebox-ok\"></a>").html(_4.okText).appendTo(_8);
|
||||
ok.hover(function(){
|
||||
$(this).addClass("datebox-button-hover");
|
||||
},function(){
|
||||
$(this).removeClass("datebox-button-hover");
|
||||
}).click(function(){
|
||||
_9(_2);
|
||||
});
|
||||
}
|
||||
};
|
||||
function _a(_b){
|
||||
var c=$(_b).datetimebox("calendar");
|
||||
var t=$(_b).datetimebox("spinner");
|
||||
var _c=c.calendar("options").current;
|
||||
return new Date(_c.getFullYear(),_c.getMonth(),_c.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds"));
|
||||
};
|
||||
function _d(_e,q){
|
||||
_f(_e,q,true);
|
||||
};
|
||||
function _9(_10){
|
||||
var _11=$.data(_10,"datetimebox").options;
|
||||
var _12=_a(_10);
|
||||
_f(_10,_11.formatter(_12));
|
||||
$(_10).combo("hidePanel");
|
||||
};
|
||||
function _f(_13,_14,_15){
|
||||
var _16=$.data(_13,"datetimebox").options;
|
||||
$(_13).combo("setValue",_14);
|
||||
if(!_15){
|
||||
if(_14){
|
||||
var _17=_16.parser(_14);
|
||||
$(_13).combo("setValue",_16.formatter(_17));
|
||||
$(_13).combo("setText",_16.formatter(_17));
|
||||
}else{
|
||||
$(_13).combo("setText",_14);
|
||||
}
|
||||
}
|
||||
var _17=_16.parser(_14);
|
||||
$(_13).datetimebox("calendar").calendar("moveTo",_16.parser(_14));
|
||||
$(_13).datetimebox("spinner").timespinner("setValue",_18(_17));
|
||||
function _18(_19){
|
||||
function _1a(_1b){
|
||||
return (_1b<10?"0":"")+_1b;
|
||||
};
|
||||
var tt=[_1a(_19.getHours()),_1a(_19.getMinutes())];
|
||||
if(_16.showSeconds){
|
||||
tt.push(_1a(_19.getSeconds()));
|
||||
}
|
||||
return tt.join($(_13).datetimebox("spinner").timespinner("options").separator);
|
||||
};
|
||||
};
|
||||
$.fn.datetimebox=function(_1c,_1d){
|
||||
if(typeof _1c=="string"){
|
||||
var _1e=$.fn.datetimebox.methods[_1c];
|
||||
if(_1e){
|
||||
return _1e(this,_1d);
|
||||
}else{
|
||||
return this.datebox(_1c,_1d);
|
||||
}
|
||||
}
|
||||
_1c=_1c||{};
|
||||
return this.each(function(){
|
||||
var _1f=$.data(this,"datetimebox");
|
||||
if(_1f){
|
||||
$.extend(_1f.options,_1c);
|
||||
}else{
|
||||
$.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_1c)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.datetimebox.methods={options:function(jq){
|
||||
return $.data(jq[0],"datetimebox").options;
|
||||
},spinner:function(jq){
|
||||
return $.data(jq[0],"datetimebox").spinner;
|
||||
},setValue:function(jq,_20){
|
||||
return jq.each(function(){
|
||||
_f(this,_20);
|
||||
});
|
||||
}};
|
||||
$.fn.datetimebox.parseOptions=function(_21){
|
||||
var t=$(_21);
|
||||
return $.extend({},$.fn.datebox.parseOptions(_21),{});
|
||||
};
|
||||
$.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{showSeconds:true,keyHandler:{up:function(){
|
||||
},down:function(){
|
||||
},enter:function(){
|
||||
_9(this);
|
||||
},query:function(q){
|
||||
_d(this,q);
|
||||
}},formatter:function(_22){
|
||||
var h=_22.getHours();
|
||||
var M=_22.getMinutes();
|
||||
var s=_22.getSeconds();
|
||||
function _23(_24){
|
||||
return (_24<10?"0":"")+_24;
|
||||
};
|
||||
return $.fn.datebox.defaults.formatter(_22)+" "+_23(h)+":"+_23(M)+":"+_23(s);
|
||||
},parser:function(s){
|
||||
if($.trim(s)==""){
|
||||
return new Date();
|
||||
}
|
||||
var dt=s.split(" ");
|
||||
var d=$.fn.datebox.defaults.parser(dt[0]);
|
||||
var tt=dt[1].split(":");
|
||||
var _25=parseInt(tt[0],10);
|
||||
var _26=parseInt(tt[1],10);
|
||||
var _27=parseInt(tt[2],10);
|
||||
return new Date(d.getFullYear(),d.getMonth(),d.getDate(),_25,_26,_27);
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var t=$(_2);
|
||||
t.wrapInner("<div class=\"dialog-content\"></div>");
|
||||
var _3=t.children("div.dialog-content");
|
||||
_3.attr("style",t.attr("style"));
|
||||
t.removeAttr("style").css("overflow","hidden");
|
||||
_3.panel({border:false,doSize:false});
|
||||
return _3;
|
||||
};
|
||||
function _4(_5){
|
||||
var _6=$.data(_5,"dialog").options;
|
||||
var _7=$.data(_5,"dialog").contentPanel;
|
||||
if(_6.toolbar){
|
||||
if(typeof _6.toolbar=="string"){
|
||||
$(_6.toolbar).addClass("dialog-toolbar").prependTo(_5);
|
||||
$(_6.toolbar).show();
|
||||
}else{
|
||||
$(_5).find("div.dialog-toolbar").remove();
|
||||
var _8=$("<div class=\"dialog-toolbar\"></div>").prependTo(_5);
|
||||
for(var i=0;i<_6.toolbar.length;i++){
|
||||
var p=_6.toolbar[i];
|
||||
if(p=="-"){
|
||||
_8.append("<div class=\"dialog-tool-separator\"></div>");
|
||||
}else{
|
||||
var _9=$("<a href=\"javascript:void(0)\"></a>").appendTo(_8);
|
||||
_9.css("float","left");
|
||||
_9[0].onclick=eval(p.handler||function(){
|
||||
});
|
||||
_9.linkbutton($.extend({},p,{plain:true}));
|
||||
}
|
||||
}
|
||||
_8.append("<div style=\"clear:both\"></div>");
|
||||
}
|
||||
}else{
|
||||
$(_5).find("div.dialog-toolbar").remove();
|
||||
}
|
||||
if(_6.buttons){
|
||||
if(typeof _6.buttons=="string"){
|
||||
$(_6.buttons).addClass("dialog-button").appendTo(_5);
|
||||
$(_6.buttons).show();
|
||||
}else{
|
||||
$(_5).find("div.dialog-button").remove();
|
||||
var _a=$("<div class=\"dialog-button\"></div>").appendTo(_5);
|
||||
for(var i=0;i<_6.buttons.length;i++){
|
||||
var p=_6.buttons[i];
|
||||
var _b=$("<a href=\"javascript:void(0)\"></a>").appendTo(_a);
|
||||
if(p.handler){
|
||||
_b[0].onclick=p.handler;
|
||||
}
|
||||
_b.linkbutton(p);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$(_5).find("div.dialog-button").remove();
|
||||
}
|
||||
var _c=_6.href;
|
||||
var _d=_6.content;
|
||||
_6.href=null;
|
||||
_6.content=null;
|
||||
_7.panel({closed:_6.closed,href:_c,content:_d,onLoad:function(){
|
||||
if(_6.height=="auto"){
|
||||
$(_5).window("resize");
|
||||
}
|
||||
_6.onLoad.apply(_5,arguments);
|
||||
}});
|
||||
$(_5).window($.extend({},_6,{onOpen:function(){
|
||||
_7.panel("open");
|
||||
if(_6.onOpen){
|
||||
_6.onOpen.call(_5);
|
||||
}
|
||||
},onResize:function(_e,_f){
|
||||
var _10=$(_5).panel("panel").find(">div.panel-body");
|
||||
_7.panel("panel").show();
|
||||
_7.panel("resize",{width:_10.width(),height:(_f=="auto")?"auto":_10.height()-_10.find(">div.dialog-toolbar").outerHeight()-_10.find(">div.dialog-button").outerHeight()});
|
||||
if(_6.onResize){
|
||||
_6.onResize.call(_5,_e,_f);
|
||||
}
|
||||
}}));
|
||||
_6.href=_c;
|
||||
_6.content=_d;
|
||||
};
|
||||
function _11(_12,_13){
|
||||
var _14=$.data(_12,"dialog").contentPanel;
|
||||
_14.panel("refresh",_13);
|
||||
};
|
||||
$.fn.dialog=function(_15,_16){
|
||||
if(typeof _15=="string"){
|
||||
var _17=$.fn.dialog.methods[_15];
|
||||
if(_17){
|
||||
return _17(this,_16);
|
||||
}else{
|
||||
return this.window(_15,_16);
|
||||
}
|
||||
}
|
||||
_15=_15||{};
|
||||
return this.each(function(){
|
||||
var _18=$.data(this,"dialog");
|
||||
if(_18){
|
||||
$.extend(_18.options,_15);
|
||||
}else{
|
||||
$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_15),contentPanel:_1(this)});
|
||||
}
|
||||
_4(this);
|
||||
});
|
||||
};
|
||||
$.fn.dialog.methods={options:function(jq){
|
||||
var _19=$.data(jq[0],"dialog").options;
|
||||
var _1a=jq.panel("options");
|
||||
$.extend(_19,{closed:_1a.closed,collapsed:_1a.collapsed,minimized:_1a.minimized,maximized:_1a.maximized});
|
||||
var _1b=$.data(jq[0],"dialog").contentPanel;
|
||||
return _19;
|
||||
},dialog:function(jq){
|
||||
return jq.window("window");
|
||||
},refresh:function(jq,_1c){
|
||||
return jq.each(function(){
|
||||
_11(this,_1c);
|
||||
});
|
||||
}};
|
||||
$.fn.dialog.parseOptions=function(_1d){
|
||||
var t=$(_1d);
|
||||
return $.extend({},$.fn.window.parseOptions(_1d),{toolbar:t.attr("toolbar"),buttons:t.attr("buttons")});
|
||||
};
|
||||
$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null});
|
||||
})(jQuery);
|
||||
|
|
@ -1,247 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
var _1=false;
|
||||
function _2(e){
|
||||
var _3=$.data(e.data.target,"draggable").options;
|
||||
var _4=e.data;
|
||||
var _5=_4.startLeft+e.pageX-_4.startX;
|
||||
var _6=_4.startTop+e.pageY-_4.startY;
|
||||
if(_3.deltaX!=null&&_3.deltaX!=undefined){
|
||||
_5=e.pageX+_3.deltaX;
|
||||
}
|
||||
if(_3.deltaY!=null&&_3.deltaY!=undefined){
|
||||
_6=e.pageY+_3.deltaY;
|
||||
}
|
||||
if(e.data.parent!=document.body){
|
||||
_5+=$(e.data.parent).scrollLeft();
|
||||
_6+=$(e.data.parent).scrollTop();
|
||||
}
|
||||
if(_3.axis=="h"){
|
||||
_4.left=_5;
|
||||
}else{
|
||||
if(_3.axis=="v"){
|
||||
_4.top=_6;
|
||||
}else{
|
||||
_4.left=_5;
|
||||
_4.top=_6;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _7(e){
|
||||
var _8=$.data(e.data.target,"draggable").options;
|
||||
var _9=$.data(e.data.target,"draggable").proxy;
|
||||
if(_9){
|
||||
_9.css("cursor",_8.cursor);
|
||||
}else{
|
||||
_9=$(e.data.target);
|
||||
$.data(e.data.target,"draggable").handle.css("cursor",_8.cursor);
|
||||
}
|
||||
_9.css({left:e.data.left,top:e.data.top});
|
||||
};
|
||||
function _a(e){
|
||||
_1=true;
|
||||
var _b=$.data(e.data.target,"draggable").options;
|
||||
var _c=$(".droppable").filter(function(){
|
||||
return e.data.target!=this;
|
||||
}).filter(function(){
|
||||
var _d=$.data(this,"droppable").options.accept;
|
||||
if(_d){
|
||||
return $(_d).filter(function(){
|
||||
return this==e.data.target;
|
||||
}).length>0;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
});
|
||||
$.data(e.data.target,"draggable").droppables=_c;
|
||||
var _e=$.data(e.data.target,"draggable").proxy;
|
||||
if(!_e){
|
||||
if(_b.proxy){
|
||||
if(_b.proxy=="clone"){
|
||||
_e=$(e.data.target).clone().insertAfter(e.data.target);
|
||||
}else{
|
||||
_e=_b.proxy.call(e.data.target,e.data.target);
|
||||
}
|
||||
$.data(e.data.target,"draggable").proxy=_e;
|
||||
}else{
|
||||
_e=$(e.data.target);
|
||||
}
|
||||
}
|
||||
_e.css("position","absolute");
|
||||
_2(e);
|
||||
_7(e);
|
||||
_b.onStartDrag.call(e.data.target,e);
|
||||
return false;
|
||||
};
|
||||
function _f(e){
|
||||
_2(e);
|
||||
if($.data(e.data.target,"draggable").options.onDrag.call(e.data.target,e)!=false){
|
||||
_7(e);
|
||||
}
|
||||
var _10=e.data.target;
|
||||
$.data(e.data.target,"draggable").droppables.each(function(){
|
||||
var _11=$(this);
|
||||
var p2=$(this).offset();
|
||||
if(e.pageX>p2.left&&e.pageX<p2.left+_11.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_11.outerHeight()){
|
||||
if(!this.entered){
|
||||
$(this).trigger("_dragenter",[_10]);
|
||||
this.entered=true;
|
||||
}
|
||||
$(this).trigger("_dragover",[_10]);
|
||||
}else{
|
||||
if(this.entered){
|
||||
$(this).trigger("_dragleave",[_10]);
|
||||
this.entered=false;
|
||||
}
|
||||
}
|
||||
});
|
||||
return false;
|
||||
};
|
||||
function _12(e){
|
||||
_1=false;
|
||||
_2(e);
|
||||
var _13=$.data(e.data.target,"draggable").proxy;
|
||||
var _14=$.data(e.data.target,"draggable").options;
|
||||
if(_14.revert){
|
||||
if(_15()==true){
|
||||
_16();
|
||||
$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
|
||||
}else{
|
||||
if(_13){
|
||||
_13.animate({left:e.data.startLeft,top:e.data.startTop},function(){
|
||||
_16();
|
||||
});
|
||||
}else{
|
||||
$(e.data.target).animate({left:e.data.startLeft,top:e.data.startTop},function(){
|
||||
$(e.data.target).css("position",e.data.startPosition);
|
||||
});
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$(e.data.target).css({position:"absolute",left:e.data.left,top:e.data.top});
|
||||
_16();
|
||||
_15();
|
||||
}
|
||||
_14.onStopDrag.call(e.data.target,e);
|
||||
$(document).unbind(".draggable");
|
||||
setTimeout(function(){
|
||||
$("body").css("cursor","auto");
|
||||
},100);
|
||||
function _16(){
|
||||
if(_13){
|
||||
_13.remove();
|
||||
}
|
||||
$.data(e.data.target,"draggable").proxy=null;
|
||||
};
|
||||
function _15(){
|
||||
var _17=false;
|
||||
$.data(e.data.target,"draggable").droppables.each(function(){
|
||||
var _18=$(this);
|
||||
var p2=$(this).offset();
|
||||
if(e.pageX>p2.left&&e.pageX<p2.left+_18.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_18.outerHeight()){
|
||||
if(_14.revert){
|
||||
$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
|
||||
}
|
||||
$(this).trigger("_drop",[e.data.target]);
|
||||
_17=true;
|
||||
this.entered=false;
|
||||
}
|
||||
});
|
||||
return _17;
|
||||
};
|
||||
return false;
|
||||
};
|
||||
$.fn.draggable=function(_19,_1a){
|
||||
if(typeof _19=="string"){
|
||||
return $.fn.draggable.methods[_19](this,_1a);
|
||||
}
|
||||
return this.each(function(){
|
||||
var _1b;
|
||||
var _1c=$.data(this,"draggable");
|
||||
if(_1c){
|
||||
_1c.handle.unbind(".draggable");
|
||||
_1b=$.extend(_1c.options,_19);
|
||||
}else{
|
||||
_1b=$.extend({},$.fn.draggable.defaults,_19||{});
|
||||
}
|
||||
if(_1b.disabled==true){
|
||||
$(this).css("cursor","default");
|
||||
return;
|
||||
}
|
||||
var _1d=null;
|
||||
if(typeof _1b.handle=="undefined"||_1b.handle==null){
|
||||
_1d=$(this);
|
||||
}else{
|
||||
_1d=(typeof _1b.handle=="string"?$(_1b.handle,this):_1b.handle);
|
||||
}
|
||||
$.data(this,"draggable",{options:_1b,handle:_1d});
|
||||
_1d.unbind(".draggable").bind("mousemove.draggable",{target:this},function(e){
|
||||
if(_1){
|
||||
return;
|
||||
}
|
||||
var _1e=$.data(e.data.target,"draggable").options;
|
||||
if(_1f(e)){
|
||||
$(this).css("cursor",_1e.cursor);
|
||||
}else{
|
||||
$(this).css("cursor","");
|
||||
}
|
||||
}).bind("mouseleave.draggable",{target:this},function(e){
|
||||
$(this).css("cursor","");
|
||||
}).bind("mousedown.draggable",{target:this},function(e){
|
||||
if(_1f(e)==false){
|
||||
return;
|
||||
}
|
||||
var _20=$(e.data.target).position();
|
||||
var _21={startPosition:$(e.data.target).css("position"),startLeft:_20.left,startTop:_20.top,left:_20.left,top:_20.top,startX:e.pageX,startY:e.pageY,target:e.data.target,parent:$(e.data.target).parent()[0]};
|
||||
$.extend(e.data,_21);
|
||||
var _22=$.data(e.data.target,"draggable").options;
|
||||
if(_22.onBeforeDrag.call(e.data.target,e)==false){
|
||||
return;
|
||||
}
|
||||
$(document).bind("mousedown.draggable",e.data,_a);
|
||||
$(document).bind("mousemove.draggable",e.data,_f);
|
||||
$(document).bind("mouseup.draggable",e.data,_12);
|
||||
$("body").css("cursor",_22.cursor);
|
||||
});
|
||||
function _1f(e){
|
||||
var _23=$.data(e.data.target,"draggable");
|
||||
var _24=_23.handle;
|
||||
var _25=$(_24).offset();
|
||||
var _26=$(_24).outerWidth();
|
||||
var _27=$(_24).outerHeight();
|
||||
var t=e.pageY-_25.top;
|
||||
var r=_25.left+_26-e.pageX;
|
||||
var b=_25.top+_27-e.pageY;
|
||||
var l=e.pageX-_25.left;
|
||||
return Math.min(t,r,b,l)>_23.options.edge;
|
||||
};
|
||||
});
|
||||
};
|
||||
$.fn.draggable.methods={options:function(jq){
|
||||
return $.data(jq[0],"draggable").options;
|
||||
},proxy:function(jq){
|
||||
return $.data(jq[0],"draggable").proxy;
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).draggable({disabled:false});
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).draggable({disabled:true});
|
||||
});
|
||||
}};
|
||||
$.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,onBeforeDrag:function(e){
|
||||
},onStartDrag:function(e){
|
||||
},onDrag:function(e){
|
||||
},onStopDrag:function(e){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
$(_2).addClass("droppable");
|
||||
$(_2).bind("_dragenter",function(e,_3){
|
||||
$.data(_2,"droppable").options.onDragEnter.apply(_2,[e,_3]);
|
||||
});
|
||||
$(_2).bind("_dragleave",function(e,_4){
|
||||
$.data(_2,"droppable").options.onDragLeave.apply(_2,[e,_4]);
|
||||
});
|
||||
$(_2).bind("_dragover",function(e,_5){
|
||||
$.data(_2,"droppable").options.onDragOver.apply(_2,[e,_5]);
|
||||
});
|
||||
$(_2).bind("_drop",function(e,_6){
|
||||
$.data(_2,"droppable").options.onDrop.apply(_2,[e,_6]);
|
||||
});
|
||||
};
|
||||
$.fn.droppable=function(_7,_8){
|
||||
if(typeof _7=="string"){
|
||||
return $.fn.droppable.methods[_7](this,_8);
|
||||
}
|
||||
_7=_7||{};
|
||||
return this.each(function(){
|
||||
var _9=$.data(this,"droppable");
|
||||
if(_9){
|
||||
$.extend(_9.options,_7);
|
||||
}else{
|
||||
_1(this);
|
||||
$.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,_7)});
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.droppable.methods={};
|
||||
$.fn.droppable.defaults={accept:null,onDragEnter:function(e,_a){
|
||||
},onDragOver:function(e,_b){
|
||||
},onDragLeave:function(e,_c){
|
||||
},onDrop:function(e,_d){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,228 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2,_3){
|
||||
_3=_3||{};
|
||||
if(_3.onSubmit){
|
||||
if(_3.onSubmit.call(_2)==false){
|
||||
return;
|
||||
}
|
||||
}
|
||||
var _4=$(_2);
|
||||
if(_3.url){
|
||||
_4.attr("action",_3.url);
|
||||
}
|
||||
var _5="easyui_frame_"+(new Date().getTime());
|
||||
var _6=$("<iframe id="+_5+" name="+_5+"></iframe>").attr("src",window.ActiveXObject?"javascript:false":"about:blank").css({position:"absolute",top:-1000,left:-1000});
|
||||
var t=_4.attr("target"),a=_4.attr("action");
|
||||
_4.attr("target",_5);
|
||||
try{
|
||||
_6.appendTo("body");
|
||||
_6.bind("load",cb);
|
||||
_4[0].submit();
|
||||
}
|
||||
finally{
|
||||
_4.attr("action",a);
|
||||
t?_4.attr("target",t):_4.removeAttr("target");
|
||||
}
|
||||
var _7=10;
|
||||
function cb(){
|
||||
_6.unbind();
|
||||
var _8=$("#"+_5).contents().find("body");
|
||||
var _9=_8.html();
|
||||
if(_9==""){
|
||||
if(--_7){
|
||||
setTimeout(cb,100);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
var ta=_8.find(">textarea");
|
||||
if(ta.length){
|
||||
_9=ta.val();
|
||||
}else{
|
||||
var _a=_8.find(">pre");
|
||||
if(_a.length){
|
||||
_9=_a.html();
|
||||
}
|
||||
}
|
||||
if(_3.success){
|
||||
_3.success(_9);
|
||||
}
|
||||
setTimeout(function(){
|
||||
_6.unbind();
|
||||
_6.remove();
|
||||
},100);
|
||||
};
|
||||
};
|
||||
function _b(_c,_d){
|
||||
if(!$.data(_c,"form")){
|
||||
$.data(_c,"form",{options:$.extend({},$.fn.form.defaults)});
|
||||
}
|
||||
var _e=$.data(_c,"form").options;
|
||||
if(typeof _d=="string"){
|
||||
var _f={};
|
||||
if(_e.onBeforeLoad.call(_c,_f)==false){
|
||||
return;
|
||||
}
|
||||
$.ajax({url:_d,data:_f,dataType:"json",success:function(_10){
|
||||
_11(_10);
|
||||
},error:function(){
|
||||
_e.onLoadError.apply(_c,arguments);
|
||||
}});
|
||||
}else{
|
||||
_11(_d);
|
||||
}
|
||||
function _11(_12){
|
||||
var _13=$(_c);
|
||||
for(var _14 in _12){
|
||||
var val=_12[_14];
|
||||
var rr=_15(_14,val);
|
||||
if(!rr.length){
|
||||
var f=_13.find("input[numberboxName=\""+_14+"\"]");
|
||||
if(f.length){
|
||||
f.numberbox("setValue",val);
|
||||
}else{
|
||||
$("input[name=\""+_14+"\"]",_13).val(val);
|
||||
$("textarea[name=\""+_14+"\"]",_13).val(val);
|
||||
$("select[name=\""+_14+"\"]",_13).val(val);
|
||||
}
|
||||
}
|
||||
_16(_14,val);
|
||||
}
|
||||
_e.onLoadSuccess.call(_c,_12);
|
||||
_1f(_c);
|
||||
};
|
||||
function _15(_17,val){
|
||||
var _18=$(_c);
|
||||
var rr=$("input[name=\""+_17+"\"][type=radio], input[name=\""+_17+"\"][type=checkbox]",_18);
|
||||
$.fn.prop?rr.prop("checked",false):rr.attr("checked",false);
|
||||
rr.each(function(){
|
||||
var f=$(this);
|
||||
console.log(_17+":"+f.val()+","+val);
|
||||
if(f.val()==String(val)){
|
||||
$.fn.prop?f.prop("checked",true):f.attr("checked",true);
|
||||
}
|
||||
});
|
||||
return rr;
|
||||
};
|
||||
function _16(_19,val){
|
||||
var _1a=$(_c);
|
||||
var cc=["combobox","combotree","combogrid","datetimebox","datebox","combo"];
|
||||
var c=_1a.find("[comboName=\""+_19+"\"]");
|
||||
if(c.length){
|
||||
for(var i=0;i<cc.length;i++){
|
||||
var _1b=cc[i];
|
||||
if(c.hasClass(_1b+"-f")){
|
||||
if(c[_1b]("options").multiple){
|
||||
c[_1b]("setValues",val);
|
||||
}else{
|
||||
c[_1b]("setValue",val);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
function _1c(_1d){
|
||||
$("input,select,textarea",_1d).each(function(){
|
||||
var t=this.type,tag=this.tagName.toLowerCase();
|
||||
if(t=="text"||t=="hidden"||t=="password"||tag=="textarea"){
|
||||
this.value="";
|
||||
}else{
|
||||
if(t=="file"){
|
||||
var _1e=$(this);
|
||||
_1e.after(_1e.clone().val(""));
|
||||
_1e.remove();
|
||||
}else{
|
||||
if(t=="checkbox"||t=="radio"){
|
||||
this.checked=false;
|
||||
}else{
|
||||
if(tag=="select"){
|
||||
this.selectedIndex=-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if($.fn.combo){
|
||||
$(".combo-f",_1d).combo("clear");
|
||||
}
|
||||
if($.fn.combobox){
|
||||
$(".combobox-f",_1d).combobox("clear");
|
||||
}
|
||||
if($.fn.combotree){
|
||||
$(".combotree-f",_1d).combotree("clear");
|
||||
}
|
||||
if($.fn.combogrid){
|
||||
$(".combogrid-f",_1d).combogrid("clear");
|
||||
}
|
||||
_1f(_1d);
|
||||
};
|
||||
function _20(_21){
|
||||
var _22=$.data(_21,"form").options;
|
||||
var _23=$(_21);
|
||||
_23.unbind(".form").bind("submit.form",function(){
|
||||
setTimeout(function(){
|
||||
_1(_21,_22);
|
||||
},0);
|
||||
return false;
|
||||
});
|
||||
};
|
||||
function _1f(_24){
|
||||
if($.fn.validatebox){
|
||||
var box=$(".validatebox-text",_24);
|
||||
if(box.length){
|
||||
box.validatebox("validate");
|
||||
box.trigger("focus");
|
||||
box.trigger("blur");
|
||||
var _25=$(".validatebox-invalid:first",_24).focus();
|
||||
return _25.length==0;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
$.fn.form=function(_26,_27){
|
||||
if(typeof _26=="string"){
|
||||
return $.fn.form.methods[_26](this,_27);
|
||||
}
|
||||
_26=_26||{};
|
||||
return this.each(function(){
|
||||
if(!$.data(this,"form")){
|
||||
$.data(this,"form",{options:$.extend({},$.fn.form.defaults,_26)});
|
||||
}
|
||||
_20(this);
|
||||
});
|
||||
};
|
||||
$.fn.form.methods={submit:function(jq,_28){
|
||||
return jq.each(function(){
|
||||
_1(this,$.extend({},$.fn.form.defaults,_28||{}));
|
||||
});
|
||||
},load:function(jq,_29){
|
||||
return jq.each(function(){
|
||||
_b(this,_29);
|
||||
});
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
_1c(this);
|
||||
});
|
||||
},validate:function(jq){
|
||||
return _1f(jq[0]);
|
||||
}};
|
||||
$.fn.form.defaults={url:null,onSubmit:function(){
|
||||
return $(this).form("validate");
|
||||
},success:function(_2a){
|
||||
},onBeforeLoad:function(_2b){
|
||||
},onLoadSuccess:function(_2c){
|
||||
},onLoadError:function(){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,459 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
var _1=false;
|
||||
function _2(_3){
|
||||
var _4=$.data(_3,"layout").options;
|
||||
var _5=$.data(_3,"layout").panels;
|
||||
var cc=$(_3);
|
||||
if(_4.fit==true){
|
||||
var p=cc.parent();
|
||||
p.addClass("panel-noscroll");
|
||||
cc.width(p.width());
|
||||
cc.height(p.height());
|
||||
}
|
||||
var _6={top:0,left:0,width:cc.width(),height:cc.height()};
|
||||
function _7(pp){
|
||||
if(pp.length==0){
|
||||
return;
|
||||
}
|
||||
pp.panel("resize",{width:cc.width(),height:pp.panel("options").height,left:0,top:0});
|
||||
_6.top+=pp.panel("options").height;
|
||||
_6.height-=pp.panel("options").height;
|
||||
};
|
||||
if(_b(_5.expandNorth)){
|
||||
_7(_5.expandNorth);
|
||||
}else{
|
||||
_7(_5.north);
|
||||
}
|
||||
function _8(pp){
|
||||
if(pp.length==0){
|
||||
return;
|
||||
}
|
||||
pp.panel("resize",{width:cc.width(),height:pp.panel("options").height,left:0,top:cc.height()-pp.panel("options").height});
|
||||
_6.height-=pp.panel("options").height;
|
||||
};
|
||||
if(_b(_5.expandSouth)){
|
||||
_8(_5.expandSouth);
|
||||
}else{
|
||||
_8(_5.south);
|
||||
}
|
||||
function _9(pp){
|
||||
if(pp.length==0){
|
||||
return;
|
||||
}
|
||||
pp.panel("resize",{width:pp.panel("options").width,height:_6.height,left:cc.width()-pp.panel("options").width,top:_6.top});
|
||||
_6.width-=pp.panel("options").width;
|
||||
};
|
||||
if(_b(_5.expandEast)){
|
||||
_9(_5.expandEast);
|
||||
}else{
|
||||
_9(_5.east);
|
||||
}
|
||||
function _a(pp){
|
||||
if(pp.length==0){
|
||||
return;
|
||||
}
|
||||
pp.panel("resize",{width:pp.panel("options").width,height:_6.height,left:0,top:_6.top});
|
||||
_6.left+=pp.panel("options").width;
|
||||
_6.width-=pp.panel("options").width;
|
||||
};
|
||||
if(_b(_5.expandWest)){
|
||||
_a(_5.expandWest);
|
||||
}else{
|
||||
_a(_5.west);
|
||||
}
|
||||
_5.center.panel("resize",_6);
|
||||
};
|
||||
function _c(_d){
|
||||
var cc=$(_d);
|
||||
if(cc[0].tagName=="BODY"){
|
||||
$("html").css({height:"100%",overflow:"hidden"});
|
||||
$("body").css({height:"100%",overflow:"hidden",border:"none"});
|
||||
}
|
||||
cc.addClass("layout");
|
||||
cc.css({margin:0,padding:0});
|
||||
$("<div class=\"layout-split-proxy-h\"></div>").appendTo(cc);
|
||||
$("<div class=\"layout-split-proxy-v\"></div>").appendTo(cc);
|
||||
cc.children("div[region]").each(function(){
|
||||
var _e=$(this).attr("region");
|
||||
_11(_d,{region:_e});
|
||||
});
|
||||
cc.bind("_resize",function(e,_f){
|
||||
var _10=$.data(_d,"layout").options;
|
||||
if(_10.fit==true||_f){
|
||||
_2(_d);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
};
|
||||
function _11(_12,_13){
|
||||
_13.region=_13.region||"center";
|
||||
var _14=$.data(_12,"layout").panels;
|
||||
var cc=$(_12);
|
||||
var dir=_13.region;
|
||||
if(_14[dir].length){
|
||||
return;
|
||||
}
|
||||
var pp=cc.children("div[region="+dir+"]");
|
||||
if(!pp.length){
|
||||
pp=$("<div></div>").appendTo(cc);
|
||||
}
|
||||
pp.panel($.extend({},{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),split:(pp.attr("split")?pp.attr("split")=="true":undefined),doSize:false,cls:("layout-panel layout-panel-"+dir),bodyCls:"layout-body",onOpen:function(){
|
||||
var _15={north:"up",south:"down",east:"right",west:"left"};
|
||||
if(!_15[dir]){
|
||||
return;
|
||||
}
|
||||
var _16="layout-button-"+_15[dir];
|
||||
var _17=$(this).panel("header").children("div.panel-tool");
|
||||
if(!_17.children("a."+_16).length){
|
||||
var t=$("<a href=\"javascript:void(0)\"></a>").addClass(_16).appendTo(_17);
|
||||
t.bind("click",{dir:dir},function(e){
|
||||
_25(_12,e.data.dir);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}},_13));
|
||||
_14[dir]=pp;
|
||||
if(pp.panel("options").split){
|
||||
var _18=pp.panel("panel");
|
||||
_18.addClass("layout-split-"+dir);
|
||||
var _19="";
|
||||
if(dir=="north"){
|
||||
_19="s";
|
||||
}
|
||||
if(dir=="south"){
|
||||
_19="n";
|
||||
}
|
||||
if(dir=="east"){
|
||||
_19="w";
|
||||
}
|
||||
if(dir=="west"){
|
||||
_19="e";
|
||||
}
|
||||
_18.resizable({handles:_19,onStartResize:function(e){
|
||||
_1=true;
|
||||
if(dir=="north"||dir=="south"){
|
||||
var _1a=$(">div.layout-split-proxy-v",_12);
|
||||
}else{
|
||||
var _1a=$(">div.layout-split-proxy-h",_12);
|
||||
}
|
||||
var top=0,_1b=0,_1c=0,_1d=0;
|
||||
var pos={display:"block"};
|
||||
if(dir=="north"){
|
||||
pos.top=parseInt(_18.css("top"))+_18.outerHeight()-_1a.height();
|
||||
pos.left=parseInt(_18.css("left"));
|
||||
pos.width=_18.outerWidth();
|
||||
pos.height=_1a.height();
|
||||
}else{
|
||||
if(dir=="south"){
|
||||
pos.top=parseInt(_18.css("top"));
|
||||
pos.left=parseInt(_18.css("left"));
|
||||
pos.width=_18.outerWidth();
|
||||
pos.height=_1a.height();
|
||||
}else{
|
||||
if(dir=="east"){
|
||||
pos.top=parseInt(_18.css("top"))||0;
|
||||
pos.left=parseInt(_18.css("left"))||0;
|
||||
pos.width=_1a.width();
|
||||
pos.height=_18.outerHeight();
|
||||
}else{
|
||||
if(dir=="west"){
|
||||
pos.top=parseInt(_18.css("top"))||0;
|
||||
pos.left=_18.outerWidth()-_1a.width();
|
||||
pos.width=_1a.width();
|
||||
pos.height=_18.outerHeight();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_1a.css(pos);
|
||||
$("<div class=\"layout-mask\"></div>").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc);
|
||||
},onResize:function(e){
|
||||
if(dir=="north"||dir=="south"){
|
||||
var _1e=$(">div.layout-split-proxy-v",_12);
|
||||
_1e.css("top",e.pageY-$(_12).offset().top-_1e.height()/2);
|
||||
}else{
|
||||
var _1e=$(">div.layout-split-proxy-h",_12);
|
||||
_1e.css("left",e.pageX-$(_12).offset().left-_1e.width()/2);
|
||||
}
|
||||
return false;
|
||||
},onStopResize:function(){
|
||||
$(">div.layout-split-proxy-v",_12).css("display","none");
|
||||
$(">div.layout-split-proxy-h",_12).css("display","none");
|
||||
var _1f=pp.panel("options");
|
||||
_1f.width=_18.outerWidth();
|
||||
_1f.height=_18.outerHeight();
|
||||
_1f.left=_18.css("left");
|
||||
_1f.top=_18.css("top");
|
||||
pp.panel("resize");
|
||||
_2(_12);
|
||||
_1=false;
|
||||
cc.find(">div.layout-mask").remove();
|
||||
}});
|
||||
}
|
||||
};
|
||||
function _20(_21,_22){
|
||||
var _23=$.data(_21,"layout").panels;
|
||||
if(_23[_22].length){
|
||||
_23[_22].panel("destroy");
|
||||
_23[_22]=$();
|
||||
var _24="expand"+_22.substring(0,1).toUpperCase()+_22.substring(1);
|
||||
if(_23[_24]){
|
||||
_23[_24].panel("destroy");
|
||||
_23[_24]=undefined;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _25(_26,_27,_28){
|
||||
if(_28==undefined){
|
||||
_28="normal";
|
||||
}
|
||||
var _29=$.data(_26,"layout").panels;
|
||||
var p=_29[_27];
|
||||
if(p.panel("options").onBeforeCollapse.call(p)==false){
|
||||
return;
|
||||
}
|
||||
var _2a="expand"+_27.substring(0,1).toUpperCase()+_27.substring(1);
|
||||
if(!_29[_2a]){
|
||||
_29[_2a]=_2b(_27);
|
||||
_29[_2a].panel("panel").click(function(){
|
||||
var _2c=_2d();
|
||||
p.panel("expand",false).panel("open").panel("resize",_2c.collapse);
|
||||
p.panel("panel").animate(_2c.expand);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
var _2e=_2d();
|
||||
if(!_b(_29[_2a])){
|
||||
_29.center.panel("resize",_2e.resizeC);
|
||||
}
|
||||
p.panel("panel").animate(_2e.collapse,_28,function(){
|
||||
p.panel("collapse",false).panel("close");
|
||||
_29[_2a].panel("open").panel("resize",_2e.expandP);
|
||||
});
|
||||
function _2b(dir){
|
||||
var _2f;
|
||||
if(dir=="east"){
|
||||
_2f="layout-button-left";
|
||||
}else{
|
||||
if(dir=="west"){
|
||||
_2f="layout-button-right";
|
||||
}else{
|
||||
if(dir=="north"){
|
||||
_2f="layout-button-down";
|
||||
}else{
|
||||
if(dir=="south"){
|
||||
_2f="layout-button-up";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var p=$("<div></div>").appendTo(_26).panel({cls:"layout-expand",title:" ",closed:true,doSize:false,tools:[{iconCls:_2f,handler:function(){
|
||||
_30(_26,_27);
|
||||
return false;
|
||||
}}]});
|
||||
p.panel("panel").hover(function(){
|
||||
$(this).addClass("layout-expand-over");
|
||||
},function(){
|
||||
$(this).removeClass("layout-expand-over");
|
||||
});
|
||||
return p;
|
||||
};
|
||||
function _2d(){
|
||||
var cc=$(_26);
|
||||
if(_27=="east"){
|
||||
return {resizeC:{width:_29.center.panel("options").width+_29["east"].panel("options").width-28},expand:{left:cc.width()-_29["east"].panel("options").width},expandP:{top:_29["east"].panel("options").top,left:cc.width()-28,width:28,height:_29["center"].panel("options").height},collapse:{left:cc.width()}};
|
||||
}else{
|
||||
if(_27=="west"){
|
||||
return {resizeC:{width:_29.center.panel("options").width+_29["west"].panel("options").width-28,left:28},expand:{left:0},expandP:{left:0,top:_29["west"].panel("options").top,width:28,height:_29["center"].panel("options").height},collapse:{left:-_29["west"].panel("options").width}};
|
||||
}else{
|
||||
if(_27=="north"){
|
||||
var hh=cc.height()-28;
|
||||
if(_b(_29.expandSouth)){
|
||||
hh-=_29.expandSouth.panel("options").height;
|
||||
}else{
|
||||
if(_b(_29.south)){
|
||||
hh-=_29.south.panel("options").height;
|
||||
}
|
||||
}
|
||||
_29.east.panel("resize",{top:28,height:hh});
|
||||
_29.west.panel("resize",{top:28,height:hh});
|
||||
if(_b(_29.expandEast)){
|
||||
_29.expandEast.panel("resize",{top:28,height:hh});
|
||||
}
|
||||
if(_b(_29.expandWest)){
|
||||
_29.expandWest.panel("resize",{top:28,height:hh});
|
||||
}
|
||||
return {resizeC:{top:28,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:28},collapse:{top:-_29["north"].panel("options").height}};
|
||||
}else{
|
||||
if(_27=="south"){
|
||||
var hh=cc.height()-28;
|
||||
if(_b(_29.expandNorth)){
|
||||
hh-=_29.expandNorth.panel("options").height;
|
||||
}else{
|
||||
if(_b(_29.north)){
|
||||
hh-=_29.north.panel("options").height;
|
||||
}
|
||||
}
|
||||
_29.east.panel("resize",{height:hh});
|
||||
_29.west.panel("resize",{height:hh});
|
||||
if(_b(_29.expandEast)){
|
||||
_29.expandEast.panel("resize",{height:hh});
|
||||
}
|
||||
if(_b(_29.expandWest)){
|
||||
_29.expandWest.panel("resize",{height:hh});
|
||||
}
|
||||
return {resizeC:{height:hh},expand:{top:cc.height()-_29["south"].panel("options").height},expandP:{top:cc.height()-28,left:0,width:cc.width(),height:28},collapse:{top:cc.height()}};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
function _30(_31,_32){
|
||||
var _33=$.data(_31,"layout").panels;
|
||||
var _34=_35();
|
||||
var p=_33[_32];
|
||||
if(p.panel("options").onBeforeExpand.call(p)==false){
|
||||
return;
|
||||
}
|
||||
var _36="expand"+_32.substring(0,1).toUpperCase()+_32.substring(1);
|
||||
_33[_36].panel("close");
|
||||
p.panel("panel").stop(true,true);
|
||||
p.panel("expand",false).panel("open").panel("resize",_34.collapse);
|
||||
p.panel("panel").animate(_34.expand,function(){
|
||||
_2(_31);
|
||||
});
|
||||
function _35(){
|
||||
var cc=$(_31);
|
||||
if(_32=="east"&&_33.expandEast){
|
||||
return {collapse:{left:cc.width()},expand:{left:cc.width()-_33["east"].panel("options").width}};
|
||||
}else{
|
||||
if(_32=="west"&&_33.expandWest){
|
||||
return {collapse:{left:-_33["west"].panel("options").width},expand:{left:0}};
|
||||
}else{
|
||||
if(_32=="north"&&_33.expandNorth){
|
||||
return {collapse:{top:-_33["north"].panel("options").height},expand:{top:0}};
|
||||
}else{
|
||||
if(_32=="south"&&_33.expandSouth){
|
||||
return {collapse:{top:cc.height()},expand:{top:cc.height()-_33["south"].panel("options").height}};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
function _37(_38){
|
||||
var _39=$.data(_38,"layout").panels;
|
||||
var cc=$(_38);
|
||||
if(_39.east.length){
|
||||
_39.east.panel("panel").bind("mouseover","east",_3a);
|
||||
}
|
||||
if(_39.west.length){
|
||||
_39.west.panel("panel").bind("mouseover","west",_3a);
|
||||
}
|
||||
if(_39.north.length){
|
||||
_39.north.panel("panel").bind("mouseover","north",_3a);
|
||||
}
|
||||
if(_39.south.length){
|
||||
_39.south.panel("panel").bind("mouseover","south",_3a);
|
||||
}
|
||||
_39.center.panel("panel").bind("mouseover","center",_3a);
|
||||
function _3a(e){
|
||||
if(_1==true){
|
||||
return;
|
||||
}
|
||||
if(e.data!="east"&&_b(_39.east)&&_b(_39.expandEast)){
|
||||
_25(_38,"east");
|
||||
}
|
||||
if(e.data!="west"&&_b(_39.west)&&_b(_39.expandWest)){
|
||||
_25(_38,"west");
|
||||
}
|
||||
if(e.data!="north"&&_b(_39.north)&&_b(_39.expandNorth)){
|
||||
_25(_38,"north");
|
||||
}
|
||||
if(e.data!="south"&&_b(_39.south)&&_b(_39.expandSouth)){
|
||||
_25(_38,"south");
|
||||
}
|
||||
return false;
|
||||
};
|
||||
};
|
||||
function _b(pp){
|
||||
if(!pp){
|
||||
return false;
|
||||
}
|
||||
if(pp.length){
|
||||
return pp.panel("panel").is(":visible");
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
};
|
||||
function _3b(_3c){
|
||||
var _3d=$.data(_3c,"layout").panels;
|
||||
if(_3d.east.length&&_3d.east.panel("options").collapsed){
|
||||
_25(_3c,"east",0);
|
||||
}
|
||||
if(_3d.west.length&&_3d.west.panel("options").collapsed){
|
||||
_25(_3c,"west",0);
|
||||
}
|
||||
if(_3d.north.length&&_3d.north.panel("options").collapsed){
|
||||
_25(_3c,"north",0);
|
||||
}
|
||||
if(_3d.south.length&&_3d.south.panel("options").collapsed){
|
||||
_25(_3c,"south",0);
|
||||
}
|
||||
};
|
||||
$.fn.layout=function(_3e,_3f){
|
||||
if(typeof _3e=="string"){
|
||||
return $.fn.layout.methods[_3e](this,_3f);
|
||||
}
|
||||
return this.each(function(){
|
||||
var _40=$.data(this,"layout");
|
||||
if(!_40){
|
||||
var _41=$.extend({},{fit:$(this).attr("fit")=="true"});
|
||||
$.data(this,"layout",{options:_41,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}});
|
||||
_c(this);
|
||||
_37(this);
|
||||
}
|
||||
_2(this);
|
||||
_3b(this);
|
||||
});
|
||||
};
|
||||
$.fn.layout.methods={resize:function(jq){
|
||||
return jq.each(function(){
|
||||
_2(this);
|
||||
});
|
||||
},panel:function(jq,_42){
|
||||
return $.data(jq[0],"layout").panels[_42];
|
||||
},collapse:function(jq,_43){
|
||||
return jq.each(function(){
|
||||
_25(this,_43);
|
||||
});
|
||||
},expand:function(jq,_44){
|
||||
return jq.each(function(){
|
||||
_30(this,_44);
|
||||
});
|
||||
},add:function(jq,_45){
|
||||
return jq.each(function(){
|
||||
_11(this,_45);
|
||||
_2(this);
|
||||
if($(this).layout("panel",_45.region).panel("options").collapsed){
|
||||
_25(this,_45.region,0);
|
||||
}
|
||||
});
|
||||
},remove:function(jq,_46){
|
||||
return jq.each(function(){
|
||||
_20(this,_46);
|
||||
_2(this);
|
||||
});
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"linkbutton").options;
|
||||
$(_2).empty();
|
||||
$(_2).addClass("l-btn");
|
||||
if(_3.id){
|
||||
$(_2).attr("id",_3.id);
|
||||
}else{
|
||||
$(_2).removeAttr("id");
|
||||
}
|
||||
if(_3.plain){
|
||||
$(_2).addClass("l-btn-plain");
|
||||
}else{
|
||||
$(_2).removeClass("l-btn-plain");
|
||||
}
|
||||
if(_3.text){
|
||||
$(_2).html(_3.text).wrapInner("<span class=\"l-btn-left\">"+"<span class=\"l-btn-text\">"+"</span>"+"</span>");
|
||||
if(_3.iconCls){
|
||||
$(_2).find(".l-btn-text").addClass(_3.iconCls).css("padding-left","20px");
|
||||
}
|
||||
}else{
|
||||
$(_2).html(" ").wrapInner("<span class=\"l-btn-left\">"+"<span class=\"l-btn-text\">"+"<span class=\"l-btn-empty\"></span>"+"</span>"+"</span>");
|
||||
if(_3.iconCls){
|
||||
$(_2).find(".l-btn-empty").addClass(_3.iconCls);
|
||||
}
|
||||
}
|
||||
$(_2).unbind(".linkbutton").bind("focus.linkbutton",function(){
|
||||
if(!_3.disabled){
|
||||
$(this).find("span.l-btn-text").addClass("l-btn-focus");
|
||||
}
|
||||
}).bind("blur.linkbutton",function(){
|
||||
$(this).find("span.l-btn-text").removeClass("l-btn-focus");
|
||||
});
|
||||
_4(_2,_3.disabled);
|
||||
};
|
||||
function _4(_5,_6){
|
||||
var _7=$.data(_5,"linkbutton");
|
||||
if(_6){
|
||||
_7.options.disabled=true;
|
||||
var _8=$(_5).attr("href");
|
||||
if(_8){
|
||||
_7.href=_8;
|
||||
$(_5).attr("href","javascript:void(0)");
|
||||
}
|
||||
if(_5.onclick){
|
||||
_7.onclick=_5.onclick;
|
||||
_5.onclick=null;
|
||||
}
|
||||
$(_5).addClass("l-btn-disabled");
|
||||
}else{
|
||||
_7.options.disabled=false;
|
||||
if(_7.href){
|
||||
$(_5).attr("href",_7.href);
|
||||
}
|
||||
if(_7.onclick){
|
||||
_5.onclick=_7.onclick;
|
||||
}
|
||||
$(_5).removeClass("l-btn-disabled");
|
||||
}
|
||||
};
|
||||
$.fn.linkbutton=function(_9,_a){
|
||||
if(typeof _9=="string"){
|
||||
return $.fn.linkbutton.methods[_9](this,_a);
|
||||
}
|
||||
_9=_9||{};
|
||||
return this.each(function(){
|
||||
var _b=$.data(this,"linkbutton");
|
||||
if(_b){
|
||||
$.extend(_b.options,_9);
|
||||
}else{
|
||||
$.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_9)});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.linkbutton.methods={options:function(jq){
|
||||
return $.data(jq[0],"linkbutton").options;
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_4(this,false);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_4(this,true);
|
||||
});
|
||||
}};
|
||||
$.fn.linkbutton.parseOptions=function(_c){
|
||||
var t=$(_c);
|
||||
return {id:t.attr("id"),disabled:(t.attr("disabled")?true:undefined),plain:(t.attr("plain")?t.attr("plain")=="true":undefined),text:$.trim(t.html()),iconCls:(t.attr("icon")||t.attr("iconCls"))};
|
||||
};
|
||||
$.fn.linkbutton.defaults={id:null,disabled:false,plain:false,text:"",iconCls:null};
|
||||
})(jQuery);
|
||||
|
|
@ -1,373 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
$(_2).appendTo("body");
|
||||
$(_2).addClass("menu-top");
|
||||
var _3=[];
|
||||
_4($(_2));
|
||||
var _5=null;
|
||||
for(var i=0;i<_3.length;i++){
|
||||
var _6=_3[i];
|
||||
_7(_6);
|
||||
_6.children("div.menu-item").each(function(){
|
||||
_f(_2,$(this));
|
||||
});
|
||||
_6.bind("mouseenter",function(){
|
||||
if(_5){
|
||||
clearTimeout(_5);
|
||||
_5=null;
|
||||
}
|
||||
}).bind("mouseleave",function(){
|
||||
_5=setTimeout(function(){
|
||||
_18(_2);
|
||||
},100);
|
||||
});
|
||||
}
|
||||
function _4(_8){
|
||||
_3.push(_8);
|
||||
_8.find(">div").each(function(){
|
||||
var _9=$(this);
|
||||
var _a=_9.find(">div");
|
||||
if(_a.length){
|
||||
_a.insertAfter(_2);
|
||||
_9[0].submenu=_a;
|
||||
_4(_a);
|
||||
}
|
||||
});
|
||||
};
|
||||
function _7(_b){
|
||||
_b.addClass("menu").find(">div").each(function(){
|
||||
var _c=$(this);
|
||||
if(_c.hasClass("menu-sep")){
|
||||
_c.html(" ");
|
||||
}else{
|
||||
var _d=_c.addClass("menu-item").html();
|
||||
_c.empty().append($("<div class=\"menu-text\"></div>").html(_d));
|
||||
var _e=_c.attr("iconCls")||_c.attr("icon");
|
||||
if(_e){
|
||||
$("<div class=\"menu-icon\"></div>").addClass(_e).appendTo(_c);
|
||||
}
|
||||
if(_c[0].submenu){
|
||||
$("<div class=\"menu-rightarrow\"></div>").appendTo(_c);
|
||||
}
|
||||
_c._outerHeight(22);
|
||||
}
|
||||
});
|
||||
_b.hide();
|
||||
};
|
||||
};
|
||||
function _f(_10,_11){
|
||||
_11.unbind(".menu");
|
||||
_11.bind("mousedown.menu",function(){
|
||||
return false;
|
||||
}).bind("click.menu",function(){
|
||||
if($(this).hasClass("menu-item-disabled")){
|
||||
return;
|
||||
}
|
||||
if(!this.submenu){
|
||||
_18(_10);
|
||||
var _12=$(this).attr("href");
|
||||
if(_12){
|
||||
location.href=_12;
|
||||
}
|
||||
}
|
||||
var _13=$(_10).menu("getItem",this);
|
||||
$.data(_10,"menu").options.onClick.call(_10,_13);
|
||||
}).bind("mouseenter.menu",function(e){
|
||||
_11.siblings().each(function(){
|
||||
if(this.submenu){
|
||||
_17(this.submenu);
|
||||
}
|
||||
$(this).removeClass("menu-active");
|
||||
});
|
||||
_11.addClass("menu-active");
|
||||
if($(this).hasClass("menu-item-disabled")){
|
||||
_11.addClass("menu-active-disabled");
|
||||
return;
|
||||
}
|
||||
var _14=_11[0].submenu;
|
||||
if(_14){
|
||||
var _15=_11.offset().left+_11.outerWidth()-2;
|
||||
if(_15+_14.outerWidth()+5>$(window).width()+$(document).scrollLeft()){
|
||||
_15=_11.offset().left-_14.outerWidth()+2;
|
||||
}
|
||||
var top=_11.offset().top-3;
|
||||
if(top+_14.outerHeight()>$(window).height()+$(document).scrollTop()){
|
||||
top=$(window).height()+$(document).scrollTop()-_14.outerHeight()-5;
|
||||
}
|
||||
_1e(_14,{left:_15,top:top});
|
||||
}
|
||||
}).bind("mouseleave.menu",function(e){
|
||||
_11.removeClass("menu-active menu-active-disabled");
|
||||
var _16=_11[0].submenu;
|
||||
if(_16){
|
||||
if(e.pageX>=parseInt(_16.css("left"))){
|
||||
_11.addClass("menu-active");
|
||||
}else{
|
||||
_17(_16);
|
||||
}
|
||||
}else{
|
||||
_11.removeClass("menu-active");
|
||||
}
|
||||
});
|
||||
};
|
||||
function _18(_19){
|
||||
var _1a=$.data(_19,"menu").options;
|
||||
_17($(_19));
|
||||
$(document).unbind(".menu");
|
||||
_1a.onHide.call(_19);
|
||||
return false;
|
||||
};
|
||||
function _1b(_1c,pos){
|
||||
var _1d=$.data(_1c,"menu").options;
|
||||
if(pos){
|
||||
_1d.left=pos.left;
|
||||
_1d.top=pos.top;
|
||||
if(_1d.left+$(_1c).outerWidth()>$(window).width()+$(document).scrollLeft()){
|
||||
_1d.left=$(window).width()+$(document).scrollLeft()-$(_1c).outerWidth()-5;
|
||||
}
|
||||
if(_1d.top+$(_1c).outerHeight()>$(window).height()+$(document).scrollTop()){
|
||||
_1d.top-=$(_1c).outerHeight();
|
||||
}
|
||||
}
|
||||
_1e($(_1c),{left:_1d.left,top:_1d.top},function(){
|
||||
$(document).unbind(".menu").bind("mousedown.menu",function(){
|
||||
_18(_1c);
|
||||
$(document).unbind(".menu");
|
||||
return false;
|
||||
});
|
||||
_1d.onShow.call(_1c);
|
||||
});
|
||||
};
|
||||
function _1e(_1f,pos,_20){
|
||||
if(!_1f){
|
||||
return;
|
||||
}
|
||||
if(pos){
|
||||
_1f.css(pos);
|
||||
}
|
||||
_1f.show(0,function(){
|
||||
if(!_1f[0].shadow){
|
||||
_1f[0].shadow=$("<div class=\"menu-shadow\"></div>").insertAfter(_1f);
|
||||
}
|
||||
_1f[0].shadow.css({display:"block",zIndex:$.fn.menu.defaults.zIndex++,left:_1f.css("left"),top:_1f.css("top"),width:_1f.outerWidth(),height:_1f.outerHeight()});
|
||||
_1f.css("z-index",$.fn.menu.defaults.zIndex++);
|
||||
if(_20){
|
||||
_20();
|
||||
}
|
||||
});
|
||||
};
|
||||
function _17(_21){
|
||||
if(!_21){
|
||||
return;
|
||||
}
|
||||
_22(_21);
|
||||
_21.find("div.menu-item").each(function(){
|
||||
if(this.submenu){
|
||||
_17(this.submenu);
|
||||
}
|
||||
$(this).removeClass("menu-active");
|
||||
});
|
||||
function _22(m){
|
||||
m.stop(true,true);
|
||||
if(m[0].shadow){
|
||||
m[0].shadow.hide();
|
||||
}
|
||||
m.hide();
|
||||
};
|
||||
};
|
||||
function _23(_24,_25){
|
||||
var _26=null;
|
||||
var tmp=$("<div></div>");
|
||||
function _27(_28){
|
||||
_28.children("div.menu-item").each(function(){
|
||||
var _29=$(_24).menu("getItem",this);
|
||||
var s=tmp.empty().html(_29.text).text();
|
||||
if(_25==$.trim(s)){
|
||||
_26=_29;
|
||||
}else{
|
||||
if(this.submenu&&!_26){
|
||||
_27(this.submenu);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
_27($(_24));
|
||||
tmp.remove();
|
||||
return _26;
|
||||
};
|
||||
function _2a(_2b,_2c,_2d){
|
||||
var t=$(_2c);
|
||||
if(_2d){
|
||||
t.addClass("menu-item-disabled");
|
||||
if(_2c.onclick){
|
||||
_2c.onclick1=_2c.onclick;
|
||||
_2c.onclick=null;
|
||||
}
|
||||
}else{
|
||||
t.removeClass("menu-item-disabled");
|
||||
if(_2c.onclick1){
|
||||
_2c.onclick=_2c.onclick1;
|
||||
_2c.onclick1=null;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _2e(_2f,_30){
|
||||
var _31=$(_2f);
|
||||
if(_30.parent){
|
||||
_31=_30.parent.submenu;
|
||||
}
|
||||
var _32=$("<div class=\"menu-item\"></div>").appendTo(_31);
|
||||
$("<div class=\"menu-text\"></div>").html(_30.text).appendTo(_32);
|
||||
if(_30.iconCls){
|
||||
$("<div class=\"menu-icon\"></div>").addClass(_30.iconCls).appendTo(_32);
|
||||
}
|
||||
if(_30.id){
|
||||
_32.attr("id",_30.id);
|
||||
}
|
||||
if(_30.href){
|
||||
_32.attr("href",_30.href);
|
||||
}
|
||||
if(_30.onclick){
|
||||
if(typeof _30.onclick=="string"){
|
||||
_32.attr("onclick",_30.onclick);
|
||||
}else{
|
||||
_32[0].onclick=eval(_30.onclick);
|
||||
}
|
||||
}
|
||||
if(_30.handler){
|
||||
_32[0].onclick=eval(_30.handler);
|
||||
}
|
||||
_f(_2f,_32);
|
||||
};
|
||||
function _33(_34,_35){
|
||||
function _36(el){
|
||||
if(el.submenu){
|
||||
el.submenu.children("div.menu-item").each(function(){
|
||||
_36(this);
|
||||
});
|
||||
var _37=el.submenu[0].shadow;
|
||||
if(_37){
|
||||
_37.remove();
|
||||
}
|
||||
el.submenu.remove();
|
||||
}
|
||||
$(el).remove();
|
||||
};
|
||||
_36(_35);
|
||||
};
|
||||
function _38(_39){
|
||||
$(_39).children("div.menu-item").each(function(){
|
||||
_33(_39,this);
|
||||
});
|
||||
if(_39.shadow){
|
||||
_39.shadow.remove();
|
||||
}
|
||||
$(_39).remove();
|
||||
};
|
||||
$.fn.menu=function(_3a,_3b){
|
||||
if(typeof _3a=="string"){
|
||||
return $.fn.menu.methods[_3a](this,_3b);
|
||||
}
|
||||
_3a=_3a||{};
|
||||
return this.each(function(){
|
||||
var _3c=$.data(this,"menu");
|
||||
if(_3c){
|
||||
$.extend(_3c.options,_3a);
|
||||
}else{
|
||||
_3c=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,_3a)});
|
||||
_1(this);
|
||||
}
|
||||
$(this).css({left:_3c.options.left,top:_3c.options.top});
|
||||
});
|
||||
};
|
||||
$.fn._outerWidth=function(_3d){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).width(_3d);
|
||||
}else{
|
||||
$(this).width(_3d-($(this).outerWidth()-$(this).width()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn._outerHeight=function(_3e){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).height(_3e);
|
||||
}else{
|
||||
$(this).height(_3e-($(this).outerHeight()-$(this).height()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.menu.methods={show:function(jq,pos){
|
||||
return jq.each(function(){
|
||||
_1b(this,pos);
|
||||
});
|
||||
},hide:function(jq){
|
||||
return jq.each(function(){
|
||||
_18(this);
|
||||
});
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
_38(this);
|
||||
});
|
||||
},setText:function(jq,_3f){
|
||||
return jq.each(function(){
|
||||
$(_3f.target).children("div.menu-text").html(_3f.text);
|
||||
});
|
||||
},setIcon:function(jq,_40){
|
||||
return jq.each(function(){
|
||||
var _41=$(this).menu("getItem",_40.target);
|
||||
if(_41.iconCls){
|
||||
$(_41.target).children("div.menu-icon").removeClass(_41.iconCls).addClass(_40.iconCls);
|
||||
}else{
|
||||
$("<div class=\"menu-icon\"></div>").addClass(_40.iconCls).appendTo(_40.target);
|
||||
}
|
||||
});
|
||||
},getItem:function(jq,_42){
|
||||
var _43={target:_42,id:$(_42).attr("id"),text:$.trim($(_42).children("div.menu-text").html()),disabled:$(_42).hasClass("menu-item-disabled"),href:$(_42).attr("href"),onclick:_42.onclick};
|
||||
var _44=$(_42).children("div.menu-icon");
|
||||
if(_44.length){
|
||||
var cc=[];
|
||||
var aa=_44.attr("class").split(" ");
|
||||
for(var i=0;i<aa.length;i++){
|
||||
if(aa[i]!="menu-icon"){
|
||||
cc.push(aa[i]);
|
||||
}
|
||||
}
|
||||
_43.iconCls=cc.join(" ");
|
||||
}
|
||||
return _43;
|
||||
},findItem:function(jq,_45){
|
||||
return _23(jq[0],_45);
|
||||
},appendItem:function(jq,_46){
|
||||
return jq.each(function(){
|
||||
_2e(this,_46);
|
||||
});
|
||||
},removeItem:function(jq,_47){
|
||||
return jq.each(function(){
|
||||
_33(this,_47);
|
||||
});
|
||||
},enableItem:function(jq,_48){
|
||||
return jq.each(function(){
|
||||
_2a(this,_48,false);
|
||||
});
|
||||
},disableItem:function(jq,_49){
|
||||
return jq.each(function(){
|
||||
_2a(this,_49,true);
|
||||
});
|
||||
}};
|
||||
$.fn.menu.defaults={zIndex:110000,left:0,top:0,onShow:function(){
|
||||
},onHide:function(){
|
||||
},onClick:function(_4a){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,105 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"menubutton").options;
|
||||
var _4=$(_2);
|
||||
_4.removeClass("m-btn-active m-btn-plain-active").addClass("m-btn");
|
||||
_4.linkbutton($.extend({},_3,{text:_3.text+"<span class=\"m-btn-downarrow\"> </span>"}));
|
||||
if(_3.menu){
|
||||
$(_3.menu).menu({onShow:function(){
|
||||
_4.addClass((_3.plain==true)?"m-btn-plain-active":"m-btn-active");
|
||||
},onHide:function(){
|
||||
_4.removeClass((_3.plain==true)?"m-btn-plain-active":"m-btn-active");
|
||||
}});
|
||||
}
|
||||
_5(_2,_3.disabled);
|
||||
};
|
||||
function _5(_6,_7){
|
||||
var _8=$.data(_6,"menubutton").options;
|
||||
_8.disabled=_7;
|
||||
var _9=$(_6);
|
||||
if(_7){
|
||||
_9.linkbutton("disable");
|
||||
_9.unbind(".menubutton");
|
||||
}else{
|
||||
_9.linkbutton("enable");
|
||||
_9.unbind(".menubutton");
|
||||
_9.bind("click.menubutton",function(){
|
||||
_a();
|
||||
return false;
|
||||
});
|
||||
var _b=null;
|
||||
_9.bind("mouseenter.menubutton",function(){
|
||||
_b=setTimeout(function(){
|
||||
_a();
|
||||
},_8.duration);
|
||||
return false;
|
||||
}).bind("mouseleave.menubutton",function(){
|
||||
if(_b){
|
||||
clearTimeout(_b);
|
||||
}
|
||||
});
|
||||
}
|
||||
function _a(){
|
||||
if(!_8.menu){
|
||||
return;
|
||||
}
|
||||
var _c=_9.offset().left;
|
||||
if(_c+$(_8.menu).outerWidth()+5>$(window).width()){
|
||||
_c=$(window).width()-$(_8.menu).outerWidth()-5;
|
||||
}
|
||||
$("body>div.menu-top").menu("hide");
|
||||
$(_8.menu).menu("show",{left:_c,top:_9.offset().top+_9.outerHeight()});
|
||||
_9.blur();
|
||||
};
|
||||
};
|
||||
$.fn.menubutton=function(_d,_e){
|
||||
if(typeof _d=="string"){
|
||||
return $.fn.menubutton.methods[_d](this,_e);
|
||||
}
|
||||
_d=_d||{};
|
||||
return this.each(function(){
|
||||
var _f=$.data(this,"menubutton");
|
||||
if(_f){
|
||||
$.extend(_f.options,_d);
|
||||
}else{
|
||||
$.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_d)});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.menubutton.methods={options:function(jq){
|
||||
return $.data(jq[0],"menubutton").options;
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_5(this,false);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_5(this,true);
|
||||
});
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
var _10=$(this).menubutton("options");
|
||||
if(_10.menu){
|
||||
$(_10.menu).menu("destroy");
|
||||
}
|
||||
$(this).remove();
|
||||
});
|
||||
}};
|
||||
$.fn.menubutton.parseOptions=function(_11){
|
||||
var t=$(_11);
|
||||
return $.extend({},$.fn.linkbutton.parseOptions(_11),{menu:t.attr("menu"),duration:t.attr("duration")});
|
||||
};
|
||||
$.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100});
|
||||
})(jQuery);
|
||||
|
|
@ -1,211 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(el,_2,_3,_4){
|
||||
var _5=$(el).window("window");
|
||||
if(!_5){
|
||||
return;
|
||||
}
|
||||
switch(_2){
|
||||
case null:
|
||||
_5.show();
|
||||
break;
|
||||
case "slide":
|
||||
_5.slideDown(_3);
|
||||
break;
|
||||
case "fade":
|
||||
_5.fadeIn(_3);
|
||||
break;
|
||||
case "show":
|
||||
_5.show(_3);
|
||||
break;
|
||||
}
|
||||
var _6=null;
|
||||
if(_4>0){
|
||||
_6=setTimeout(function(){
|
||||
_7(el,_2,_3);
|
||||
},_4);
|
||||
}
|
||||
_5.hover(function(){
|
||||
if(_6){
|
||||
clearTimeout(_6);
|
||||
}
|
||||
},function(){
|
||||
if(_4>0){
|
||||
_6=setTimeout(function(){
|
||||
_7(el,_2,_3);
|
||||
},_4);
|
||||
}
|
||||
});
|
||||
};
|
||||
function _7(el,_8,_9){
|
||||
if(el.locked==true){
|
||||
return;
|
||||
}
|
||||
el.locked=true;
|
||||
var _a=$(el).window("window");
|
||||
if(!_a){
|
||||
return;
|
||||
}
|
||||
switch(_8){
|
||||
case null:
|
||||
_a.hide();
|
||||
break;
|
||||
case "slide":
|
||||
_a.slideUp(_9);
|
||||
break;
|
||||
case "fade":
|
||||
_a.fadeOut(_9);
|
||||
break;
|
||||
case "show":
|
||||
_a.hide(_9);
|
||||
break;
|
||||
}
|
||||
setTimeout(function(){
|
||||
$(el).window("destroy");
|
||||
},_9);
|
||||
};
|
||||
function _b(_c,_d,_e){
|
||||
var _f=$("<div class=\"messager-body\"></div>").appendTo("body");
|
||||
_f.append(_d);
|
||||
if(_e){
|
||||
var tb=$("<div class=\"messager-button\"></div>").appendTo(_f);
|
||||
for(var _10 in _e){
|
||||
$("<a></a>").attr("href","javascript:void(0)").text(_10).css("margin-left",10).bind("click",eval(_e[_10])).appendTo(tb).linkbutton();
|
||||
}
|
||||
}
|
||||
_f.window({title:_c,noheader:(_c?false:true),width:300,height:"auto",modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,onClose:function(){
|
||||
setTimeout(function(){
|
||||
_f.window("destroy");
|
||||
},100);
|
||||
}});
|
||||
_f.window("window").addClass("messager-window");
|
||||
_f.children("div.messager-button").children("a:first").focus();
|
||||
return _f;
|
||||
};
|
||||
$.messager={show:function(_11){
|
||||
var _12=$.extend({showType:"slide",showSpeed:600,width:250,height:100,msg:"",title:"",timeout:4000},_11||{});
|
||||
var win=$("<div class=\"messager-body\"></div>").html(_12.msg).appendTo("body");
|
||||
win.window({title:_12.title,width:_12.width,height:_12.height,collapsible:false,minimizable:false,maximizable:false,shadow:false,draggable:false,resizable:false,closed:true,onBeforeOpen:function(){
|
||||
_1(this,_12.showType,_12.showSpeed,_12.timeout);
|
||||
return false;
|
||||
},onBeforeClose:function(){
|
||||
_7(this,_12.showType,_12.showSpeed);
|
||||
return false;
|
||||
}});
|
||||
win.window("window").css({left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop});
|
||||
win.window("open");
|
||||
},alert:function(_13,msg,_14,fn){
|
||||
var _15="<div>"+msg+"</div>";
|
||||
switch(_14){
|
||||
case "error":
|
||||
_15="<div class=\"messager-icon messager-error\"></div>"+_15;
|
||||
break;
|
||||
case "info":
|
||||
_15="<div class=\"messager-icon messager-info\"></div>"+_15;
|
||||
break;
|
||||
case "question":
|
||||
_15="<div class=\"messager-icon messager-question\"></div>"+_15;
|
||||
break;
|
||||
case "warning":
|
||||
_15="<div class=\"messager-icon messager-warning\"></div>"+_15;
|
||||
break;
|
||||
}
|
||||
_15+="<div style=\"clear:both;\"/>";
|
||||
var _16={};
|
||||
_16[$.messager.defaults.ok]=function(){
|
||||
win.dialog({closed:true});
|
||||
if(fn){
|
||||
fn();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
_16[$.messager.defaults.ok]=function(){
|
||||
win.window("close");
|
||||
if(fn){
|
||||
fn();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var win=_b(_13,_15,_16);
|
||||
},confirm:function(_17,msg,fn){
|
||||
var _18="<div class=\"messager-icon messager-question\"></div>"+"<div>"+msg+"</div>"+"<div style=\"clear:both;\"/>";
|
||||
var _19={};
|
||||
_19[$.messager.defaults.ok]=function(){
|
||||
win.window("close");
|
||||
if(fn){
|
||||
fn(true);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
_19[$.messager.defaults.cancel]=function(){
|
||||
win.window("close");
|
||||
if(fn){
|
||||
fn(false);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var win=_b(_17,_18,_19);
|
||||
},prompt:function(_1a,msg,fn){
|
||||
var _1b="<div class=\"messager-icon messager-question\"></div>"+"<div>"+msg+"</div>"+"<br/>"+"<input class=\"messager-input\" type=\"text\"/>"+"<div style=\"clear:both;\"/>";
|
||||
var _1c={};
|
||||
_1c[$.messager.defaults.ok]=function(){
|
||||
win.window("close");
|
||||
if(fn){
|
||||
fn($(".messager-input",win).val());
|
||||
return false;
|
||||
}
|
||||
};
|
||||
_1c[$.messager.defaults.cancel]=function(){
|
||||
win.window("close");
|
||||
if(fn){
|
||||
fn();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var win=_b(_1a,_1b,_1c);
|
||||
win.children("input.messager-input").focus();
|
||||
},progress:function(_1d){
|
||||
var _1e=$.extend({title:"",msg:"",text:undefined,interval:300},_1d||{});
|
||||
var _1f={bar:function(){
|
||||
return $("body>div.messager-window").find("div.messager-p-bar");
|
||||
},close:function(){
|
||||
var win=$("body>div.messager-window>div.messager-body");
|
||||
if(win.length){
|
||||
if(win[0].timer){
|
||||
clearInterval(win[0].timer);
|
||||
}
|
||||
win.window("close");
|
||||
}
|
||||
}};
|
||||
if(typeof _1d=="string"){
|
||||
var _20=_1f[_1d];
|
||||
return _20();
|
||||
}
|
||||
var _21="<div class=\"messager-progress\"><div class=\"messager-p-msg\"></div><div class=\"messager-p-bar\"></div></div>";
|
||||
var win=_b(_1e.title,_21,null);
|
||||
win.find("div.messager-p-msg").html(_1e.msg);
|
||||
var bar=win.find("div.messager-p-bar");
|
||||
bar.progressbar({text:_1e.text});
|
||||
win.window({closable:false});
|
||||
if(_1e.interval){
|
||||
win[0].timer=setInterval(function(){
|
||||
var v=bar.progressbar("getValue");
|
||||
v+=10;
|
||||
if(v>100){
|
||||
v=0;
|
||||
}
|
||||
bar.progressbar("setValue",v);
|
||||
},_1e.interval);
|
||||
}
|
||||
}};
|
||||
$.messager.defaults={ok:"Ok",cancel:"Cancel"};
|
||||
})(jQuery);
|
||||
|
|
@ -1,218 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var v=$("<input type=\"hidden\">").insertAfter(_2);
|
||||
var _3=$(_2).attr("name");
|
||||
if(_3){
|
||||
v.attr("name",_3);
|
||||
$(_2).removeAttr("name").attr("numberboxName",_3);
|
||||
}
|
||||
return v;
|
||||
};
|
||||
function _4(_5){
|
||||
var _6=$.data(_5,"numberbox").options;
|
||||
var fn=_6.onChange;
|
||||
_6.onChange=function(){
|
||||
};
|
||||
_7(_5,_6.parser.call(_5,_6.value));
|
||||
_6.onChange=fn;
|
||||
};
|
||||
function _8(_9){
|
||||
return $.data(_9,"numberbox").field.val();
|
||||
};
|
||||
function _7(_a,_b){
|
||||
var _c=$.data(_a,"numberbox");
|
||||
var _d=_c.options;
|
||||
var _e=_8(_a);
|
||||
_b=_d.parser.call(_a,_b);
|
||||
_d.value=_b;
|
||||
_c.field.val(_b);
|
||||
$(_a).val(_d.formatter.call(_a,_b));
|
||||
if(_e!=_b){
|
||||
_d.onChange.call(_a,_b,_e);
|
||||
}
|
||||
};
|
||||
function _f(_10){
|
||||
var _11=$.data(_10,"numberbox").options;
|
||||
$(_10).unbind(".numberbox").bind("keypress.numberbox",function(e){
|
||||
if(e.which==45){
|
||||
return true;
|
||||
}
|
||||
if(e.which==46){
|
||||
return true;
|
||||
}else{
|
||||
if((e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false)||e.which==0||e.which==8){
|
||||
return true;
|
||||
}else{
|
||||
if(e.ctrlKey==true&&(e.which==99||e.which==118)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}).bind("paste.numberbox",function(){
|
||||
if(window.clipboardData){
|
||||
var s=clipboardData.getData("text");
|
||||
if(!/\D/.test(s)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}).bind("dragenter.numberbox",function(){
|
||||
return false;
|
||||
}).bind("blur.numberbox",function(){
|
||||
_7(_10,$(this).val());
|
||||
$(this).val(_11.formatter.call(_10,_8(_10)));
|
||||
}).bind("focus.numberbox",function(){
|
||||
var vv=_8(_10);
|
||||
if($(this).val()!=vv){
|
||||
$(this).val(vv);
|
||||
}
|
||||
});
|
||||
};
|
||||
function _12(_13){
|
||||
if($.fn.validatebox){
|
||||
var _14=$.data(_13,"numberbox").options;
|
||||
$(_13).validatebox(_14);
|
||||
}
|
||||
};
|
||||
function _15(_16,_17){
|
||||
var _18=$.data(_16,"numberbox").options;
|
||||
if(_17){
|
||||
_18.disabled=true;
|
||||
$(_16).attr("disabled",true);
|
||||
}else{
|
||||
_18.disabled=false;
|
||||
$(_16).removeAttr("disabled");
|
||||
}
|
||||
};
|
||||
$.fn.numberbox=function(_19,_1a){
|
||||
if(typeof _19=="string"){
|
||||
var _1b=$.fn.numberbox.methods[_19];
|
||||
if(_1b){
|
||||
return _1b(this,_1a);
|
||||
}else{
|
||||
return this.validatebox(_19,_1a);
|
||||
}
|
||||
}
|
||||
_19=_19||{};
|
||||
return this.each(function(){
|
||||
var _1c=$.data(this,"numberbox");
|
||||
if(_1c){
|
||||
$.extend(_1c.options,_19);
|
||||
}else{
|
||||
_1c=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_19),field:_1(this)});
|
||||
$(this).removeAttr("disabled");
|
||||
$(this).css({imeMode:"disabled"});
|
||||
}
|
||||
_15(this,_1c.options.disabled);
|
||||
_f(this);
|
||||
_12(this);
|
||||
_4(this);
|
||||
});
|
||||
};
|
||||
$.fn.numberbox.methods={options:function(jq){
|
||||
return $.data(jq[0],"numberbox").options;
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
$.data(this,"numberbox").field.remove();
|
||||
$(this).validatebox("destroy");
|
||||
$(this).remove();
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_15(this,true);
|
||||
});
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_15(this,false);
|
||||
});
|
||||
},fix:function(jq){
|
||||
return jq.each(function(){
|
||||
_7(this,$(this).val());
|
||||
});
|
||||
},setValue:function(jq,_1d){
|
||||
return jq.each(function(){
|
||||
_7(this,_1d);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return _8(jq[0]);
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
var _1e=$.data(this,"numberbox");
|
||||
_1e.field.val("");
|
||||
$(this).val("");
|
||||
});
|
||||
}};
|
||||
$.fn.numberbox.parseOptions=function(_1f){
|
||||
var t=$(_1f);
|
||||
return $.extend({},$.fn.validatebox.parseOptions(_1f),{disabled:(t.attr("disabled")?true:undefined),value:(t.val()||undefined),min:(t.attr("min")=="0"?0:parseFloat(t.attr("min"))||undefined),max:(t.attr("max")=="0"?0:parseFloat(t.attr("max"))||undefined),precision:(parseInt(t.attr("precision"))||undefined),decimalSeparator:(t.attr("decimalSeparator")?t.attr("decimalSeparator"):undefined),groupSeparator:(t.attr("groupSeparator")?t.attr("groupSeparator"):undefined),prefix:(t.attr("prefix")?t.attr("prefix"):undefined),suffix:(t.attr("suffix")?t.attr("suffix"):undefined)});
|
||||
};
|
||||
$.fn.numberbox.defaults=$.extend({},$.fn.validatebox.defaults,{disabled:false,value:"",min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",formatter:function(_20){
|
||||
if(!_20){
|
||||
return _20;
|
||||
}
|
||||
_20=_20+"";
|
||||
var _21=$(this).numberbox("options");
|
||||
var s1=_20,s2="";
|
||||
var _22=_20.indexOf(".");
|
||||
if(_22>=0){
|
||||
s1=_20.substring(0,_22);
|
||||
s2=_20.substring(_22+1,_20.length);
|
||||
}
|
||||
if(_21.groupSeparator){
|
||||
var p=/(\d+)(\d{3})/;
|
||||
while(p.test(s1)){
|
||||
s1=s1.replace(p,"$1"+_21.groupSeparator+"$2");
|
||||
}
|
||||
}
|
||||
if(s2){
|
||||
return _21.prefix+s1+_21.decimalSeparator+s2+_21.suffix;
|
||||
}else{
|
||||
return _21.prefix+s1+_21.suffix;
|
||||
}
|
||||
},parser:function(s){
|
||||
s=s+"";
|
||||
var _23=$(this).numberbox("options");
|
||||
if(_23.groupSeparator){
|
||||
s=s.replace(new RegExp("\\"+_23.groupSeparator,"g"),"");
|
||||
}
|
||||
if(_23.decimalSeparator){
|
||||
s=s.replace(new RegExp("\\"+_23.decimalSeparator,"g"),".");
|
||||
}
|
||||
if(_23.prefix){
|
||||
s=s.replace(new RegExp("\\"+$.trim(_23.prefix),"g"),"");
|
||||
}
|
||||
if(_23.suffix){
|
||||
s=s.replace(new RegExp("\\"+$.trim(_23.suffix),"g"),"");
|
||||
}
|
||||
s=s.replace(/\s/g,"");
|
||||
var val=parseFloat(s).toFixed(_23.precision);
|
||||
if(isNaN(val)){
|
||||
val="";
|
||||
}else{
|
||||
if(typeof (_23.min)=="number"&&val<_23.min){
|
||||
val=_23.min.toFixed(_23.precision);
|
||||
}else{
|
||||
if(typeof (_23.max)=="number"&&val>_23.max){
|
||||
val=_23.max.toFixed(_23.precision);
|
||||
}
|
||||
}
|
||||
}
|
||||
return val;
|
||||
},onChange:function(_24,_25){
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"numberspinner").options;
|
||||
$(_2).spinner(_3).numberbox(_3);
|
||||
};
|
||||
function _4(_5,_6){
|
||||
var _7=$.data(_5,"numberspinner").options;
|
||||
var v=parseFloat($(_5).numberbox("getValue")||_7.value)||0;
|
||||
if(_6==true){
|
||||
v-=_7.increment;
|
||||
}else{
|
||||
v+=_7.increment;
|
||||
}
|
||||
$(_5).numberbox("setValue",v);
|
||||
};
|
||||
$.fn.numberspinner=function(_8,_9){
|
||||
if(typeof _8=="string"){
|
||||
var _a=$.fn.numberspinner.methods[_8];
|
||||
if(_a){
|
||||
return _a(this,_9);
|
||||
}else{
|
||||
return this.spinner(_8,_9);
|
||||
}
|
||||
}
|
||||
_8=_8||{};
|
||||
return this.each(function(){
|
||||
var _b=$.data(this,"numberspinner");
|
||||
if(_b){
|
||||
$.extend(_b.options,_8);
|
||||
}else{
|
||||
$.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_8)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.numberspinner.methods={options:function(jq){
|
||||
var _c=$.data(jq[0],"numberspinner").options;
|
||||
return $.extend(_c,{value:jq.numberbox("getValue")});
|
||||
},setValue:function(jq,_d){
|
||||
return jq.each(function(){
|
||||
$(this).numberbox("setValue",_d);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return jq.numberbox("getValue");
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).spinner("clear");
|
||||
$(this).numberbox("clear");
|
||||
});
|
||||
}};
|
||||
$.fn.numberspinner.parseOptions=function(_e){
|
||||
return $.extend({},$.fn.spinner.parseOptions(_e),$.fn.numberbox.parseOptions(_e),{});
|
||||
};
|
||||
$.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(_f){
|
||||
_4(this,_f);
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,176 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"pagination").options;
|
||||
var _4=$(_2).addClass("pagination").empty();
|
||||
var t=$("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr></tr></table>").appendTo(_4);
|
||||
var tr=$("tr",t);
|
||||
if(_3.showPageList){
|
||||
var ps=$("<select class=\"pagination-page-list\"></select>");
|
||||
for(var i=0;i<_3.pageList.length;i++){
|
||||
var _5=$("<option></option>").text(_3.pageList[i]).appendTo(ps);
|
||||
if(_3.pageList[i]==_3.pageSize){
|
||||
_5.attr("selected","selected");
|
||||
}
|
||||
}
|
||||
$("<td></td>").append(ps).appendTo(tr);
|
||||
_3.pageSize=parseInt(ps.val());
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
}
|
||||
$("<td><a href=\"javascript:void(0)\" icon=\"pagination-first\"></a></td>").appendTo(tr);
|
||||
$("<td><a href=\"javascript:void(0)\" icon=\"pagination-prev\"></a></td>").appendTo(tr);
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
$("<span style=\"padding-left:6px;\"></span>").html(_3.beforePageText).wrap("<td></td>").parent().appendTo(tr);
|
||||
$("<td><input class=\"pagination-num\" type=\"text\" value=\"1\" size=\"2\"></td>").appendTo(tr);
|
||||
$("<span style=\"padding-right:6px;\"></span>").wrap("<td></td>").parent().appendTo(tr);
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
$("<td><a href=\"javascript:void(0)\" icon=\"pagination-next\"></a></td>").appendTo(tr);
|
||||
$("<td><a href=\"javascript:void(0)\" icon=\"pagination-last\"></a></td>").appendTo(tr);
|
||||
if(_3.showRefresh){
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
$("<td><a href=\"javascript:void(0)\" icon=\"pagination-load\"></a></td>").appendTo(tr);
|
||||
}
|
||||
if(_3.buttons){
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
for(var i=0;i<_3.buttons.length;i++){
|
||||
var _6=_3.buttons[i];
|
||||
if(_6=="-"){
|
||||
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
|
||||
}else{
|
||||
var td=$("<td></td>").appendTo(tr);
|
||||
$("<a href=\"javascript:void(0)\"></a>").addClass("l-btn").css("float","left").text(_6.text||"").attr("icon",_6.iconCls||"").bind("click",eval(_6.handler||function(){
|
||||
})).appendTo(td).linkbutton({plain:true});
|
||||
}
|
||||
}
|
||||
}
|
||||
$("<div class=\"pagination-info\"></div>").appendTo(_4);
|
||||
$("<div style=\"clear:both;\"></div>").appendTo(_4);
|
||||
$("a[icon^=pagination]",_4).linkbutton({plain:true});
|
||||
_4.find("a[icon=pagination-first]").unbind(".pagination").bind("click.pagination",function(){
|
||||
if(_3.pageNumber>1){
|
||||
_b(_2,1);
|
||||
}
|
||||
});
|
||||
_4.find("a[icon=pagination-prev]").unbind(".pagination").bind("click.pagination",function(){
|
||||
if(_3.pageNumber>1){
|
||||
_b(_2,_3.pageNumber-1);
|
||||
}
|
||||
});
|
||||
_4.find("a[icon=pagination-next]").unbind(".pagination").bind("click.pagination",function(){
|
||||
var _7=Math.ceil(_3.total/_3.pageSize);
|
||||
if(_3.pageNumber<_7){
|
||||
_b(_2,_3.pageNumber+1);
|
||||
}
|
||||
});
|
||||
_4.find("a[icon=pagination-last]").unbind(".pagination").bind("click.pagination",function(){
|
||||
var _8=Math.ceil(_3.total/_3.pageSize);
|
||||
if(_3.pageNumber<_8){
|
||||
_b(_2,_8);
|
||||
}
|
||||
});
|
||||
_4.find("a[icon=pagination-load]").unbind(".pagination").bind("click.pagination",function(){
|
||||
if(_3.onBeforeRefresh.call(_2,_3.pageNumber,_3.pageSize)!=false){
|
||||
_b(_2,_3.pageNumber);
|
||||
_3.onRefresh.call(_2,_3.pageNumber,_3.pageSize);
|
||||
}
|
||||
});
|
||||
_4.find("input.pagination-num").unbind(".pagination").bind("keydown.pagination",function(e){
|
||||
if(e.keyCode==13){
|
||||
var _9=parseInt($(this).val())||1;
|
||||
_b(_2,_9);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
_4.find(".pagination-page-list").unbind(".pagination").bind("change.pagination",function(){
|
||||
_3.pageSize=$(this).val();
|
||||
_3.onChangePageSize.call(_2,_3.pageSize);
|
||||
var _a=Math.ceil(_3.total/_3.pageSize);
|
||||
_b(_2,_3.pageNumber);
|
||||
});
|
||||
};
|
||||
function _b(_c,_d){
|
||||
var _e=$.data(_c,"pagination").options;
|
||||
var _f=Math.ceil(_e.total/_e.pageSize)||1;
|
||||
var _10=_d;
|
||||
if(_d<1){
|
||||
_10=1;
|
||||
}
|
||||
if(_d>_f){
|
||||
_10=_f;
|
||||
}
|
||||
_e.pageNumber=_10;
|
||||
_e.onSelectPage.call(_c,_10,_e.pageSize);
|
||||
_11(_c);
|
||||
};
|
||||
function _11(_12){
|
||||
var _13=$.data(_12,"pagination").options;
|
||||
var _14=Math.ceil(_13.total/_13.pageSize)||1;
|
||||
var num=$(_12).find("input.pagination-num");
|
||||
num.val(_13.pageNumber);
|
||||
num.parent().next().find("span").html(_13.afterPageText.replace(/{pages}/,_14));
|
||||
var _15=_13.displayMsg;
|
||||
_15=_15.replace(/{from}/,_13.pageSize*(_13.pageNumber-1)+1);
|
||||
_15=_15.replace(/{to}/,Math.min(_13.pageSize*(_13.pageNumber),_13.total));
|
||||
_15=_15.replace(/{total}/,_13.total);
|
||||
$(_12).find(".pagination-info").html(_15);
|
||||
$("a[icon=pagination-first],a[icon=pagination-prev]",_12).linkbutton({disabled:(_13.pageNumber==1)});
|
||||
$("a[icon=pagination-next],a[icon=pagination-last]",_12).linkbutton({disabled:(_13.pageNumber==_14)});
|
||||
if(_13.loading){
|
||||
$(_12).find("a[icon=pagination-load]").find(".pagination-load").addClass("pagination-loading");
|
||||
}else{
|
||||
$(_12).find("a[icon=pagination-load]").find(".pagination-load").removeClass("pagination-loading");
|
||||
}
|
||||
};
|
||||
function _16(_17,_18){
|
||||
var _19=$.data(_17,"pagination").options;
|
||||
_19.loading=_18;
|
||||
if(_19.loading){
|
||||
$(_17).find("a[icon=pagination-load]").find(".pagination-load").addClass("pagination-loading");
|
||||
}else{
|
||||
$(_17).find("a[icon=pagination-load]").find(".pagination-load").removeClass("pagination-loading");
|
||||
}
|
||||
};
|
||||
$.fn.pagination=function(_1a,_1b){
|
||||
if(typeof _1a=="string"){
|
||||
return $.fn.pagination.methods[_1a](this,_1b);
|
||||
}
|
||||
_1a=_1a||{};
|
||||
return this.each(function(){
|
||||
var _1c;
|
||||
var _1d=$.data(this,"pagination");
|
||||
if(_1d){
|
||||
_1c=$.extend(_1d.options,_1a);
|
||||
}else{
|
||||
_1c=$.extend({},$.fn.pagination.defaults,_1a);
|
||||
$.data(this,"pagination",{options:_1c});
|
||||
}
|
||||
_1(this);
|
||||
_11(this);
|
||||
});
|
||||
};
|
||||
$.fn.pagination.methods={options:function(jq){
|
||||
return $.data(jq[0],"pagination").options;
|
||||
},loading:function(jq){
|
||||
return jq.each(function(){
|
||||
_16(this,true);
|
||||
});
|
||||
},loaded:function(jq){
|
||||
return jq.each(function(){
|
||||
_16(this,false);
|
||||
});
|
||||
}};
|
||||
$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showRefresh:true,onSelectPage:function(_1e,_1f){
|
||||
},onBeforeRefresh:function(_20,_21){
|
||||
},onRefresh:function(_22,_23){
|
||||
},onChangePageSize:function(_24){
|
||||
},beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items"};
|
||||
})(jQuery);
|
||||
|
|
@ -1,526 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
_2.each(function(){
|
||||
$(this).remove();
|
||||
if($.browser.msie){
|
||||
this.outerHTML="";
|
||||
}
|
||||
});
|
||||
};
|
||||
function _3(_4,_5){
|
||||
var _6=$.data(_4,"panel").options;
|
||||
var _7=$.data(_4,"panel").panel;
|
||||
var _8=_7.children("div.panel-header");
|
||||
var _9=_7.children("div.panel-body");
|
||||
if(_5){
|
||||
if(_5.width){
|
||||
_6.width=_5.width;
|
||||
}
|
||||
if(_5.height){
|
||||
_6.height=_5.height;
|
||||
}
|
||||
if(_5.left!=null){
|
||||
_6.left=_5.left;
|
||||
}
|
||||
if(_5.top!=null){
|
||||
_6.top=_5.top;
|
||||
}
|
||||
}
|
||||
if(_6.fit==true){
|
||||
var p=_7.parent();
|
||||
p.addClass("panel-noscroll");
|
||||
_6.width=p.width();
|
||||
_6.height=p.height();
|
||||
}
|
||||
_7.css({left:_6.left,top:_6.top});
|
||||
if(!isNaN(_6.width)){
|
||||
_7._outerWidth(_6.width);
|
||||
}else{
|
||||
_7.width("auto");
|
||||
}
|
||||
_8.add(_9)._outerWidth(_7.width());
|
||||
if(!isNaN(_6.height)){
|
||||
_7._outerHeight(_6.height);
|
||||
_9._outerHeight(_7.height()-_8.outerHeight());
|
||||
}else{
|
||||
_9.height("auto");
|
||||
}
|
||||
_7.css("height","");
|
||||
_6.onResize.apply(_4,[_6.width,_6.height]);
|
||||
_7.find(">div.panel-body>div").triggerHandler("_resize");
|
||||
};
|
||||
function _a(_b,_c){
|
||||
var _d=$.data(_b,"panel").options;
|
||||
var _e=$.data(_b,"panel").panel;
|
||||
if(_c){
|
||||
if(_c.left!=null){
|
||||
_d.left=_c.left;
|
||||
}
|
||||
if(_c.top!=null){
|
||||
_d.top=_c.top;
|
||||
}
|
||||
}
|
||||
_e.css({left:_d.left,top:_d.top});
|
||||
_d.onMove.apply(_b,[_d.left,_d.top]);
|
||||
};
|
||||
function _f(_10){
|
||||
var _11=$(_10).addClass("panel-body").wrap("<div class=\"panel\"></div>").parent();
|
||||
_11.bind("_resize",function(){
|
||||
var _12=$.data(_10,"panel").options;
|
||||
if(_12.fit==true){
|
||||
_3(_10);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return _11;
|
||||
};
|
||||
function _13(_14){
|
||||
var _15=$.data(_14,"panel").options;
|
||||
var _16=$.data(_14,"panel").panel;
|
||||
if(_15.tools&&typeof _15.tools=="string"){
|
||||
_16.find(">div.panel-header>div.panel-tool .panel-tool-a").appendTo(_15.tools);
|
||||
}
|
||||
_1(_16.children("div.panel-header"));
|
||||
if(_15.title&&!_15.noheader){
|
||||
var _17=$("<div class=\"panel-header\"><div class=\"panel-title\">"+_15.title+"</div></div>").prependTo(_16);
|
||||
if(_15.iconCls){
|
||||
_17.find(".panel-title").addClass("panel-with-icon");
|
||||
$("<div class=\"panel-icon\"></div>").addClass(_15.iconCls).appendTo(_17);
|
||||
}
|
||||
var _18=$("<div class=\"panel-tool\"></div>").appendTo(_17);
|
||||
if(_15.tools){
|
||||
if(typeof _15.tools=="string"){
|
||||
$(_15.tools).children().each(function(){
|
||||
$(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(_18);
|
||||
});
|
||||
}else{
|
||||
for(var i=0;i<_15.tools.length;i++){
|
||||
var t=$("<a href=\"javascript:void(0)\"></a>").addClass(_15.tools[i].iconCls).appendTo(_18);
|
||||
if(_15.tools[i].handler){
|
||||
t.bind("click",eval(_15.tools[i].handler));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(_15.collapsible){
|
||||
$("<a class=\"panel-tool-collapse\" href=\"javascript:void(0)\"></a>").appendTo(_18).bind("click",function(){
|
||||
if(_15.collapsed==true){
|
||||
_39(_14,true);
|
||||
}else{
|
||||
_29(_14,true);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
if(_15.minimizable){
|
||||
$("<a class=\"panel-tool-min\" href=\"javascript:void(0)\"></a>").appendTo(_18).bind("click",function(){
|
||||
_44(_14);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
if(_15.maximizable){
|
||||
$("<a class=\"panel-tool-max\" href=\"javascript:void(0)\"></a>").appendTo(_18).bind("click",function(){
|
||||
if(_15.maximized==true){
|
||||
_48(_14);
|
||||
}else{
|
||||
_28(_14);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
if(_15.closable){
|
||||
$("<a class=\"panel-tool-close\" href=\"javascript:void(0)\"></a>").appendTo(_18).bind("click",function(){
|
||||
_19(_14);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
_16.children("div.panel-body").removeClass("panel-body-noheader");
|
||||
}else{
|
||||
_16.children("div.panel-body").addClass("panel-body-noheader");
|
||||
}
|
||||
};
|
||||
function _1a(_1b){
|
||||
var _1c=$.data(_1b,"panel");
|
||||
if(_1c.options.href&&(!_1c.isLoaded||!_1c.options.cache)){
|
||||
_1c.isLoaded=false;
|
||||
_1d(_1b);
|
||||
var _1e=_1c.panel.find(">div.panel-body");
|
||||
if(_1c.options.loadingMessage){
|
||||
_1e.html($("<div class=\"panel-loading\"></div>").html(_1c.options.loadingMessage));
|
||||
}
|
||||
$.ajax({url:_1c.options.href,cache:false,success:function(_1f){
|
||||
_1e.html(_1c.options.extractor.call(_1b,_1f));
|
||||
if($.parser){
|
||||
$.parser.parse(_1e);
|
||||
}
|
||||
_1c.options.onLoad.apply(_1b,arguments);
|
||||
_1c.isLoaded=true;
|
||||
}});
|
||||
}
|
||||
};
|
||||
function _1d(_20){
|
||||
var t=$(_20);
|
||||
t.find(".combo-f").each(function(){
|
||||
$(this).combo("destroy");
|
||||
});
|
||||
t.find(".m-btn").each(function(){
|
||||
$(this).menubutton("destroy");
|
||||
});
|
||||
t.find(".s-btn").each(function(){
|
||||
$(this).splitbutton("destroy");
|
||||
});
|
||||
};
|
||||
function _21(_22){
|
||||
$(_22).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible").each(function(){
|
||||
$(this).triggerHandler("_resize",[true]);
|
||||
});
|
||||
};
|
||||
function _23(_24,_25){
|
||||
var _26=$.data(_24,"panel").options;
|
||||
var _27=$.data(_24,"panel").panel;
|
||||
if(_25!=true){
|
||||
if(_26.onBeforeOpen.call(_24)==false){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_27.show();
|
||||
_26.closed=false;
|
||||
_26.minimized=false;
|
||||
_26.onOpen.call(_24);
|
||||
if(_26.maximized==true){
|
||||
_26.maximized=false;
|
||||
_28(_24);
|
||||
}
|
||||
if(_26.collapsed==true){
|
||||
_26.collapsed=false;
|
||||
_29(_24);
|
||||
}
|
||||
if(!_26.collapsed){
|
||||
_1a(_24);
|
||||
_21(_24);
|
||||
}
|
||||
};
|
||||
function _19(_2a,_2b){
|
||||
var _2c=$.data(_2a,"panel").options;
|
||||
var _2d=$.data(_2a,"panel").panel;
|
||||
if(_2b!=true){
|
||||
if(_2c.onBeforeClose.call(_2a)==false){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_2d.hide();
|
||||
_2c.closed=true;
|
||||
_2c.onClose.call(_2a);
|
||||
};
|
||||
function _2e(_2f,_30){
|
||||
var _31=$.data(_2f,"panel").options;
|
||||
var _32=$.data(_2f,"panel").panel;
|
||||
if(_30!=true){
|
||||
if(_31.onBeforeDestroy.call(_2f)==false){
|
||||
return;
|
||||
}
|
||||
}
|
||||
_1d(_2f);
|
||||
_1(_32);
|
||||
_31.onDestroy.call(_2f);
|
||||
};
|
||||
function _29(_33,_34){
|
||||
var _35=$.data(_33,"panel").options;
|
||||
var _36=$.data(_33,"panel").panel;
|
||||
var _37=_36.children("div.panel-body");
|
||||
var _38=_36.children("div.panel-header").find("a.panel-tool-collapse");
|
||||
if(_35.collapsed==true){
|
||||
return;
|
||||
}
|
||||
_37.stop(true,true);
|
||||
if(_35.onBeforeCollapse.call(_33)==false){
|
||||
return;
|
||||
}
|
||||
_38.addClass("panel-tool-expand");
|
||||
if(_34==true){
|
||||
_37.slideUp("normal",function(){
|
||||
_35.collapsed=true;
|
||||
_35.onCollapse.call(_33);
|
||||
});
|
||||
}else{
|
||||
_37.hide();
|
||||
_35.collapsed=true;
|
||||
_35.onCollapse.call(_33);
|
||||
}
|
||||
};
|
||||
function _39(_3a,_3b){
|
||||
var _3c=$.data(_3a,"panel").options;
|
||||
var _3d=$.data(_3a,"panel").panel;
|
||||
var _3e=_3d.children("div.panel-body");
|
||||
var _3f=_3d.children("div.panel-header").find("a.panel-tool-collapse");
|
||||
if(_3c.collapsed==false){
|
||||
return;
|
||||
}
|
||||
_3e.stop(true,true);
|
||||
if(_3c.onBeforeExpand.call(_3a)==false){
|
||||
return;
|
||||
}
|
||||
_3f.removeClass("panel-tool-expand");
|
||||
if(_3b==true){
|
||||
_3e.slideDown("normal",function(){
|
||||
_3c.collapsed=false;
|
||||
_3c.onExpand.call(_3a);
|
||||
_1a(_3a);
|
||||
_21(_3a);
|
||||
});
|
||||
}else{
|
||||
_3e.show();
|
||||
_3c.collapsed=false;
|
||||
_3c.onExpand.call(_3a);
|
||||
_1a(_3a);
|
||||
_21(_3a);
|
||||
}
|
||||
};
|
||||
function _28(_40){
|
||||
var _41=$.data(_40,"panel").options;
|
||||
var _42=$.data(_40,"panel").panel;
|
||||
var _43=_42.children("div.panel-header").find("a.panel-tool-max");
|
||||
if(_41.maximized==true){
|
||||
return;
|
||||
}
|
||||
_43.addClass("panel-tool-restore");
|
||||
if(!$.data(_40,"panel").original){
|
||||
$.data(_40,"panel").original={width:_41.width,height:_41.height,left:_41.left,top:_41.top,fit:_41.fit};
|
||||
}
|
||||
_41.left=0;
|
||||
_41.top=0;
|
||||
_41.fit=true;
|
||||
_3(_40);
|
||||
_41.minimized=false;
|
||||
_41.maximized=true;
|
||||
_41.onMaximize.call(_40);
|
||||
};
|
||||
function _44(_45){
|
||||
var _46=$.data(_45,"panel").options;
|
||||
var _47=$.data(_45,"panel").panel;
|
||||
_47.hide();
|
||||
_46.minimized=true;
|
||||
_46.maximized=false;
|
||||
_46.onMinimize.call(_45);
|
||||
};
|
||||
function _48(_49){
|
||||
var _4a=$.data(_49,"panel").options;
|
||||
var _4b=$.data(_49,"panel").panel;
|
||||
var _4c=_4b.children("div.panel-header").find("a.panel-tool-max");
|
||||
if(_4a.maximized==false){
|
||||
return;
|
||||
}
|
||||
_4b.show();
|
||||
_4c.removeClass("panel-tool-restore");
|
||||
var _4d=$.data(_49,"panel").original;
|
||||
_4a.width=_4d.width;
|
||||
_4a.height=_4d.height;
|
||||
_4a.left=_4d.left;
|
||||
_4a.top=_4d.top;
|
||||
_4a.fit=_4d.fit;
|
||||
_3(_49);
|
||||
_4a.minimized=false;
|
||||
_4a.maximized=false;
|
||||
$.data(_49,"panel").original=null;
|
||||
_4a.onRestore.call(_49);
|
||||
};
|
||||
function _4e(_4f){
|
||||
var _50=$.data(_4f,"panel").options;
|
||||
var _51=$.data(_4f,"panel").panel;
|
||||
var _52=$(_4f).panel("header");
|
||||
var _53=$(_4f).panel("body");
|
||||
_51.css(_50.style);
|
||||
_51.addClass(_50.cls);
|
||||
if(_50.border){
|
||||
_52.removeClass("panel-header-noborder");
|
||||
_53.removeClass("panel-body-noborder");
|
||||
}else{
|
||||
_52.addClass("panel-header-noborder");
|
||||
_53.addClass("panel-body-noborder");
|
||||
}
|
||||
_52.addClass(_50.headerCls);
|
||||
_53.addClass(_50.bodyCls);
|
||||
if(_50.id){
|
||||
$(_4f).attr("id",_50.id);
|
||||
}else{
|
||||
$(_4f).removeAttr("id");
|
||||
}
|
||||
};
|
||||
function _54(_55,_56){
|
||||
$.data(_55,"panel").options.title=_56;
|
||||
$(_55).panel("header").find("div.panel-title").html(_56);
|
||||
};
|
||||
var TO=false;
|
||||
var _57=true;
|
||||
$(window).unbind(".panel").bind("resize.panel",function(){
|
||||
if(!_57){
|
||||
return;
|
||||
}
|
||||
if(TO!==false){
|
||||
clearTimeout(TO);
|
||||
}
|
||||
TO=setTimeout(function(){
|
||||
_57=false;
|
||||
var _58=$("body.layout");
|
||||
if(_58.length){
|
||||
_58.layout("resize");
|
||||
}else{
|
||||
$("body").children("div.panel,div.accordion,div.tabs-container,div.layout").triggerHandler("_resize");
|
||||
}
|
||||
_57=true;
|
||||
TO=false;
|
||||
},200);
|
||||
});
|
||||
$.fn.panel=function(_59,_5a){
|
||||
if(typeof _59=="string"){
|
||||
return $.fn.panel.methods[_59](this,_5a);
|
||||
}
|
||||
_59=_59||{};
|
||||
return this.each(function(){
|
||||
var _5b=$.data(this,"panel");
|
||||
var _5c;
|
||||
if(_5b){
|
||||
_5c=$.extend(_5b.options,_59);
|
||||
}else{
|
||||
_5c=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),_59);
|
||||
$(this).attr("title","");
|
||||
_5b=$.data(this,"panel",{options:_5c,panel:_f(this),isLoaded:false});
|
||||
}
|
||||
if(_5c.content){
|
||||
$(this).html(_5c.content);
|
||||
if($.parser){
|
||||
$.parser.parse(this);
|
||||
}
|
||||
}
|
||||
_13(this);
|
||||
_4e(this);
|
||||
if(_5c.doSize==true){
|
||||
_5b.panel.css("display","block");
|
||||
_3(this);
|
||||
}
|
||||
if(_5c.closed==true||_5c.minimized==true){
|
||||
_5b.panel.hide();
|
||||
}else{
|
||||
_23(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn._outerWidth=function(_5d){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).width(_5d);
|
||||
}else{
|
||||
$(this).width(_5d-($(this).outerWidth()-$(this).width()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn._outerHeight=function(_5e){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).height(_5e);
|
||||
}else{
|
||||
$(this).height(_5e-($(this).outerHeight()-$(this).height()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.panel.methods={options:function(jq){
|
||||
return $.data(jq[0],"panel").options;
|
||||
},panel:function(jq){
|
||||
return $.data(jq[0],"panel").panel;
|
||||
},header:function(jq){
|
||||
return $.data(jq[0],"panel").panel.find(">div.panel-header");
|
||||
},body:function(jq){
|
||||
return $.data(jq[0],"panel").panel.find(">div.panel-body");
|
||||
},setTitle:function(jq,_5f){
|
||||
return jq.each(function(){
|
||||
_54(this,_5f);
|
||||
});
|
||||
},open:function(jq,_60){
|
||||
return jq.each(function(){
|
||||
_23(this,_60);
|
||||
});
|
||||
},close:function(jq,_61){
|
||||
return jq.each(function(){
|
||||
_19(this,_61);
|
||||
});
|
||||
},destroy:function(jq,_62){
|
||||
return jq.each(function(){
|
||||
_2e(this,_62);
|
||||
});
|
||||
},refresh:function(jq,_63){
|
||||
return jq.each(function(){
|
||||
$.data(this,"panel").isLoaded=false;
|
||||
if(_63){
|
||||
$.data(this,"panel").options.href=_63;
|
||||
}
|
||||
_1a(this);
|
||||
});
|
||||
},resize:function(jq,_64){
|
||||
return jq.each(function(){
|
||||
_3(this,_64);
|
||||
});
|
||||
},move:function(jq,_65){
|
||||
return jq.each(function(){
|
||||
_a(this,_65);
|
||||
});
|
||||
},maximize:function(jq){
|
||||
return jq.each(function(){
|
||||
_28(this);
|
||||
});
|
||||
},minimize:function(jq){
|
||||
return jq.each(function(){
|
||||
_44(this);
|
||||
});
|
||||
},restore:function(jq){
|
||||
return jq.each(function(){
|
||||
_48(this);
|
||||
});
|
||||
},collapse:function(jq,_66){
|
||||
return jq.each(function(){
|
||||
_29(this,_66);
|
||||
});
|
||||
},expand:function(jq,_67){
|
||||
return jq.each(function(){
|
||||
_39(this,_67);
|
||||
});
|
||||
}};
|
||||
$.fn.panel.parseOptions=function(_68){
|
||||
var t=$(_68);
|
||||
return {id:t.attr("id"),width:(parseInt(_68.style.width)||undefined),height:(parseInt(_68.style.height)||undefined),left:(parseInt(_68.style.left)||undefined),top:(parseInt(_68.style.top)||undefined),title:(t.attr("title")||undefined),iconCls:(t.attr("iconCls")||t.attr("icon")),cls:t.attr("cls"),headerCls:t.attr("headerCls"),bodyCls:t.attr("bodyCls"),tools:t.attr("tools"),href:t.attr("href"),loadingMessage:(t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined),cache:(t.attr("cache")?t.attr("cache")=="true":undefined),fit:(t.attr("fit")?t.attr("fit")=="true":undefined),border:(t.attr("border")?t.attr("border")=="true":undefined),noheader:(t.attr("noheader")?t.attr("noheader")=="true":undefined),collapsible:(t.attr("collapsible")?t.attr("collapsible")=="true":undefined),minimizable:(t.attr("minimizable")?t.attr("minimizable")=="true":undefined),maximizable:(t.attr("maximizable")?t.attr("maximizable")=="true":undefined),closable:(t.attr("closable")?t.attr("closable")=="true":undefined),collapsed:(t.attr("collapsed")?t.attr("collapsed")=="true":undefined),minimized:(t.attr("minimized")?t.attr("minimized")=="true":undefined),maximized:(t.attr("maximized")?t.attr("maximized")=="true":undefined),closed:(t.attr("closed")?t.attr("closed")=="true":undefined)};
|
||||
};
|
||||
$.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,tools:null,href:null,loadingMessage:"Loading...",extractor:function(_69){
|
||||
var _6a=/<body[^>]*>((.|[\n\r])*)<\/body>/im;
|
||||
var _6b=_6a.exec(_69);
|
||||
if(_6b){
|
||||
return _6b[1];
|
||||
}else{
|
||||
return _69;
|
||||
}
|
||||
},onLoad:function(){
|
||||
},onBeforeOpen:function(){
|
||||
},onOpen:function(){
|
||||
},onBeforeClose:function(){
|
||||
},onClose:function(){
|
||||
},onBeforeDestroy:function(){
|
||||
},onDestroy:function(){
|
||||
},onResize:function(_6c,_6d){
|
||||
},onMove:function(_6e,top){
|
||||
},onMaximize:function(){
|
||||
},onRestore:function(){
|
||||
},onMinimize:function(){
|
||||
},onBeforeCollapse:function(){
|
||||
},onBeforeExpand:function(){
|
||||
},onCollapse:function(){
|
||||
},onExpand:function(){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
$.parser={auto:true,onComplete:function(_1){
|
||||
},plugins:["linkbutton","menu","menubutton","splitbutton","progressbar","tree","combobox","combotree","numberbox","validatebox","searchbox","numberspinner","timespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","tabs","accordion","window","dialog"],parse:function(_2){
|
||||
var aa=[];
|
||||
for(var i=0;i<$.parser.plugins.length;i++){
|
||||
var _3=$.parser.plugins[i];
|
||||
var r=$(".easyui-"+_3,_2);
|
||||
if(r.length){
|
||||
if(r[_3]){
|
||||
r[_3]();
|
||||
}else{
|
||||
aa.push({name:_3,jq:r});
|
||||
}
|
||||
}
|
||||
}
|
||||
if(aa.length&&window.easyloader){
|
||||
var _4=[];
|
||||
for(var i=0;i<aa.length;i++){
|
||||
_4.push(aa[i].name);
|
||||
}
|
||||
easyloader.load(_4,function(){
|
||||
for(var i=0;i<aa.length;i++){
|
||||
var _5=aa[i].name;
|
||||
var jq=aa[i].jq;
|
||||
jq[_5]();
|
||||
}
|
||||
$.parser.onComplete.call($.parser,_2);
|
||||
});
|
||||
}else{
|
||||
$.parser.onComplete.call($.parser,_2);
|
||||
}
|
||||
}};
|
||||
$(function(){
|
||||
if(!window.easyloader&&$.parser.auto){
|
||||
$.parser.parse();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
$(_2).addClass("progressbar");
|
||||
$(_2).html("<div class=\"progressbar-text\"></div><div class=\"progressbar-value\"> </div>");
|
||||
return $(_2);
|
||||
};
|
||||
function _3(_4,_5){
|
||||
var _6=$.data(_4,"progressbar").options;
|
||||
var _7=$.data(_4,"progressbar").bar;
|
||||
if(_5){
|
||||
_6.width=_5;
|
||||
}
|
||||
_7._outerWidth(_6.width);
|
||||
_7.find("div.progressbar-text").width(_7.width());
|
||||
};
|
||||
$.fn.progressbar=function(_8,_9){
|
||||
if(typeof _8=="string"){
|
||||
var _a=$.fn.progressbar.methods[_8];
|
||||
if(_a){
|
||||
return _a(this,_9);
|
||||
}
|
||||
}
|
||||
_8=_8||{};
|
||||
return this.each(function(){
|
||||
var _b=$.data(this,"progressbar");
|
||||
if(_b){
|
||||
$.extend(_b.options,_8);
|
||||
}else{
|
||||
_b=$.data(this,"progressbar",{options:$.extend({},$.fn.progressbar.defaults,$.fn.progressbar.parseOptions(this),_8),bar:_1(this)});
|
||||
}
|
||||
$(this).progressbar("setValue",_b.options.value);
|
||||
_3(this);
|
||||
});
|
||||
};
|
||||
$.fn._outerWidth=function(_c){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).width(_c);
|
||||
}else{
|
||||
$(this).width(_c-($(this).outerWidth()-$(this).width()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.progressbar.methods={options:function(jq){
|
||||
return $.data(jq[0],"progressbar").options;
|
||||
},resize:function(jq,_d){
|
||||
return jq.each(function(){
|
||||
_3(this,_d);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return $.data(jq[0],"progressbar").options.value;
|
||||
},setValue:function(jq,_e){
|
||||
if(_e<0){
|
||||
_e=0;
|
||||
}
|
||||
if(_e>100){
|
||||
_e=100;
|
||||
}
|
||||
return jq.each(function(){
|
||||
var _f=$.data(this,"progressbar").options;
|
||||
var _10=_f.text.replace(/{value}/,_e);
|
||||
var _11=_f.value;
|
||||
_f.value=_e;
|
||||
$(this).find("div.progressbar-value").width(_e+"%");
|
||||
$(this).find("div.progressbar-text").html(_10);
|
||||
if(_11!=_e){
|
||||
_f.onChange.call(this,_e,_11);
|
||||
}
|
||||
});
|
||||
}};
|
||||
$.fn.progressbar.parseOptions=function(_12){
|
||||
var t=$(_12);
|
||||
return {width:(parseInt(_12.style.width)||undefined),value:(t.attr("value")?parseInt(t.attr("value")):undefined),text:t.attr("text")};
|
||||
};
|
||||
$.fn.progressbar.defaults={width:"auto",value:0,text:"{value}%",onChange:function(_13,_14){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,194 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"propertygrid").options;
|
||||
$(_2).datagrid($.extend({},_3,{view:(_3.showGroup?_4:undefined),onClickRow:function(_5,_6){
|
||||
if(_3.editIndex!=_5){
|
||||
var _7=$(this).datagrid("getColumnOption","value");
|
||||
_7.editor=_6.editor;
|
||||
_8(_3.editIndex);
|
||||
$(this).datagrid("beginEdit",_5);
|
||||
$(this).datagrid("getEditors",_5)[0].target.focus();
|
||||
_3.editIndex=_5;
|
||||
}
|
||||
_3.onClickRow.call(_2,_5,_6);
|
||||
}}));
|
||||
$(_2).datagrid("getPanel").panel("panel").addClass("propertygrid");
|
||||
$(_2).datagrid("getPanel").find("div.datagrid-body").unbind(".propertygrid").bind("mousedown.propertygrid",function(e){
|
||||
e.stopPropagation();
|
||||
});
|
||||
$(document).unbind(".propertygrid").bind("mousedown.propertygrid",function(){
|
||||
_8(_3.editIndex);
|
||||
_3.editIndex=undefined;
|
||||
});
|
||||
function _8(_9){
|
||||
if(_9==undefined){
|
||||
return;
|
||||
}
|
||||
var t=$(_2);
|
||||
if(t.datagrid("validateRow",_9)){
|
||||
t.datagrid("endEdit",_9);
|
||||
}else{
|
||||
t.datagrid("cancelEdit",_9);
|
||||
}
|
||||
};
|
||||
};
|
||||
$.fn.propertygrid=function(_a,_b){
|
||||
if(typeof _a=="string"){
|
||||
var _c=$.fn.propertygrid.methods[_a];
|
||||
if(_c){
|
||||
return _c(this,_b);
|
||||
}else{
|
||||
return this.datagrid(_a,_b);
|
||||
}
|
||||
}
|
||||
_a=_a||{};
|
||||
return this.each(function(){
|
||||
var _d=$.data(this,"propertygrid");
|
||||
if(_d){
|
||||
$.extend(_d.options,_a);
|
||||
}else{
|
||||
$.data(this,"propertygrid",{options:$.extend({},$.fn.propertygrid.defaults,$.fn.propertygrid.parseOptions(this),_a)});
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.propertygrid.methods={};
|
||||
$.fn.propertygrid.parseOptions=function(_e){
|
||||
var t=$(_e);
|
||||
return $.extend({},$.fn.datagrid.parseOptions(_e),{showGroup:(t.attr("showGroup")?t.attr("showGroup")=="true":undefined)});
|
||||
};
|
||||
var _4=$.extend({},$.fn.datagrid.defaults.view,{render:function(_f,_10,_11){
|
||||
var _12=$.data(_f,"datagrid").options;
|
||||
var _13=$.data(_f,"datagrid").data.rows;
|
||||
var _14=$(_f).datagrid("getColumnFields",_11);
|
||||
var _15=[];
|
||||
var _16=0;
|
||||
var _17=this.groups;
|
||||
for(var i=0;i<_17.length;i++){
|
||||
var _18=_17[i];
|
||||
_15.push("<div class=\"datagrid-group\" group-index="+i+" style=\"\">");
|
||||
_15.push("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"height:100%\"><tbody>");
|
||||
_15.push("<tr>");
|
||||
_15.push("<td style=\"border:0;\">");
|
||||
if(!_11){
|
||||
_15.push("<span style=\"color:#666;font-weight:bold;\">");
|
||||
_15.push(_12.groupFormatter.call(_f,_18.fvalue,_18.rows));
|
||||
_15.push("</span>");
|
||||
}
|
||||
_15.push("</td>");
|
||||
_15.push("</tr>");
|
||||
_15.push("</tbody></table>");
|
||||
_15.push("</div>");
|
||||
_15.push("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>");
|
||||
for(var j=0;j<_18.rows.length;j++){
|
||||
var cls=(_16%2&&_12.striped)?"class=\"datagrid-row-alt\"":"";
|
||||
var _19=_12.rowStyler?_12.rowStyler.call(_f,_16,_18.rows[j]):"";
|
||||
var _1a=_19?"style=\""+_19+"\"":"";
|
||||
_15.push("<tr datagrid-row-index=\""+_16+"\" "+cls+" "+_1a+">");
|
||||
_15.push(this.renderRow.call(this,_f,_14,_11,_16,_18.rows[j]));
|
||||
_15.push("</tr>");
|
||||
_16++;
|
||||
}
|
||||
_15.push("</tbody></table>");
|
||||
}
|
||||
$(_10).html(_15.join(""));
|
||||
},onAfterRender:function(_1b){
|
||||
var _1c=$.data(_1b,"datagrid").options;
|
||||
var dc=$.data(_1b,"datagrid").dc;
|
||||
var _1d=dc.view;
|
||||
var _1e=dc.view1;
|
||||
var _1f=dc.view2;
|
||||
$.fn.datagrid.defaults.view.onAfterRender.call(this,_1b);
|
||||
if(_1c.rownumbers||_1c.frozenColumns.length){
|
||||
var _20=_1e.find("div.datagrid-group");
|
||||
}else{
|
||||
var _20=_1f.find("div.datagrid-group");
|
||||
}
|
||||
$("<td style=\"border:0\"><div class=\"datagrid-row-expander datagrid-row-collapse\" style=\"width:25px;height:16px;cursor:pointer\"></div></td>").insertBefore(_20.find("td"));
|
||||
_1d.find("div.datagrid-group").each(function(){
|
||||
var _21=$(this).attr("group-index");
|
||||
$(this).find("div.datagrid-row-expander").bind("click",{groupIndex:_21},function(e){
|
||||
if($(this).hasClass("datagrid-row-collapse")){
|
||||
$(_1b).datagrid("collapseGroup",e.data.groupIndex);
|
||||
}else{
|
||||
$(_1b).datagrid("expandGroup",e.data.groupIndex);
|
||||
}
|
||||
});
|
||||
});
|
||||
},onBeforeRender:function(_22,_23){
|
||||
var _24=$.data(_22,"datagrid").options;
|
||||
var _25=[];
|
||||
for(var i=0;i<_23.length;i++){
|
||||
var row=_23[i];
|
||||
var _26=_27(row[_24.groupField]);
|
||||
if(!_26){
|
||||
_26={fvalue:row[_24.groupField],rows:[row],startRow:i};
|
||||
_25.push(_26);
|
||||
}else{
|
||||
_26.rows.push(row);
|
||||
}
|
||||
}
|
||||
function _27(_28){
|
||||
for(var i=0;i<_25.length;i++){
|
||||
var _29=_25[i];
|
||||
if(_29.fvalue==_28){
|
||||
return _29;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
this.groups=_25;
|
||||
var _2a=[];
|
||||
for(var i=0;i<_25.length;i++){
|
||||
var _26=_25[i];
|
||||
for(var j=0;j<_26.rows.length;j++){
|
||||
_2a.push(_26.rows[j]);
|
||||
}
|
||||
}
|
||||
$.data(_22,"datagrid").data.rows=_2a;
|
||||
}});
|
||||
$.extend($.fn.datagrid.methods,{expandGroup:function(jq,_2b){
|
||||
return jq.each(function(){
|
||||
var _2c=$.data(this,"datagrid").dc.view;
|
||||
if(_2b!=undefined){
|
||||
var _2d=_2c.find("div.datagrid-group[group-index=\""+_2b+"\"]");
|
||||
}else{
|
||||
var _2d=_2c.find("div.datagrid-group");
|
||||
}
|
||||
var _2e=_2d.find("div.datagrid-row-expander");
|
||||
if(_2e.hasClass("datagrid-row-expand")){
|
||||
_2e.removeClass("datagrid-row-expand").addClass("datagrid-row-collapse");
|
||||
_2d.next("table").show();
|
||||
}
|
||||
$(this).datagrid("fixRowHeight");
|
||||
});
|
||||
},collapseGroup:function(jq,_2f){
|
||||
return jq.each(function(){
|
||||
var _30=$.data(this,"datagrid").dc.view;
|
||||
if(_2f!=undefined){
|
||||
var _31=_30.find("div.datagrid-group[group-index=\""+_2f+"\"]");
|
||||
}else{
|
||||
var _31=_30.find("div.datagrid-group");
|
||||
}
|
||||
var _32=_31.find("div.datagrid-row-expander");
|
||||
if(_32.hasClass("datagrid-row-collapse")){
|
||||
_32.removeClass("datagrid-row-collapse").addClass("datagrid-row-expand");
|
||||
_31.next("table").hide();
|
||||
}
|
||||
$(this).datagrid("fixRowHeight");
|
||||
});
|
||||
}});
|
||||
$.fn.propertygrid.defaults=$.extend({},$.fn.datagrid.defaults,{singleSelect:true,remoteSort:false,fitColumns:true,loadMsg:"",frozenColumns:[[{field:"f",width:16,resizable:false}]],columns:[[{field:"name",title:"Name",width:100,sortable:true},{field:"value",title:"Value",width:100,resizable:false}]],showGroup:false,groupField:"group",groupFormatter:function(_33){
|
||||
return _33;
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,164 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
var _1=false;
|
||||
$.fn.resizable=function(_2,_3){
|
||||
if(typeof _2=="string"){
|
||||
return $.fn.resizable.methods[_2](this,_3);
|
||||
}
|
||||
function _4(e){
|
||||
var _5=e.data;
|
||||
var _6=$.data(_5.target,"resizable").options;
|
||||
if(_5.dir.indexOf("e")!=-1){
|
||||
var _7=_5.startWidth+e.pageX-_5.startX;
|
||||
_7=Math.min(Math.max(_7,_6.minWidth),_6.maxWidth);
|
||||
_5.width=_7;
|
||||
}
|
||||
if(_5.dir.indexOf("s")!=-1){
|
||||
var _8=_5.startHeight+e.pageY-_5.startY;
|
||||
_8=Math.min(Math.max(_8,_6.minHeight),_6.maxHeight);
|
||||
_5.height=_8;
|
||||
}
|
||||
if(_5.dir.indexOf("w")!=-1){
|
||||
_5.width=_5.startWidth-e.pageX+_5.startX;
|
||||
if(_5.width>=_6.minWidth&&_5.width<=_6.maxWidth){
|
||||
_5.left=_5.startLeft+e.pageX-_5.startX;
|
||||
}
|
||||
}
|
||||
if(_5.dir.indexOf("n")!=-1){
|
||||
_5.height=_5.startHeight-e.pageY+_5.startY;
|
||||
if(_5.height>=_6.minHeight&&_5.height<=_6.maxHeight){
|
||||
_5.top=_5.startTop+e.pageY-_5.startY;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _9(e){
|
||||
var _a=e.data;
|
||||
var _b=_a.target;
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(_b).css({width:_a.width,height:_a.height,left:_a.left,top:_a.top});
|
||||
}else{
|
||||
$(_b).css({width:_a.width-_a.deltaWidth,height:_a.height-_a.deltaHeight,left:_a.left,top:_a.top});
|
||||
}
|
||||
};
|
||||
function _c(e){
|
||||
_1=true;
|
||||
$.data(e.data.target,"resizable").options.onStartResize.call(e.data.target,e);
|
||||
return false;
|
||||
};
|
||||
function _d(e){
|
||||
_4(e);
|
||||
if($.data(e.data.target,"resizable").options.onResize.call(e.data.target,e)!=false){
|
||||
_9(e);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
function _e(e){
|
||||
_1=false;
|
||||
_4(e,true);
|
||||
_9(e);
|
||||
$.data(e.data.target,"resizable").options.onStopResize.call(e.data.target,e);
|
||||
$(document).unbind(".resizable");
|
||||
$("body").css("cursor","auto");
|
||||
return false;
|
||||
};
|
||||
return this.each(function(){
|
||||
var _f=null;
|
||||
var _10=$.data(this,"resizable");
|
||||
if(_10){
|
||||
$(this).unbind(".resizable");
|
||||
_f=$.extend(_10.options,_2||{});
|
||||
}else{
|
||||
_f=$.extend({},$.fn.resizable.defaults,_2||{});
|
||||
$.data(this,"resizable",{options:_f});
|
||||
}
|
||||
if(_f.disabled==true){
|
||||
return;
|
||||
}
|
||||
$(this).bind("mousemove.resizable",{target:this},function(e){
|
||||
if(_1){
|
||||
return;
|
||||
}
|
||||
var dir=_11(e);
|
||||
if(dir==""){
|
||||
$(e.data.target).css("cursor","");
|
||||
}else{
|
||||
$(e.data.target).css("cursor",dir+"-resize");
|
||||
}
|
||||
}).bind("mousedown.resizable",{target:this},function(e){
|
||||
var dir=_11(e);
|
||||
if(dir==""){
|
||||
return;
|
||||
}
|
||||
function _12(css){
|
||||
var val=parseInt($(e.data.target).css(css));
|
||||
if(isNaN(val)){
|
||||
return 0;
|
||||
}else{
|
||||
return val;
|
||||
}
|
||||
};
|
||||
var _13={target:e.data.target,dir:dir,startLeft:_12("left"),startTop:_12("top"),left:_12("left"),top:_12("top"),startX:e.pageX,startY:e.pageY,startWidth:$(e.data.target).outerWidth(),startHeight:$(e.data.target).outerHeight(),width:$(e.data.target).outerWidth(),height:$(e.data.target).outerHeight(),deltaWidth:$(e.data.target).outerWidth()-$(e.data.target).width(),deltaHeight:$(e.data.target).outerHeight()-$(e.data.target).height()};
|
||||
$(document).bind("mousedown.resizable",_13,_c);
|
||||
$(document).bind("mousemove.resizable",_13,_d);
|
||||
$(document).bind("mouseup.resizable",_13,_e);
|
||||
$("body").css("cursor",dir+"-resize");
|
||||
}).bind("mouseleave.resizable",{target:this},function(e){
|
||||
$(e.data.target).css("cursor","");
|
||||
});
|
||||
function _11(e){
|
||||
var tt=$(e.data.target);
|
||||
var dir="";
|
||||
var _14=tt.offset();
|
||||
var _15=tt.outerWidth();
|
||||
var _16=tt.outerHeight();
|
||||
var _17=_f.edge;
|
||||
if(e.pageY>_14.top&&e.pageY<_14.top+_17){
|
||||
dir+="n";
|
||||
}else{
|
||||
if(e.pageY<_14.top+_16&&e.pageY>_14.top+_16-_17){
|
||||
dir+="s";
|
||||
}
|
||||
}
|
||||
if(e.pageX>_14.left&&e.pageX<_14.left+_17){
|
||||
dir+="w";
|
||||
}else{
|
||||
if(e.pageX<_14.left+_15&&e.pageX>_14.left+_15-_17){
|
||||
dir+="e";
|
||||
}
|
||||
}
|
||||
var _18=_f.handles.split(",");
|
||||
for(var i=0;i<_18.length;i++){
|
||||
var _19=_18[i].replace(/(^\s*)|(\s*$)/g,"");
|
||||
if(_19=="all"||_19==dir){
|
||||
return dir;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
};
|
||||
});
|
||||
};
|
||||
$.fn.resizable.methods={options:function(jq){
|
||||
return $.data(jq[0],"resizable").options;
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).resizable({disabled:false});
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
$(this).resizable({disabled:true});
|
||||
});
|
||||
}};
|
||||
$.fn.resizable.defaults={disabled:false,handles:"n, e, s, w, ne, se, sw, nw, all",minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000,edge:5,onStartResize:function(e){
|
||||
},onResize:function(e){
|
||||
},onStopResize:function(e){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,171 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
$(_2).hide();
|
||||
var _3=$("<span class=\"searchbox\"></span>").insertAfter(_2);
|
||||
var _4=$("<input type=\"text\" class=\"searchbox-text\">").appendTo(_3);
|
||||
$("<span><span class=\"searchbox-button\"></span></span>").appendTo(_3);
|
||||
var _5=$(_2).attr("name");
|
||||
if(_5){
|
||||
_4.attr("name",_5);
|
||||
$(_2).removeAttr("name").attr("searchboxName",_5);
|
||||
}
|
||||
return _3;
|
||||
};
|
||||
function _6(_7,_8){
|
||||
var _9=$.data(_7,"searchbox").options;
|
||||
var sb=$.data(_7,"searchbox").searchbox;
|
||||
if(_8){
|
||||
_9.width=_8;
|
||||
}
|
||||
sb.appendTo("body");
|
||||
if(isNaN(_9.width)){
|
||||
_9.width=sb.outerWidth();
|
||||
}
|
||||
sb._outerWidth(_9.width);
|
||||
sb.find("input.searchbox-text")._outerWidth(sb.width()-sb.find("a.searchbox-menu").outerWidth()-sb.find("span.searchbox-button").outerWidth());
|
||||
sb.insertAfter(_7);
|
||||
};
|
||||
function _a(_b){
|
||||
var _c=$.data(_b,"searchbox");
|
||||
var _d=_c.options;
|
||||
if(_d.menu){
|
||||
_c.menu=$(_d.menu).menu({onClick:function(_e){
|
||||
_f(_e);
|
||||
}});
|
||||
var _10=_c.menu.children("div.menu-item:first[selected]");
|
||||
if(!_10.length){
|
||||
_10=_c.menu.children("div.menu-item:first");
|
||||
}
|
||||
_10.triggerHandler("click");
|
||||
}else{
|
||||
_c.searchbox.find("a.searchbox-menu").remove();
|
||||
_c.menu=null;
|
||||
}
|
||||
function _f(_11){
|
||||
_c.searchbox.find("a.searchbox-menu").remove();
|
||||
var mb=$("<a class=\"searchbox-menu\" href=\"javascript:void(0)\"></a>").html(_11.text);
|
||||
mb.prependTo(_c.searchbox).menubutton({menu:_c.menu,iconCls:_11.iconCls});
|
||||
_c.searchbox.find("input.searchbox-text").attr("name",$(_11.target).attr("name")||_11.text);
|
||||
_6(_b);
|
||||
};
|
||||
};
|
||||
function _12(_13){
|
||||
var _14=$.data(_13,"searchbox");
|
||||
var _15=_14.options;
|
||||
var _16=_14.searchbox.find("input.searchbox-text");
|
||||
var _17=_14.searchbox.find(".searchbox-button");
|
||||
_16.unbind(".searchbox").bind("blur.searchbox",function(e){
|
||||
_15.value=$(this).val();
|
||||
if(_15.value==""){
|
||||
$(this).val(_15.prompt);
|
||||
$(this).addClass("searchbox-prompt");
|
||||
}else{
|
||||
$(this).removeClass("searchbox-prompt");
|
||||
}
|
||||
}).bind("focus.searchbox",function(e){
|
||||
if($(this).val()!=_15.value){
|
||||
$(this).val(_15.value);
|
||||
}
|
||||
$(this).removeClass("searchbox-prompt");
|
||||
}).bind("keydown.searchbox",function(e){
|
||||
if(e.keyCode==13){
|
||||
e.preventDefault();
|
||||
var _18=$.fn.prop?_16.prop("name"):_16.attr("name");
|
||||
_15.value=$(this).val();
|
||||
_15.searcher.call(_13,_15.value,_18);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
_17.unbind(".searchbox").bind("click.searchbox",function(){
|
||||
var _19=$.fn.prop?_16.prop("name"):_16.attr("name");
|
||||
_15.searcher.call(_13,_15.value,_19);
|
||||
}).bind("mouseenter.searchbox",function(){
|
||||
$(this).addClass("searchbox-button-hover");
|
||||
}).bind("mouseleave.searchbox",function(){
|
||||
$(this).removeClass("searchbox-button-hover");
|
||||
});
|
||||
};
|
||||
function _1a(_1b){
|
||||
var _1c=$.data(_1b,"searchbox");
|
||||
var _1d=_1c.options;
|
||||
var _1e=_1c.searchbox.find("input.searchbox-text");
|
||||
if(_1d.value==""){
|
||||
_1e.val(_1d.prompt);
|
||||
_1e.addClass("searchbox-prompt");
|
||||
}else{
|
||||
_1e.val(_1d.value);
|
||||
_1e.removeClass("searchbox-prompt");
|
||||
}
|
||||
};
|
||||
$.fn.searchbox=function(_1f,_20){
|
||||
if(typeof _1f=="string"){
|
||||
return $.fn.searchbox.methods[_1f](this,_20);
|
||||
}
|
||||
_1f=_1f||{};
|
||||
return this.each(function(){
|
||||
var _21=$.data(this,"searchbox");
|
||||
if(_21){
|
||||
$.extend(_21.options,_1f);
|
||||
}else{
|
||||
_21=$.data(this,"searchbox",{options:$.extend({},$.fn.searchbox.defaults,$.fn.searchbox.parseOptions(this),_1f),searchbox:_1(this)});
|
||||
}
|
||||
_a(this);
|
||||
_1a(this);
|
||||
_12(this);
|
||||
_6(this);
|
||||
});
|
||||
};
|
||||
$.fn.searchbox.methods={options:function(jq){
|
||||
return $.data(jq[0],"searchbox").options;
|
||||
},menu:function(jq){
|
||||
return $.data(jq[0],"searchbox").menu;
|
||||
},textbox:function(jq){
|
||||
return $.data(jq[0],"searchbox").searchbox.find("input.searchbox-text");
|
||||
},getValue:function(jq){
|
||||
return $.data(jq[0],"searchbox").options.value;
|
||||
},setValue:function(jq,_22){
|
||||
return jq.each(function(){
|
||||
$(this).searchbox("options").value=_22;
|
||||
$(this).searchbox("textbox").val(_22);
|
||||
$(this).searchbox("textbox").blur();
|
||||
});
|
||||
},getName:function(jq){
|
||||
return $.data(jq[0],"searchbox").searchbox.find("input.searchbox-text").attr("name");
|
||||
},selectName:function(jq,_23){
|
||||
return jq.each(function(){
|
||||
var _24=$.data(this,"searchbox").menu;
|
||||
if(_24){
|
||||
_24.children("div.menu-item[name=\""+_23+"\"]").triggerHandler("click");
|
||||
}
|
||||
});
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
var _25=$(this).searchbox("menu");
|
||||
if(_25){
|
||||
_25.menu("destroy");
|
||||
}
|
||||
$.data(this,"searchbox").searchbox.remove();
|
||||
$(this).remove();
|
||||
});
|
||||
},resize:function(jq,_26){
|
||||
return jq.each(function(){
|
||||
_6(this,_26);
|
||||
});
|
||||
}};
|
||||
$.fn.searchbox.parseOptions=function(_27){
|
||||
var t=$(_27);
|
||||
return {width:(parseInt(_27.style.width)||undefined),prompt:t.attr("prompt"),value:t.val(),menu:t.attr("menu"),searcher:(t.attr("searcher")?eval(t.attr("searcher")):undefined)};
|
||||
};
|
||||
$.fn.searchbox.defaults={width:"auto",prompt:"",value:"",menu:null,searcher:function(_28,_29){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,243 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$("<div class=\"slider\">"+"<div class=\"slider-inner\">"+"<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>"+"</div>"+"<div class=\"slider-rule\"></div>"+"<div class=\"slider-rulelabel\"></div>"+"<div style=\"clear:both\"></div>"+"<input type=\"hidden\" class=\"slider-value\">"+"</div>").insertAfter(_2);
|
||||
var _4=$(_2).hide().attr("name");
|
||||
if(_4){
|
||||
_3.find("input.slider-value").attr("name",_4);
|
||||
$(_2).removeAttr("name").attr("sliderName",_4);
|
||||
}
|
||||
return _3;
|
||||
};
|
||||
function _5(_6,_7){
|
||||
var _8=$.data(_6,"slider").options;
|
||||
var _9=$.data(_6,"slider").slider;
|
||||
if(_7){
|
||||
if(_7.width){
|
||||
_8.width=_7.width;
|
||||
}
|
||||
if(_7.height){
|
||||
_8.height=_7.height;
|
||||
}
|
||||
}
|
||||
if(_8.mode=="h"){
|
||||
_9.css("height","");
|
||||
_9.children("div").css("height","");
|
||||
if(!isNaN(_8.width)){
|
||||
_9.width(_8.width);
|
||||
}
|
||||
}else{
|
||||
_9.css("width","");
|
||||
_9.children("div").css("width","");
|
||||
if(!isNaN(_8.height)){
|
||||
_9.height(_8.height);
|
||||
_9.find("div.slider-rule").height(_8.height);
|
||||
_9.find("div.slider-rulelabel").height(_8.height);
|
||||
_9.find("div.slider-inner")._outerHeight(_8.height);
|
||||
}
|
||||
}
|
||||
_a(_6);
|
||||
};
|
||||
function _b(_c){
|
||||
var _d=$.data(_c,"slider").options;
|
||||
var _e=$.data(_c,"slider").slider;
|
||||
if(_d.mode=="h"){
|
||||
_f(_d.rule);
|
||||
}else{
|
||||
_f(_d.rule.slice(0).reverse());
|
||||
}
|
||||
function _f(aa){
|
||||
var _10=_e.find("div.slider-rule");
|
||||
var _11=_e.find("div.slider-rulelabel");
|
||||
_10.empty();
|
||||
_11.empty();
|
||||
for(var i=0;i<aa.length;i++){
|
||||
var _12=i*100/(aa.length-1)+"%";
|
||||
var _13=$("<span></span>").appendTo(_10);
|
||||
_13.css((_d.mode=="h"?"left":"top"),_12);
|
||||
if(aa[i]!="|"){
|
||||
_13=$("<span></span>").appendTo(_11);
|
||||
_13.html(aa[i]);
|
||||
if(_d.mode=="h"){
|
||||
_13.css({left:_12,marginLeft:-Math.round(_13.outerWidth()/2)});
|
||||
}else{
|
||||
_13.css({top:_12,marginTop:-Math.round(_13.outerHeight()/2)});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
function _14(_15){
|
||||
var _16=$.data(_15,"slider").options;
|
||||
var _17=$.data(_15,"slider").slider;
|
||||
_17.removeClass("slider-h slider-v slider-disabled");
|
||||
_17.addClass(_16.mode=="h"?"slider-h":"slider-v");
|
||||
_17.addClass(_16.disabled?"slider-disabled":"");
|
||||
_17.find("a.slider-handle").draggable({axis:_16.mode,cursor:"pointer",disabled:_16.disabled,onDrag:function(e){
|
||||
var _18=e.data.left;
|
||||
var _19=_17.width();
|
||||
if(_16.mode!="h"){
|
||||
_18=e.data.top;
|
||||
_19=_17.height();
|
||||
}
|
||||
if(_18<0||_18>_19){
|
||||
return false;
|
||||
}else{
|
||||
var _1a=_2c(_15,_18);
|
||||
_1b(_1a);
|
||||
return false;
|
||||
}
|
||||
},onStartDrag:function(){
|
||||
_16.onSlideStart.call(_15,_16.value);
|
||||
},onStopDrag:function(e){
|
||||
var _1c=_2c(_15,(_16.mode=="h"?e.data.left:e.data.top));
|
||||
_1b(_1c);
|
||||
_16.onSlideEnd.call(_15,_16.value);
|
||||
}});
|
||||
function _1b(_1d){
|
||||
var s=Math.abs(_1d%_16.step);
|
||||
if(s<_16.step/2){
|
||||
_1d-=s;
|
||||
}else{
|
||||
_1d=_1d-s+_16.step;
|
||||
}
|
||||
_1e(_15,_1d);
|
||||
};
|
||||
};
|
||||
function _1e(_1f,_20){
|
||||
var _21=$.data(_1f,"slider").options;
|
||||
var _22=$.data(_1f,"slider").slider;
|
||||
var _23=_21.value;
|
||||
if(_20<_21.min){
|
||||
_20=_21.min;
|
||||
}
|
||||
if(_20>_21.max){
|
||||
_20=_21.max;
|
||||
}
|
||||
_21.value=_20;
|
||||
$(_1f).val(_20);
|
||||
_22.find("input.slider-value").val(_20);
|
||||
var pos=_24(_1f,_20);
|
||||
var tip=_22.find(".slider-tip");
|
||||
if(_21.showTip){
|
||||
tip.show();
|
||||
tip.html(_21.tipFormatter.call(_1f,_21.value));
|
||||
}else{
|
||||
tip.hide();
|
||||
}
|
||||
if(_21.mode=="h"){
|
||||
var _25="left:"+pos+"px;";
|
||||
_22.find(".slider-handle").attr("style",_25);
|
||||
tip.attr("style",_25+"margin-left:"+(-Math.round(tip.outerWidth()/2))+"px");
|
||||
}else{
|
||||
var _25="top:"+pos+"px;";
|
||||
_22.find(".slider-handle").attr("style",_25);
|
||||
tip.attr("style",_25+"margin-left:"+(-Math.round(tip.outerWidth()))+"px");
|
||||
}
|
||||
if(_23!=_20){
|
||||
_21.onChange.call(_1f,_20,_23);
|
||||
}
|
||||
};
|
||||
function _a(_26){
|
||||
var _27=$.data(_26,"slider").options;
|
||||
var fn=_27.onChange;
|
||||
_27.onChange=function(){
|
||||
};
|
||||
_1e(_26,_27.value);
|
||||
_27.onChange=fn;
|
||||
};
|
||||
function _24(_28,_29){
|
||||
var _2a=$.data(_28,"slider").options;
|
||||
var _2b=$.data(_28,"slider").slider;
|
||||
if(_2a.mode=="h"){
|
||||
var pos=(_29-_2a.min)/(_2a.max-_2a.min)*_2b.width();
|
||||
}else{
|
||||
var pos=_2b.height()-(_29-_2a.min)/(_2a.max-_2a.min)*_2b.height();
|
||||
}
|
||||
return pos.toFixed(0);
|
||||
};
|
||||
function _2c(_2d,pos){
|
||||
var _2e=$.data(_2d,"slider").options;
|
||||
var _2f=$.data(_2d,"slider").slider;
|
||||
if(_2e.mode=="h"){
|
||||
var _30=_2e.min+(_2e.max-_2e.min)*(pos/_2f.width());
|
||||
}else{
|
||||
var _30=_2e.min+(_2e.max-_2e.min)*((_2f.height()-pos)/_2f.height());
|
||||
}
|
||||
return _30.toFixed(0);
|
||||
};
|
||||
$.fn.slider=function(_31,_32){
|
||||
if(typeof _31=="string"){
|
||||
return $.fn.slider.methods[_31](this,_32);
|
||||
}
|
||||
_31=_31||{};
|
||||
return this.each(function(){
|
||||
var _33=$.data(this,"slider");
|
||||
if(_33){
|
||||
$.extend(_33.options,_31);
|
||||
}else{
|
||||
_33=$.data(this,"slider",{options:$.extend({},$.fn.slider.defaults,$.fn.slider.parseOptions(this),_31),slider:_1(this)});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
_14(this);
|
||||
_b(this);
|
||||
_5(this);
|
||||
});
|
||||
};
|
||||
$.fn._outerHeight=function(_34){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).height(_34);
|
||||
}else{
|
||||
$(this).height(_34-($(this).outerHeight()-$(this).height()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.slider.methods={options:function(jq){
|
||||
return $.data(jq[0],"slider").options;
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
$.data(this,"slider").slider.remove();
|
||||
$(this).remove();
|
||||
});
|
||||
},resize:function(jq,_35){
|
||||
return jq.each(function(){
|
||||
_5(this,_35);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return jq.slider("options").value;
|
||||
},setValue:function(jq,_36){
|
||||
return jq.each(function(){
|
||||
_1e(this,_36);
|
||||
});
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
$.data(this,"slider").options.disabled=false;
|
||||
_14(this);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
$.data(this,"slider").options.disabled=true;
|
||||
_14(this);
|
||||
});
|
||||
}};
|
||||
$.fn.slider.parseOptions=function(_37){
|
||||
var t=$(_37);
|
||||
return {width:(parseInt(_37.style.width)||undefined),height:(parseInt(_37.style.height)||undefined),value:(t.val()||undefined),mode:(t.attr("mode")?t.attr("mode"):undefined),showTip:(t.attr("showTip")?t.attr("showTip")=="true":undefined),disabled:(t.attr("disabled")?true:undefined),min:(t.attr("min")=="0"?0:parseInt(t.attr("min"))||undefined),max:(t.attr("max")=="0"?0:parseInt(t.attr("max"))||undefined),step:(t.attr("step")=="0"?0:parseInt(t.attr("step"))||undefined),rule:(t.attr("rule")?eval(t.attr("rule")):undefined)};
|
||||
};
|
||||
$.fn.slider.defaults={width:"auto",height:"auto",mode:"h",showTip:false,disabled:false,value:0,min:0,max:100,step:1,rule:[],tipFormatter:function(_38){
|
||||
return _38;
|
||||
},onChange:function(_39,_3a){
|
||||
},onSlideStart:function(_3b){
|
||||
},onSlideEnd:function(_3c){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,149 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$("<span class=\"spinner\">"+"<span class=\"spinner-arrow\">"+"<span class=\"spinner-arrow-up\"></span>"+"<span class=\"spinner-arrow-down\"></span>"+"</span>"+"</span>").insertAfter(_2);
|
||||
$(_2).addClass("spinner-text").prependTo(_3);
|
||||
return _3;
|
||||
};
|
||||
function _4(_5,_6){
|
||||
var _7=$.data(_5,"spinner").options;
|
||||
var _8=$.data(_5,"spinner").spinner;
|
||||
if(_6){
|
||||
_7.width=_6;
|
||||
}
|
||||
var _9=$("<div style=\"display:none\"></div>").insertBefore(_8);
|
||||
_8.appendTo("body");
|
||||
if(isNaN(_7.width)){
|
||||
_7.width=$(_5).outerWidth();
|
||||
}
|
||||
_8._outerWidth(_7.width);
|
||||
$(_5)._outerWidth(_8.width()-_8.find(".spinner-arrow").outerWidth());
|
||||
_8.insertAfter(_9);
|
||||
_9.remove();
|
||||
};
|
||||
function _a(_b){
|
||||
var _c=$.data(_b,"spinner").options;
|
||||
var _d=$.data(_b,"spinner").spinner;
|
||||
_d.find(".spinner-arrow-up,.spinner-arrow-down").unbind(".spinner");
|
||||
if(!_c.disabled){
|
||||
_d.find(".spinner-arrow-up").bind("mouseenter.spinner",function(){
|
||||
$(this).addClass("spinner-arrow-hover");
|
||||
}).bind("mouseleave.spinner",function(){
|
||||
$(this).removeClass("spinner-arrow-hover");
|
||||
}).bind("click.spinner",function(){
|
||||
_c.spin.call(_b,false);
|
||||
_c.onSpinUp.call(_b);
|
||||
$(_b).validatebox("validate");
|
||||
});
|
||||
_d.find(".spinner-arrow-down").bind("mouseenter.spinner",function(){
|
||||
$(this).addClass("spinner-arrow-hover");
|
||||
}).bind("mouseleave.spinner",function(){
|
||||
$(this).removeClass("spinner-arrow-hover");
|
||||
}).bind("click.spinner",function(){
|
||||
_c.spin.call(_b,true);
|
||||
_c.onSpinDown.call(_b);
|
||||
$(_b).validatebox("validate");
|
||||
});
|
||||
}
|
||||
};
|
||||
function _e(_f,_10){
|
||||
var _11=$.data(_f,"spinner").options;
|
||||
if(_10){
|
||||
_11.disabled=true;
|
||||
$(_f).attr("disabled",true);
|
||||
}else{
|
||||
_11.disabled=false;
|
||||
$(_f).removeAttr("disabled");
|
||||
}
|
||||
};
|
||||
$.fn.spinner=function(_12,_13){
|
||||
if(typeof _12=="string"){
|
||||
var _14=$.fn.spinner.methods[_12];
|
||||
if(_14){
|
||||
return _14(this,_13);
|
||||
}else{
|
||||
return this.validatebox(_12,_13);
|
||||
}
|
||||
}
|
||||
_12=_12||{};
|
||||
return this.each(function(){
|
||||
var _15=$.data(this,"spinner");
|
||||
if(_15){
|
||||
$.extend(_15.options,_12);
|
||||
}else{
|
||||
_15=$.data(this,"spinner",{options:$.extend({},$.fn.spinner.defaults,$.fn.spinner.parseOptions(this),_12),spinner:_1(this)});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
$(this).val(_15.options.value);
|
||||
$(this).attr("readonly",!_15.options.editable);
|
||||
_e(this,_15.options.disabled);
|
||||
_4(this);
|
||||
$(this).validatebox(_15.options);
|
||||
_a(this);
|
||||
});
|
||||
};
|
||||
$.fn._outerWidth=function(_16){
|
||||
return this.each(function(){
|
||||
if(!$.boxModel&&$.browser.msie){
|
||||
$(this).width(_16);
|
||||
}else{
|
||||
$(this).width(_16-($(this).outerWidth()-$(this).width()));
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.spinner.methods={options:function(jq){
|
||||
var _17=$.data(jq[0],"spinner").options;
|
||||
return $.extend(_17,{value:jq.val()});
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
var _18=$.data(this,"spinner").spinner;
|
||||
$(this).validatebox("destroy");
|
||||
_18.remove();
|
||||
});
|
||||
},resize:function(jq,_19){
|
||||
return jq.each(function(){
|
||||
_4(this,_19);
|
||||
});
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_e(this,false);
|
||||
_a(this);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_e(this,true);
|
||||
_a(this);
|
||||
});
|
||||
},getValue:function(jq){
|
||||
return jq.val();
|
||||
},setValue:function(jq,_1a){
|
||||
return jq.each(function(){
|
||||
var _1b=$.data(this,"spinner").options;
|
||||
_1b.value=_1a;
|
||||
$(this).val(_1a);
|
||||
});
|
||||
},clear:function(jq){
|
||||
return jq.each(function(){
|
||||
var _1c=$.data(this,"spinner").options;
|
||||
_1c.value="";
|
||||
$(this).val("");
|
||||
});
|
||||
}};
|
||||
$.fn.spinner.parseOptions=function(_1d){
|
||||
var t=$(_1d);
|
||||
return $.extend({},$.fn.validatebox.parseOptions(_1d),{width:(parseInt(_1d.style.width)||undefined),value:(t.val()||undefined),min:t.attr("min"),max:t.attr("max"),increment:(parseFloat(t.attr("increment"))||undefined),editable:(t.attr("editable")?t.attr("editable")=="true":undefined),disabled:(t.attr("disabled")?true:undefined)});
|
||||
};
|
||||
$.fn.spinner.defaults=$.extend({},$.fn.validatebox.defaults,{width:"auto",value:"",min:null,max:null,increment:1,editable:true,disabled:false,spin:function(_1e){
|
||||
},onSpinUp:function(){
|
||||
},onSpinDown:function(){
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"splitbutton").options;
|
||||
var _4=$(_2);
|
||||
_4.removeClass("s-btn-active s-btn-plain-active").addClass("s-btn");
|
||||
_4.linkbutton($.extend({},_3,{text:_3.text+"<span class=\"s-btn-downarrow\"> </span>"}));
|
||||
if(_3.menu){
|
||||
$(_3.menu).menu({onShow:function(){
|
||||
_4.addClass((_3.plain==true)?"s-btn-plain-active":"s-btn-active");
|
||||
},onHide:function(){
|
||||
_4.removeClass((_3.plain==true)?"s-btn-plain-active":"s-btn-active");
|
||||
}});
|
||||
}
|
||||
_5(_2,_3.disabled);
|
||||
};
|
||||
function _5(_6,_7){
|
||||
var _8=$.data(_6,"splitbutton").options;
|
||||
_8.disabled=_7;
|
||||
var _9=$(_6);
|
||||
var _a=_9.find(".s-btn-downarrow");
|
||||
if(_7){
|
||||
_9.linkbutton("disable");
|
||||
_a.unbind(".splitbutton");
|
||||
}else{
|
||||
_9.linkbutton("enable");
|
||||
_a.unbind(".splitbutton");
|
||||
_a.bind("click.splitbutton",function(){
|
||||
_b();
|
||||
return false;
|
||||
});
|
||||
var _c=null;
|
||||
_a.bind("mouseenter.splitbutton",function(){
|
||||
_c=setTimeout(function(){
|
||||
_b();
|
||||
},_8.duration);
|
||||
return false;
|
||||
}).bind("mouseleave.splitbutton",function(){
|
||||
if(_c){
|
||||
clearTimeout(_c);
|
||||
}
|
||||
});
|
||||
}
|
||||
function _b(){
|
||||
if(!_8.menu){
|
||||
return;
|
||||
}
|
||||
var _d=_9.offset().left;
|
||||
if(_d+$(_8.menu).outerWidth()+5>$(window).width()){
|
||||
_d=$(window).width()-$(_8.menu).outerWidth()-5;
|
||||
}
|
||||
$("body>div.menu-top").menu("hide");
|
||||
$(_8.menu).menu("show",{left:_d,top:_9.offset().top+_9.outerHeight()});
|
||||
_9.blur();
|
||||
};
|
||||
};
|
||||
$.fn.splitbutton=function(_e,_f){
|
||||
if(typeof _e=="string"){
|
||||
return $.fn.splitbutton.methods[_e](this,_f);
|
||||
}
|
||||
_e=_e||{};
|
||||
return this.each(function(){
|
||||
var _10=$.data(this,"splitbutton");
|
||||
if(_10){
|
||||
$.extend(_10.options,_e);
|
||||
}else{
|
||||
$.data(this,"splitbutton",{options:$.extend({},$.fn.splitbutton.defaults,$.fn.splitbutton.parseOptions(this),_e)});
|
||||
$(this).removeAttr("disabled");
|
||||
}
|
||||
_1(this);
|
||||
});
|
||||
};
|
||||
$.fn.splitbutton.methods={options:function(jq){
|
||||
return $.data(jq[0],"splitbutton").options;
|
||||
},enable:function(jq){
|
||||
return jq.each(function(){
|
||||
_5(this,false);
|
||||
});
|
||||
},disable:function(jq){
|
||||
return jq.each(function(){
|
||||
_5(this,true);
|
||||
});
|
||||
},destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
var _11=$(this).splitbutton("options");
|
||||
if(_11.menu){
|
||||
$(_11.menu).menu("destroy");
|
||||
}
|
||||
$(this).remove();
|
||||
});
|
||||
}};
|
||||
$.fn.splitbutton.parseOptions=function(_12){
|
||||
var t=$(_12);
|
||||
return $.extend({},$.fn.linkbutton.parseOptions(_12),{menu:t.attr("menu"),duration:t.attr("duration")});
|
||||
};
|
||||
$.fn.splitbutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100});
|
||||
})(jQuery);
|
||||
|
|
@ -1,461 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$(_2).children("div.tabs-header");
|
||||
var _4=0;
|
||||
$("ul.tabs li",_3).each(function(){
|
||||
_4+=$(this).outerWidth(true);
|
||||
});
|
||||
var _5=_3.children("div.tabs-wrap").width();
|
||||
var _6=parseInt(_3.find("ul.tabs").css("padding-left"));
|
||||
return _4-_5+_6;
|
||||
};
|
||||
function _7(_8){
|
||||
var _9=$.data(_8,"tabs").options;
|
||||
var _a=$(_8).children("div.tabs-header");
|
||||
var _b=_a.children("div.tabs-tool");
|
||||
var _c=_a.children("div.tabs-scroller-left");
|
||||
var _d=_a.children("div.tabs-scroller-right");
|
||||
var _e=_a.children("div.tabs-wrap");
|
||||
_b._outerHeight(_a.outerHeight()-(_9.plain?2:0));
|
||||
var _f=0;
|
||||
$("ul.tabs li",_a).each(function(){
|
||||
_f+=$(this).outerWidth(true);
|
||||
});
|
||||
var _10=_a.width()-_b.outerWidth();
|
||||
if(_f>_10){
|
||||
_c.show();
|
||||
_d.show();
|
||||
_b.css("right",_d.outerWidth());
|
||||
_e.css({marginLeft:_c.outerWidth(),marginRight:_d.outerWidth()+_b.outerWidth(),left:0,width:_10-_c.outerWidth()-_d.outerWidth()});
|
||||
}else{
|
||||
_c.hide();
|
||||
_d.hide();
|
||||
_b.css("right",0);
|
||||
_e.css({marginLeft:0,marginRight:_b.outerWidth(),left:0,width:_10});
|
||||
_e.scrollLeft(0);
|
||||
}
|
||||
};
|
||||
function _11(_12){
|
||||
var _13=$.data(_12,"tabs").options;
|
||||
var _14=$(_12).children("div.tabs-header");
|
||||
if(_13.tools){
|
||||
if(typeof _13.tools=="string"){
|
||||
$(_13.tools).addClass("tabs-tool").appendTo(_14);
|
||||
$(_13.tools).show();
|
||||
}else{
|
||||
_14.children("div.tabs-tool").remove();
|
||||
var _15=$("<div class=\"tabs-tool\"></div>").appendTo(_14);
|
||||
for(var i=0;i<_13.tools.length;i++){
|
||||
var _16=$("<a href=\"javascript:void(0);\"></a>").appendTo(_15);
|
||||
_16[0].onclick=eval(_13.tools[i].handler||function(){
|
||||
});
|
||||
_16.linkbutton($.extend({},_13.tools[i],{plain:true}));
|
||||
}
|
||||
}
|
||||
}else{
|
||||
_14.children("div.tabs-tool").remove();
|
||||
}
|
||||
};
|
||||
function _17(_18){
|
||||
var _19=$.data(_18,"tabs").options;
|
||||
var cc=$(_18);
|
||||
if(_19.fit==true){
|
||||
var p=cc.parent();
|
||||
p.addClass("panel-noscroll");
|
||||
_19.width=p.width();
|
||||
_19.height=p.height();
|
||||
}
|
||||
cc.width(_19.width).height(_19.height);
|
||||
var _1a=$(_18).children("div.tabs-header");
|
||||
_1a._outerWidth(_19.width);
|
||||
_7(_18);
|
||||
var _1b=$(_18).children("div.tabs-panels");
|
||||
var _1c=_19.height;
|
||||
if(!isNaN(_1c)){
|
||||
_1b._outerHeight(_1c-_1a.outerHeight());
|
||||
}else{
|
||||
_1b.height("auto");
|
||||
}
|
||||
var _1d=_19.width;
|
||||
if(!isNaN(_1d)){
|
||||
_1b._outerWidth(_1d);
|
||||
}else{
|
||||
_1b.width("auto");
|
||||
}
|
||||
};
|
||||
function _1e(_1f){
|
||||
var _20=$.data(_1f,"tabs").options;
|
||||
var tab=_21(_1f);
|
||||
if(tab){
|
||||
var _22=$(_1f).children("div.tabs-panels");
|
||||
var _23=_20.width=="auto"?"auto":_22.width();
|
||||
var _24=_20.height=="auto"?"auto":_22.height();
|
||||
tab.panel("resize",{width:_23,height:_24});
|
||||
}
|
||||
};
|
||||
function _25(_26){
|
||||
var cc=$(_26);
|
||||
cc.addClass("tabs-container");
|
||||
cc.wrapInner("<div class=\"tabs-panels\"/>");
|
||||
$("<div class=\"tabs-header\">"+"<div class=\"tabs-scroller-left\"></div>"+"<div class=\"tabs-scroller-right\"></div>"+"<div class=\"tabs-wrap\">"+"<ul class=\"tabs\"></ul>"+"</div>"+"</div>").prependTo(_26);
|
||||
var _27=[];
|
||||
var tp=cc.children("div.tabs-panels");
|
||||
tp.children("div[selected]").attr("toselect","true");
|
||||
tp.children("div").each(function(){
|
||||
var pp=$(this);
|
||||
_27.push(pp);
|
||||
_35(_26,pp);
|
||||
});
|
||||
cc.children("div.tabs-header").find(".tabs-scroller-left, .tabs-scroller-right").hover(function(){
|
||||
$(this).addClass("tabs-scroller-over");
|
||||
},function(){
|
||||
$(this).removeClass("tabs-scroller-over");
|
||||
});
|
||||
cc.bind("_resize",function(e,_28){
|
||||
var _29=$.data(_26,"tabs").options;
|
||||
if(_29.fit==true||_28){
|
||||
_17(_26);
|
||||
_1e(_26);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return _27;
|
||||
};
|
||||
function _2a(_2b){
|
||||
var _2c=$.data(_2b,"tabs").options;
|
||||
var _2d=$(_2b).children("div.tabs-header");
|
||||
var _2e=$(_2b).children("div.tabs-panels");
|
||||
if(_2c.plain==true){
|
||||
_2d.addClass("tabs-header-plain");
|
||||
}else{
|
||||
_2d.removeClass("tabs-header-plain");
|
||||
}
|
||||
if(_2c.border==true){
|
||||
_2d.removeClass("tabs-header-noborder");
|
||||
_2e.removeClass("tabs-panels-noborder");
|
||||
}else{
|
||||
_2d.addClass("tabs-header-noborder");
|
||||
_2e.addClass("tabs-panels-noborder");
|
||||
}
|
||||
$(".tabs-scroller-left",_2d).unbind(".tabs").bind("click.tabs",function(){
|
||||
var _2f=$(".tabs-wrap",_2d);
|
||||
var pos=_2f.scrollLeft()-_2c.scrollIncrement;
|
||||
_2f.animate({scrollLeft:pos},_2c.scrollDuration);
|
||||
});
|
||||
$(".tabs-scroller-right",_2d).unbind(".tabs").bind("click.tabs",function(){
|
||||
var _30=$(".tabs-wrap",_2d);
|
||||
var pos=Math.min(_30.scrollLeft()+_2c.scrollIncrement,_1(_2b));
|
||||
_30.animate({scrollLeft:pos},_2c.scrollDuration);
|
||||
});
|
||||
var _31=$.data(_2b,"tabs").tabs;
|
||||
for(var i=0,len=_31.length;i<len;i++){
|
||||
var _32=_31[i];
|
||||
var tab=_32.panel("options").tab;
|
||||
tab.unbind(".tabs").bind("click.tabs",{p:_32},function(e){
|
||||
_44(_2b,_34(_2b,e.data.p));
|
||||
}).bind("contextmenu.tabs",{p:_32},function(e){
|
||||
_2c.onContextMenu.call(_2b,e,e.data.p.panel("options").title);
|
||||
});
|
||||
tab.find("a.tabs-close").unbind(".tabs").bind("click.tabs",{p:_32},function(e){
|
||||
_33(_2b,_34(_2b,e.data.p));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
||||
function _35(_36,pp,_37){
|
||||
_37=_37||{};
|
||||
pp.panel($.extend({},_37,{border:false,noheader:true,closed:true,doSize:false,iconCls:(_37.icon?_37.icon:undefined),onLoad:function(){
|
||||
if(_37.onLoad){
|
||||
_37.onLoad.call(this,arguments);
|
||||
}
|
||||
$.data(_36,"tabs").options.onLoad.call(_36,pp);
|
||||
}}));
|
||||
var _38=pp.panel("options");
|
||||
var _39=$(_36).children("div.tabs-header");
|
||||
var _3a=$("ul.tabs",_39);
|
||||
var tab=$("<li></li>").appendTo(_3a);
|
||||
var _3b=$("<a href=\"javascript:void(0)\" class=\"tabs-inner\"></a>").appendTo(tab);
|
||||
var _3c=$("<span class=\"tabs-title\"></span>").html(_38.title).appendTo(_3b);
|
||||
var _3d=$("<span class=\"tabs-icon\"></span>").appendTo(_3b);
|
||||
if(_38.closable){
|
||||
_3c.addClass("tabs-closable");
|
||||
$("<a href=\"javascript:void(0)\" class=\"tabs-close\"></a>").appendTo(tab);
|
||||
}
|
||||
if(_38.iconCls){
|
||||
_3c.addClass("tabs-with-icon");
|
||||
_3d.addClass(_38.iconCls);
|
||||
}
|
||||
if(_38.tools){
|
||||
var _3e=$("<span class=\"tabs-p-tool\"></span>").insertAfter(_3b);
|
||||
if(typeof _38.tools=="string"){
|
||||
$(_38.tools).children().appendTo(_3e);
|
||||
}else{
|
||||
for(var i=0;i<_38.tools.length;i++){
|
||||
var t=$("<a href=\"javascript:void(0)\"></a>").appendTo(_3e);
|
||||
t.addClass(_38.tools[i].iconCls);
|
||||
if(_38.tools[i].handler){
|
||||
t.bind("click",eval(_38.tools[i].handler));
|
||||
}
|
||||
}
|
||||
}
|
||||
var pr=_3e.children().length*12;
|
||||
if(_38.closable){
|
||||
pr+=8;
|
||||
}else{
|
||||
pr-=3;
|
||||
_3e.css("right","5px");
|
||||
}
|
||||
_3c.css("padding-right",pr+"px");
|
||||
}
|
||||
_38.tab=tab;
|
||||
};
|
||||
function _3f(_40,_41){
|
||||
var _42=$.data(_40,"tabs").options;
|
||||
var _43=$.data(_40,"tabs").tabs;
|
||||
if(_41.selected==undefined){
|
||||
_41.selected=true;
|
||||
}
|
||||
var pp=$("<div></div>").appendTo($(_40).children("div.tabs-panels"));
|
||||
_43.push(pp);
|
||||
_35(_40,pp,_41);
|
||||
_42.onAdd.call(_40,_41.title);
|
||||
_7(_40);
|
||||
_2a(_40);
|
||||
if(_41.selected){
|
||||
_44(_40,_43.length-1);
|
||||
}
|
||||
};
|
||||
function _45(_46,_47){
|
||||
var _48=$.data(_46,"tabs").selectHis;
|
||||
var pp=_47.tab;
|
||||
var _49=pp.panel("options").title;
|
||||
pp.panel($.extend({},_47.options,{iconCls:(_47.options.icon?_47.options.icon:undefined)}));
|
||||
var _4a=pp.panel("options");
|
||||
var tab=_4a.tab;
|
||||
tab.find("span.tabs-icon").attr("class","tabs-icon");
|
||||
tab.find("a.tabs-close").remove();
|
||||
tab.find("span.tabs-title").html(_4a.title);
|
||||
if(_4a.closable){
|
||||
tab.find("span.tabs-title").addClass("tabs-closable");
|
||||
$("<a href=\"javascript:void(0)\" class=\"tabs-close\"></a>").appendTo(tab);
|
||||
}else{
|
||||
tab.find("span.tabs-title").removeClass("tabs-closable");
|
||||
}
|
||||
if(_4a.iconCls){
|
||||
tab.find("span.tabs-title").addClass("tabs-with-icon");
|
||||
tab.find("span.tabs-icon").addClass(_4a.iconCls);
|
||||
}else{
|
||||
tab.find("span.tabs-title").removeClass("tabs-with-icon");
|
||||
}
|
||||
if(_49!=_4a.title){
|
||||
for(var i=0;i<_48.length;i++){
|
||||
if(_48[i]==_49){
|
||||
_48[i]=_4a.title;
|
||||
}
|
||||
}
|
||||
}
|
||||
_2a(_46);
|
||||
$.data(_46,"tabs").options.onUpdate.call(_46,_4a.title);
|
||||
};
|
||||
function _33(_4b,_4c){
|
||||
var _4d=$.data(_4b,"tabs").options;
|
||||
var _4e=$.data(_4b,"tabs").tabs;
|
||||
var _4f=$.data(_4b,"tabs").selectHis;
|
||||
if(!_50(_4b,_4c)){
|
||||
return;
|
||||
}
|
||||
var tab=_51(_4b,_4c);
|
||||
var _52=tab.panel("options").title;
|
||||
if(_4d.onBeforeClose.call(_4b,_52)==false){
|
||||
return;
|
||||
}
|
||||
var tab=_51(_4b,_4c,true);
|
||||
tab.panel("options").tab.remove();
|
||||
tab.panel("destroy");
|
||||
_4d.onClose.call(_4b,_52);
|
||||
_7(_4b);
|
||||
for(var i=0;i<_4f.length;i++){
|
||||
if(_4f[i]==_52){
|
||||
_4f.splice(i,1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
var _53=_4f.pop();
|
||||
if(_53){
|
||||
_44(_4b,_53);
|
||||
}else{
|
||||
if(_4e.length){
|
||||
_44(_4b,0);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _51(_54,_55,_56){
|
||||
var _57=$.data(_54,"tabs").tabs;
|
||||
if(typeof _55=="number"){
|
||||
if(_55<0||_55>=_57.length){
|
||||
return null;
|
||||
}else{
|
||||
var tab=_57[_55];
|
||||
if(_56){
|
||||
_57.splice(_55,1);
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
}
|
||||
for(var i=0;i<_57.length;i++){
|
||||
var tab=_57[i];
|
||||
if(tab.panel("options").title==_55){
|
||||
if(_56){
|
||||
_57.splice(i,1);
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
function _34(_58,tab){
|
||||
var _59=$.data(_58,"tabs").tabs;
|
||||
for(var i=0;i<_59.length;i++){
|
||||
if(_59[i][0]==$(tab)[0]){
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
};
|
||||
function _21(_5a){
|
||||
var _5b=$.data(_5a,"tabs").tabs;
|
||||
for(var i=0;i<_5b.length;i++){
|
||||
var tab=_5b[i];
|
||||
if(tab.panel("options").closed==false){
|
||||
return tab;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
function _5c(_5d){
|
||||
var _5e=$.data(_5d,"tabs").tabs;
|
||||
for(var i=0;i<_5e.length;i++){
|
||||
if(_5e[i].attr("toselect")=="true"){
|
||||
_44(_5d,i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(_5e.length){
|
||||
_44(_5d,0);
|
||||
}
|
||||
};
|
||||
function _44(_5f,_60){
|
||||
var _61=$.data(_5f,"tabs").options;
|
||||
var _62=$.data(_5f,"tabs").tabs;
|
||||
var _63=$.data(_5f,"tabs").selectHis;
|
||||
if(_62.length==0){
|
||||
return;
|
||||
}
|
||||
var _64=_51(_5f,_60);
|
||||
if(!_64){
|
||||
return;
|
||||
}
|
||||
var _65=_21(_5f);
|
||||
if(_65){
|
||||
_65.panel("close");
|
||||
_65.panel("options").tab.removeClass("tabs-selected");
|
||||
}
|
||||
_64.panel("open");
|
||||
var _66=_64.panel("options").title;
|
||||
_63.push(_66);
|
||||
var tab=_64.panel("options").tab;
|
||||
tab.addClass("tabs-selected");
|
||||
var _67=$(_5f).find(">div.tabs-header div.tabs-wrap");
|
||||
var _68=tab.position().left+_67.scrollLeft();
|
||||
var _69=_68-_67.scrollLeft();
|
||||
var _6a=_69+tab.outerWidth();
|
||||
if(_69<0||_6a>_67.innerWidth()){
|
||||
var pos=Math.min(_68-(_67.width()-tab.width())/2,_1(_5f));
|
||||
_67.animate({scrollLeft:pos},_61.scrollDuration);
|
||||
}else{
|
||||
var pos=Math.min(_67.scrollLeft(),_1(_5f));
|
||||
_67.animate({scrollLeft:pos},_61.scrollDuration);
|
||||
}
|
||||
_1e(_5f);
|
||||
_61.onSelect.call(_5f,_66);
|
||||
};
|
||||
function _50(_6b,_6c){
|
||||
return _51(_6b,_6c)!=null;
|
||||
};
|
||||
$.fn.tabs=function(_6d,_6e){
|
||||
if(typeof _6d=="string"){
|
||||
return $.fn.tabs.methods[_6d](this,_6e);
|
||||
}
|
||||
_6d=_6d||{};
|
||||
return this.each(function(){
|
||||
var _6f=$.data(this,"tabs");
|
||||
var _70;
|
||||
if(_6f){
|
||||
_70=$.extend(_6f.options,_6d);
|
||||
_6f.options=_70;
|
||||
}else{
|
||||
$.data(this,"tabs",{options:$.extend({},$.fn.tabs.defaults,$.fn.tabs.parseOptions(this),_6d),tabs:_25(this),selectHis:[]});
|
||||
}
|
||||
_11(this);
|
||||
_2a(this);
|
||||
_17(this);
|
||||
_5c(this);
|
||||
});
|
||||
};
|
||||
$.fn.tabs.methods={options:function(jq){
|
||||
return $.data(jq[0],"tabs").options;
|
||||
},tabs:function(jq){
|
||||
return $.data(jq[0],"tabs").tabs;
|
||||
},resize:function(jq){
|
||||
return jq.each(function(){
|
||||
_17(this);
|
||||
_1e(this);
|
||||
});
|
||||
},add:function(jq,_71){
|
||||
return jq.each(function(){
|
||||
_3f(this,_71);
|
||||
});
|
||||
},close:function(jq,_72){
|
||||
return jq.each(function(){
|
||||
_33(this,_72);
|
||||
});
|
||||
},getTab:function(jq,_73){
|
||||
return _51(jq[0],_73);
|
||||
},getTabIndex:function(jq,tab){
|
||||
return _34(jq[0],tab);
|
||||
},getSelected:function(jq){
|
||||
return _21(jq[0]);
|
||||
},select:function(jq,_74){
|
||||
return jq.each(function(){
|
||||
_44(this,_74);
|
||||
});
|
||||
},exists:function(jq,_75){
|
||||
return _50(jq[0],_75);
|
||||
},update:function(jq,_76){
|
||||
return jq.each(function(){
|
||||
_45(this,_76);
|
||||
});
|
||||
}};
|
||||
$.fn.tabs.parseOptions=function(_77){
|
||||
var t=$(_77);
|
||||
return {width:(parseInt(_77.style.width)||undefined),height:(parseInt(_77.style.height)||undefined),fit:(t.attr("fit")?t.attr("fit")=="true":undefined),border:(t.attr("border")?t.attr("border")=="true":undefined),plain:(t.attr("plain")?t.attr("plain")=="true":undefined),tools:t.attr("tools")};
|
||||
};
|
||||
$.fn.tabs.defaults={width:"auto",height:"auto",plain:false,fit:false,border:true,tools:null,scrollIncrement:100,scrollDuration:400,onLoad:function(_78){
|
||||
},onSelect:function(_79){
|
||||
},onBeforeClose:function(_7a){
|
||||
},onClose:function(_7b){
|
||||
},onAdd:function(_7c){
|
||||
},onUpdate:function(_7d){
|
||||
},onContextMenu:function(e,_7e){
|
||||
}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,188 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
var _3=$.data(_2,"timespinner").options;
|
||||
$(_2).spinner(_3);
|
||||
$(_2).unbind(".timespinner");
|
||||
$(_2).bind("click.timespinner",function(){
|
||||
var _4=0;
|
||||
if(this.selectionStart!=null){
|
||||
_4=this.selectionStart;
|
||||
}else{
|
||||
if(this.createTextRange){
|
||||
var _5=_2.createTextRange();
|
||||
var s=document.selection.createRange();
|
||||
s.setEndPoint("StartToStart",_5);
|
||||
_4=s.text.length;
|
||||
}
|
||||
}
|
||||
if(_4>=0&&_4<=2){
|
||||
_3.highlight=0;
|
||||
}else{
|
||||
if(_4>=3&&_4<=5){
|
||||
_3.highlight=1;
|
||||
}else{
|
||||
if(_4>=6&&_4<=8){
|
||||
_3.highlight=2;
|
||||
}
|
||||
}
|
||||
}
|
||||
_7(_2);
|
||||
}).bind("blur.timespinner",function(){
|
||||
_6(_2);
|
||||
});
|
||||
};
|
||||
function _7(_8){
|
||||
var _9=$.data(_8,"timespinner").options;
|
||||
var _a=0,_b=0;
|
||||
if(_9.highlight==0){
|
||||
_a=0;
|
||||
_b=2;
|
||||
}else{
|
||||
if(_9.highlight==1){
|
||||
_a=3;
|
||||
_b=5;
|
||||
}else{
|
||||
if(_9.highlight==2){
|
||||
_a=6;
|
||||
_b=8;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(_8.selectionStart!=null){
|
||||
_8.setSelectionRange(_a,_b);
|
||||
}else{
|
||||
if(_8.createTextRange){
|
||||
var _c=_8.createTextRange();
|
||||
_c.collapse();
|
||||
_c.moveEnd("character",_b);
|
||||
_c.moveStart("character",_a);
|
||||
_c.select();
|
||||
}
|
||||
}
|
||||
$(_8).focus();
|
||||
};
|
||||
function _d(_e,_f){
|
||||
var _10=$.data(_e,"timespinner").options;
|
||||
if(!_f){
|
||||
return null;
|
||||
}
|
||||
var vv=_f.split(_10.separator);
|
||||
for(var i=0;i<vv.length;i++){
|
||||
if(isNaN(vv[i])){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
while(vv.length<3){
|
||||
vv.push(0);
|
||||
}
|
||||
return new Date(1900,0,0,vv[0],vv[1],vv[2]);
|
||||
};
|
||||
function _6(_11){
|
||||
var _12=$.data(_11,"timespinner").options;
|
||||
var _13=$(_11).val();
|
||||
var _14=_d(_11,_13);
|
||||
if(!_14){
|
||||
_14=_d(_11,_12.value);
|
||||
}
|
||||
if(!_14){
|
||||
_12.value="";
|
||||
$(_11).val("");
|
||||
return;
|
||||
}
|
||||
var _15=_d(_11,_12.min);
|
||||
var _16=_d(_11,_12.max);
|
||||
if(_15&&_15>_14){
|
||||
_14=_15;
|
||||
}
|
||||
if(_16&&_16<_14){
|
||||
_14=_16;
|
||||
}
|
||||
var tt=[_17(_14.getHours()),_17(_14.getMinutes())];
|
||||
if(_12.showSeconds){
|
||||
tt.push(_17(_14.getSeconds()));
|
||||
}
|
||||
var val=tt.join(_12.separator);
|
||||
_12.value=val;
|
||||
$(_11).val(val);
|
||||
function _17(_18){
|
||||
return (_18<10?"0":"")+_18;
|
||||
};
|
||||
};
|
||||
function _19(_1a,_1b){
|
||||
var _1c=$.data(_1a,"timespinner").options;
|
||||
var val=$(_1a).val();
|
||||
if(val==""){
|
||||
val=[0,0,0].join(_1c.separator);
|
||||
}
|
||||
var vv=val.split(_1c.separator);
|
||||
for(var i=0;i<vv.length;i++){
|
||||
vv[i]=parseInt(vv[i],10);
|
||||
}
|
||||
if(_1b==true){
|
||||
vv[_1c.highlight]-=_1c.increment;
|
||||
}else{
|
||||
vv[_1c.highlight]+=_1c.increment;
|
||||
}
|
||||
$(_1a).val(vv.join(_1c.separator));
|
||||
_6(_1a);
|
||||
_7(_1a);
|
||||
};
|
||||
$.fn.timespinner=function(_1d,_1e){
|
||||
if(typeof _1d=="string"){
|
||||
var _1f=$.fn.timespinner.methods[_1d];
|
||||
if(_1f){
|
||||
return _1f(this,_1e);
|
||||
}else{
|
||||
return this.spinner(_1d,_1e);
|
||||
}
|
||||
}
|
||||
_1d=_1d||{};
|
||||
return this.each(function(){
|
||||
var _20=$.data(this,"timespinner");
|
||||
if(_20){
|
||||
$.extend(_20.options,_1d);
|
||||
}else{
|
||||
$.data(this,"timespinner",{options:$.extend({},$.fn.timespinner.defaults,$.fn.timespinner.parseOptions(this),_1d)});
|
||||
_1(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
$.fn.timespinner.methods={options:function(jq){
|
||||
var _21=$.data(jq[0],"timespinner").options;
|
||||
return $.extend(_21,{value:jq.val()});
|
||||
},setValue:function(jq,_22){
|
||||
return jq.each(function(){
|
||||
$(this).val(_22);
|
||||
_6(this);
|
||||
});
|
||||
},getHours:function(jq){
|
||||
var _23=$.data(jq[0],"timespinner").options;
|
||||
var vv=jq.val().split(_23.separator);
|
||||
return parseInt(vv[0],10);
|
||||
},getMinutes:function(jq){
|
||||
var _24=$.data(jq[0],"timespinner").options;
|
||||
var vv=jq.val().split(_24.separator);
|
||||
return parseInt(vv[1],10);
|
||||
},getSeconds:function(jq){
|
||||
var _25=$.data(jq[0],"timespinner").options;
|
||||
var vv=jq.val().split(_25.separator);
|
||||
return parseInt(vv[2],10)||0;
|
||||
}};
|
||||
$.fn.timespinner.parseOptions=function(_26){
|
||||
var t=$(_26);
|
||||
return $.extend({},$.fn.spinner.parseOptions(_26),{separator:t.attr("separator"),showSeconds:(t.attr("showSeconds")?t.attr("showSeconds")=="true":undefined),highlight:(parseInt(t.attr("highlight"))||undefined)});
|
||||
};
|
||||
$.fn.timespinner.defaults=$.extend({},$.fn.spinner.defaults,{separator:":",showSeconds:false,highlight:0,spin:function(_27){
|
||||
_19(this,_27);
|
||||
}});
|
||||
})(jQuery);
|
||||
|
|
@ -1,157 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2){
|
||||
$(_2).addClass("validatebox-text");
|
||||
};
|
||||
function _3(_4){
|
||||
var _5=$.data(_4,"validatebox");
|
||||
_5.validating=false;
|
||||
var _6=_5.tip;
|
||||
if(_6){
|
||||
_6.remove();
|
||||
}
|
||||
$(_4).unbind();
|
||||
$(_4).remove();
|
||||
};
|
||||
function _7(_8){
|
||||
var _9=$(_8);
|
||||
var _a=$.data(_8,"validatebox");
|
||||
_a.validating=false;
|
||||
_9.unbind(".validatebox").bind("focus.validatebox",function(){
|
||||
_a.validating=true;
|
||||
_a.value=undefined;
|
||||
(function(){
|
||||
if(_a.validating){
|
||||
if(_a.value!=_9.val()){
|
||||
_a.value=_9.val();
|
||||
_11(_8);
|
||||
}
|
||||
setTimeout(arguments.callee,200);
|
||||
}
|
||||
})();
|
||||
}).bind("blur.validatebox",function(){
|
||||
_a.validating=false;
|
||||
_b(_8);
|
||||
}).bind("mouseenter.validatebox",function(){
|
||||
if(_9.hasClass("validatebox-invalid")){
|
||||
_c(_8);
|
||||
}
|
||||
}).bind("mouseleave.validatebox",function(){
|
||||
_b(_8);
|
||||
});
|
||||
};
|
||||
function _c(_d){
|
||||
var _e=$(_d);
|
||||
var _f=$.data(_d,"validatebox").message;
|
||||
var tip=$.data(_d,"validatebox").tip;
|
||||
if(!tip){
|
||||
tip=$("<div class=\"validatebox-tip\">"+"<span class=\"validatebox-tip-content\">"+"</span>"+"<span class=\"validatebox-tip-pointer\">"+"</span>"+"</div>").appendTo("body");
|
||||
$.data(_d,"validatebox").tip=tip;
|
||||
}
|
||||
tip.find(".validatebox-tip-content").html(_f);
|
||||
tip.css({display:"block",left:_e.offset().left+_e.outerWidth(),top:_e.offset().top});
|
||||
};
|
||||
function _b(_10){
|
||||
var tip=$.data(_10,"validatebox").tip;
|
||||
if(tip){
|
||||
tip.remove();
|
||||
$.data(_10,"validatebox").tip=null;
|
||||
}
|
||||
};
|
||||
function _11(_12){
|
||||
var _13=$.data(_12,"validatebox").options;
|
||||
var tip=$.data(_12,"validatebox").tip;
|
||||
var box=$(_12);
|
||||
var _14=box.val();
|
||||
function _15(msg){
|
||||
$.data(_12,"validatebox").message=msg;
|
||||
};
|
||||
var _16=box.attr("disabled");
|
||||
if(_16==true||_16=="true"){
|
||||
return true;
|
||||
}
|
||||
if(_13.required){
|
||||
if(_14==""){
|
||||
box.addClass("validatebox-invalid");
|
||||
_15(_13.missingMessage);
|
||||
_c(_12);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(_13.validType){
|
||||
var _17=/([a-zA-Z_]+)(.*)/.exec(_13.validType);
|
||||
var _18=_13.rules[_17[1]];
|
||||
if(_14&&_18){
|
||||
var _19=eval(_17[2]);
|
||||
if(!_18["validator"](_14,_19)){
|
||||
box.addClass("validatebox-invalid");
|
||||
var _1a=_18["message"];
|
||||
if(_19){
|
||||
for(var i=0;i<_19.length;i++){
|
||||
_1a=_1a.replace(new RegExp("\\{"+i+"\\}","g"),_19[i]);
|
||||
}
|
||||
}
|
||||
_15(_13.invalidMessage||_1a);
|
||||
_c(_12);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
box.removeClass("validatebox-invalid");
|
||||
_b(_12);
|
||||
return true;
|
||||
};
|
||||
$.fn.validatebox=function(_1b,_1c){
|
||||
if(typeof _1b=="string"){
|
||||
return $.fn.validatebox.methods[_1b](this,_1c);
|
||||
}
|
||||
_1b=_1b||{};
|
||||
return this.each(function(){
|
||||
var _1d=$.data(this,"validatebox");
|
||||
if(_1d){
|
||||
$.extend(_1d.options,_1b);
|
||||
}else{
|
||||
_1(this);
|
||||
$.data(this,"validatebox",{options:$.extend({},$.fn.validatebox.defaults,$.fn.validatebox.parseOptions(this),_1b)});
|
||||
}
|
||||
_7(this);
|
||||
});
|
||||
};
|
||||
$.fn.validatebox.methods={destroy:function(jq){
|
||||
return jq.each(function(){
|
||||
_3(this);
|
||||
});
|
||||
},validate:function(jq){
|
||||
return jq.each(function(){
|
||||
_11(this);
|
||||
});
|
||||
},isValid:function(jq){
|
||||
return _11(jq[0]);
|
||||
}};
|
||||
$.fn.validatebox.parseOptions=function(_1e){
|
||||
var t=$(_1e);
|
||||
return {required:(t.attr("required")?(t.attr("required")=="required"||t.attr("required")=="true"||t.attr("required")==true):undefined),validType:(t.attr("validType")||undefined),missingMessage:(t.attr("missingMessage")||undefined),invalidMessage:(t.attr("invalidMessage")||undefined)};
|
||||
};
|
||||
$.fn.validatebox.defaults={required:false,validType:null,missingMessage:"This field is required.",invalidMessage:null,rules:{email:{validator:function(_1f){
|
||||
return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(_1f);
|
||||
},message:"Please enter a valid email address."},url:{validator:function(_20){
|
||||
return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(_20);
|
||||
},message:"Please enter a valid URL."},length:{validator:function(_21,_22){
|
||||
var len=$.trim(_21).length;
|
||||
return len>=_22[0]&&len<=_22[1];
|
||||
},message:"Please enter a value between {0} and {1}."},remote:{validator:function(_23,_24){
|
||||
var _25={};
|
||||
_25[_24[1]]=_23;
|
||||
var _26=$.ajax({url:_24[0],dataType:"json",data:_25,async:false,cache:false,type:"post"}).responseText;
|
||||
return _26=="true";
|
||||
},message:"Please fix this field."}}};
|
||||
})(jQuery);
|
||||
|
|
@ -1,263 +0,0 @@
|
|||
/**
|
||||
* jQuery EasyUI 1.2.6
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
function _1(_2,_3){
|
||||
var _4=$.data(_2,"window").options;
|
||||
if(_3){
|
||||
if(_3.width){
|
||||
_4.width=_3.width;
|
||||
}
|
||||
if(_3.height){
|
||||
_4.height=_3.height;
|
||||
}
|
||||
if(_3.left!=null){
|
||||
_4.left=_3.left;
|
||||
}
|
||||
if(_3.top!=null){
|
||||
_4.top=_3.top;
|
||||
}
|
||||
}
|
||||
$(_2).panel("resize",_4);
|
||||
};
|
||||
function _5(_6,_7){
|
||||
var _8=$.data(_6,"window");
|
||||
if(_7){
|
||||
if(_7.left!=null){
|
||||
_8.options.left=_7.left;
|
||||
}
|
||||
if(_7.top!=null){
|
||||
_8.options.top=_7.top;
|
||||
}
|
||||
}
|
||||
$(_6).panel("move",_8.options);
|
||||
if(_8.shadow){
|
||||
_8.shadow.css({left:_8.options.left,top:_8.options.top});
|
||||
}
|
||||
};
|
||||
function _9(_a){
|
||||
var _b=$.data(_a,"window");
|
||||
var _c=$(_a).panel($.extend({},_b.options,{border:false,doSize:true,closed:true,cls:"window",headerCls:"window-header",bodyCls:"window-body "+(_b.options.noheader?"window-body-noheader":""),onBeforeDestroy:function(){
|
||||
if(_b.options.onBeforeDestroy.call(_a)==false){
|
||||
return false;
|
||||
}
|
||||
if(_b.shadow){
|
||||
_b.shadow.remove();
|
||||
}
|
||||
if(_b.mask){
|
||||
_b.mask.remove();
|
||||
}
|
||||
},onClose:function(){
|
||||
if(_b.shadow){
|
||||
_b.shadow.hide();
|
||||
}
|
||||
if(_b.mask){
|
||||
_b.mask.hide();
|
||||
}
|
||||
_b.options.onClose.call(_a);
|
||||
},onOpen:function(){
|
||||
if(_b.mask){
|
||||
_b.mask.css({display:"block",zIndex:$.fn.window.defaults.zIndex++});
|
||||
}
|
||||
if(_b.shadow){
|
||||
_b.shadow.css({display:"block",zIndex:$.fn.window.defaults.zIndex++,left:_b.options.left,top:_b.options.top,width:_b.window.outerWidth(),height:_b.window.outerHeight()});
|
||||
}
|
||||
_b.window.css("z-index",$.fn.window.defaults.zIndex++);
|
||||
_b.options.onOpen.call(_a);
|
||||
},onResize:function(_d,_e){
|
||||
var _f=$(_a).panel("options");
|
||||
_b.options.width=_f.width;
|
||||
_b.options.height=_f.height;
|
||||
_b.options.left=_f.left;
|
||||
_b.options.top=_f.top;
|
||||
if(_b.shadow){
|
||||
_b.shadow.css({left:_b.options.left,top:_b.options.top,width:_b.window.outerWidth(),height:_b.window.outerHeight()});
|
||||
}
|
||||
_b.options.onResize.call(_a,_d,_e);
|
||||
},onMinimize:function(){
|
||||
if(_b.shadow){
|
||||
_b.shadow.hide();
|
||||
}
|
||||
if(_b.mask){
|
||||
_b.mask.hide();
|
||||
}
|
||||
_b.options.onMinimize.call(_a);
|
||||
},onBeforeCollapse:function(){
|
||||
if(_b.options.onBeforeCollapse.call(_a)==false){
|
||||
return false;
|
||||
}
|
||||
if(_b.shadow){
|
||||
_b.shadow.hide();
|
||||
}
|
||||
},onExpand:function(){
|
||||
if(_b.shadow){
|
||||
_b.shadow.show();
|
||||
}
|
||||
_b.options.onExpand.call(_a);
|
||||
}}));
|
||||
_b.window=_c.panel("panel");
|
||||
if(_b.mask){
|
||||
_b.mask.remove();
|
||||
}
|
||||
if(_b.options.modal==true){
|
||||
_b.mask=$("<div class=\"window-mask\"></div>").insertAfter(_b.window);
|
||||
_b.mask.css({width:(_b.options.inline?_b.mask.parent().width():_10().width),height:(_b.options.inline?_b.mask.parent().height():_10().height),display:"none"});
|
||||
}
|
||||
if(_b.shadow){
|
||||
_b.shadow.remove();
|
||||
}
|
||||
if(_b.options.shadow==true){
|
||||
_b.shadow=$("<div class=\"window-shadow\"></div>").insertAfter(_b.window);
|
||||
_b.shadow.css({display:"none"});
|
||||
}
|
||||
if(_b.options.left==null){
|
||||
var _11=_b.options.width;
|
||||
if(isNaN(_11)){
|
||||
_11=_b.window.outerWidth();
|
||||
}
|
||||
if(_b.options.inline){
|
||||
var _12=_b.window.parent();
|
||||
_b.options.left=(_12.width()-_11)/2+_12.scrollLeft();
|
||||
}else{
|
||||
_b.options.left=($(window).width()-_11)/2+$(document).scrollLeft();
|
||||
}
|
||||
}
|
||||
if(_b.options.top==null){
|
||||
var _13=_b.window.height;
|
||||
if(isNaN(_13)){
|
||||
_13=_b.window.outerHeight();
|
||||
}
|
||||
if(_b.options.inline){
|
||||
var _12=_b.window.parent();
|
||||
_b.options.top=(_12.height()-_13)/2+_12.scrollTop();
|
||||
}else{
|
||||
_b.options.top=($(window).height()-_13)/2+$(document).scrollTop();
|
||||
}
|
||||
}
|
||||
_5(_a);
|
||||
if(_b.options.closed==false){
|
||||
_c.window("open");
|
||||
}
|
||||
};
|
||||
function _14(_15){
|
||||
var _16=$.data(_15,"window");
|
||||
_16.window.draggable({handle:">div.panel-header>div.panel-title",disabled:_16.options.draggable==false,onStartDrag:function(e){
|
||||
if(_16.mask){
|
||||
_16.mask.css("z-index",$.fn.window.defaults.zIndex++);
|
||||
}
|
||||
if(_16.shadow){
|
||||
_16.shadow.css("z-index",$.fn.window.defaults.zIndex++);
|
||||
}
|
||||
_16.window.css("z-index",$.fn.window.defaults.zIndex++);
|
||||
if(!_16.proxy){
|
||||
_16.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_16.window);
|
||||
}
|
||||
_16.proxy.css({display:"none",zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
|
||||
_16.proxy._outerWidth(_16.window.outerWidth());
|
||||
_16.proxy._outerHeight(_16.window.outerHeight());
|
||||
setTimeout(function(){
|
||||
if(_16.proxy){
|
||||
_16.proxy.show();
|
||||
}
|
||||
},500);
|
||||
},onDrag:function(e){
|
||||
_16.proxy.css({display:"block",left:e.data.left,top:e.data.top});
|
||||
return false;
|
||||
},onStopDrag:function(e){
|
||||
_16.options.left=e.data.left;
|
||||
_16.options.top=e.data.top;
|
||||
$(_15).window("move");
|
||||
_16.proxy.remove();
|
||||
_16.proxy=null;
|
||||
}});
|
||||
_16.window.resizable({disabled:_16.options.resizable==false,onStartResize:function(e){
|
||||
_16.pmask=$("<div class=\"window-proxy-mask\"></div>").insertAfter(_16.window);
|
||||
_16.pmask.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top,width:_16.window.outerWidth(),height:_16.window.outerHeight()});
|
||||
if(!_16.proxy){
|
||||
_16.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_16.window);
|
||||
}
|
||||
_16.proxy.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
|
||||
_16.proxy._outerWidth(e.data.width);
|
||||
_16.proxy._outerHeight(e.data.height);
|
||||
},onResize:function(e){
|
||||
_16.proxy.css({left:e.data.left,top:e.data.top});
|
||||
_16.proxy._outerWidth(e.data.width);
|
||||
_16.proxy._outerHeight(e.data.height);
|
||||
return false;
|
||||
},onStopResize:function(e){
|
||||
_16.options.left=e.data.left;
|
||||
_16.options.top=e.data.top;
|
||||
_16.options.width=e.data.width;
|
||||
_16.options.height=e.data.height;
|
||||
_1(_15);
|
||||
_16.pmask.remove();
|
||||
_16.pmask=null;
|
||||
_16.proxy.remove();
|
||||
_16.proxy=null;
|
||||
}});
|
||||
};
|
||||
function _10(){
|
||||
if(document.compatMode=="BackCompat"){
|
||||
return {width:Math.max(document.body.scrollWidth,document.body.clientWidth),height:Math.max(document.body.scrollHeight,document.body.clientHeight)};
|
||||
}else{
|
||||
return {width:Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth),height:Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight)};
|
||||
}
|
||||
};
|
||||
$(window).resize(function(){
|
||||
$("body>div.window-mask").css({width:$(window).width(),height:$(window).height()});
|
||||
setTimeout(function(){
|
||||
$("body>div.window-mask").css({width:_10().width,height:_10().height});
|
||||
},50);
|
||||
});
|
||||
$.fn.window=function(_17,_18){
|
||||
if(typeof _17=="string"){
|
||||
var _19=$.fn.window.methods[_17];
|
||||
if(_19){
|
||||
return _19(this,_18);
|
||||
}else{
|
||||
return this.panel(_17,_18);
|
||||
}
|
||||
}
|
||||
_17=_17||{};
|
||||
return this.each(function(){
|
||||
var _1a=$.data(this,"window");
|
||||
if(_1a){
|
||||
$.extend(_1a.options,_17);
|
||||
}else{
|
||||
_1a=$.data(this,"window",{options:$.extend({},$.fn.window.defaults,$.fn.window.parseOptions(this),_17)});
|
||||
if(!_1a.options.inline){
|
||||
$(this).appendTo("body");
|
||||
}
|
||||
}
|
||||
_9(this);
|
||||
_14(this);
|
||||
});
|
||||
};
|
||||
$.fn.window.methods={options:function(jq){
|
||||
var _1b=jq.panel("options");
|
||||
var _1c=$.data(jq[0],"window").options;
|
||||
return $.extend(_1c,{closed:_1b.closed,collapsed:_1b.collapsed,minimized:_1b.minimized,maximized:_1b.maximized});
|
||||
},window:function(jq){
|
||||
return $.data(jq[0],"window").window;
|
||||
},resize:function(jq,_1d){
|
||||
return jq.each(function(){
|
||||
_1(this,_1d);
|
||||
});
|
||||
},move:function(jq,_1e){
|
||||
return jq.each(function(){
|
||||
_5(this,_1e);
|
||||
});
|
||||
}};
|
||||
$.fn.window.parseOptions=function(_1f){
|
||||
var t=$(_1f);
|
||||
return $.extend({},$.fn.panel.parseOptions(_1f),{draggable:(t.attr("draggable")?t.attr("draggable")=="true":undefined),resizable:(t.attr("resizable")?t.attr("resizable")=="true":undefined),shadow:(t.attr("shadow")?t.attr("shadow")=="true":undefined),modal:(t.attr("modal")?t.attr("modal")=="true":undefined),inline:(t.attr("inline")?t.attr("inline")=="true":undefined)});
|
||||
};
|
||||
$.fn.window.defaults=$.extend({},$.fn.panel.defaults,{zIndex:9000,draggable:true,resizable:true,shadow:true,modal:false,inline:false,title:"New Window",collapsible:true,minimizable:true,maximizable:true,closable:true,closed:false});
|
||||
})(jQuery);
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
.accordion{
|
||||
background:#fff;
|
||||
overflow:hidden;
|
||||
}
|
||||
.accordion .accordion-header{
|
||||
background:#E0ECFF;
|
||||
border-top-width:0;
|
||||
cursor:pointer;
|
||||
}
|
||||
.accordion .accordion-header .panel-title{
|
||||
font-weight:normal;
|
||||
}
|
||||
.accordion .accordion-header-selected .panel-title{
|
||||
font-weight:bold;
|
||||
}
|
||||
.accordion-noborder .accordion-header{
|
||||
border-width:0 0 1px;
|
||||
}
|
||||
.accordion-noborder .accordion-body{
|
||||
border-width:0px;
|
||||
}
|
||||
.accordion-collapse{
|
||||
background:url('images/accordion_collapse.png') no-repeat;
|
||||
}
|
||||
.accordion-expand{
|
||||
background:url('images/accordion_expand.png') no-repeat;
|
||||
}
|
|
@ -1,161 +0,0 @@
|
|||
.calendar{
|
||||
background:#fff;
|
||||
border:1px solid #A4BED4;
|
||||
padding:1px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.calendar-noborder{
|
||||
border:0px;
|
||||
}
|
||||
.calendar-header{
|
||||
position:relative;
|
||||
background:#E0ECFF;
|
||||
font-size:12px;
|
||||
height:22px;
|
||||
}
|
||||
.calendar-title{
|
||||
text-align:center;
|
||||
height:22px;
|
||||
}
|
||||
.calendar-title span{
|
||||
position:relative;
|
||||
top:2px;
|
||||
line-height:12px;
|
||||
display:inline-block;
|
||||
padding:3px;
|
||||
cursor:pointer;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
||||
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
|
||||
position:absolute;
|
||||
top:4px;
|
||||
width:14px;
|
||||
height:14px;
|
||||
line-height:12px;
|
||||
cursor:pointer;
|
||||
font-size:1px;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
||||
.calendar-prevmonth{
|
||||
left:20px;
|
||||
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
|
||||
}
|
||||
.calendar-nextmonth{
|
||||
right:20px;
|
||||
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
|
||||
}
|
||||
.calendar-prevyear{
|
||||
left:3px;
|
||||
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
|
||||
}
|
||||
.calendar-nextyear{
|
||||
right:3px;
|
||||
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
|
||||
}
|
||||
.calendar-body{
|
||||
font-size:12px;
|
||||
position:relative;
|
||||
}
|
||||
.calendar-body table{
|
||||
width:100%;
|
||||
height:100%;
|
||||
border:1px solid #eee;
|
||||
font-size:12px;
|
||||
}
|
||||
.calendar-body th,.calendar-body td{
|
||||
text-align:center;
|
||||
}
|
||||
.calendar-body th{
|
||||
background:#fafafa;
|
||||
color:#888;
|
||||
}
|
||||
.calendar-day{
|
||||
color:#222;
|
||||
cursor:pointer;
|
||||
border:1px solid #fff;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
||||
.calendar-sunday{
|
||||
color:#CC2222;
|
||||
}
|
||||
.calendar-saturday{
|
||||
color:#00ee00;
|
||||
}
|
||||
.calendar-today{
|
||||
color:#0000ff;
|
||||
}
|
||||
.calendar-other-month{
|
||||
opacity:0.3;
|
||||
filter:alpha(opacity=30);
|
||||
}
|
||||
.calendar-hover{
|
||||
border:1px solid red;
|
||||
}
|
||||
.calendar-selected{
|
||||
background:#FBEC88;
|
||||
border:1px solid red;
|
||||
}
|
||||
.calendar-nav-hover{
|
||||
background-color:#FBEC88;
|
||||
}
|
||||
|
||||
|
||||
.calendar-menu{
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
width:180px;
|
||||
height:150px;
|
||||
padding:5px;
|
||||
font-size:12px;
|
||||
background:#fafafa;
|
||||
opacity:0.8;
|
||||
filter:alpha(opacity=80);
|
||||
display:none;
|
||||
overflow:hidden;
|
||||
}
|
||||
.calendar-menu-year-inner{
|
||||
text-align:center;
|
||||
padding-bottom:5px;
|
||||
}
|
||||
.calendar-menu-year{
|
||||
width:40px;
|
||||
text-align:center;
|
||||
border:1px solid #ccc;
|
||||
padding:2px;
|
||||
font-weight:bold;
|
||||
}
|
||||
.calendar-menu-prev,.calendar-menu-next{
|
||||
display:inline-block;
|
||||
width:21px;
|
||||
height:21px;
|
||||
vertical-align:top;
|
||||
cursor:pointer;
|
||||
}
|
||||
.calendar-menu-prev{
|
||||
margin-right:10px;
|
||||
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
|
||||
}
|
||||
.calendar-menu-next{
|
||||
margin-left:10px;
|
||||
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
|
||||
}
|
||||
.calendar-menu-hover{
|
||||
background-color:#FBEC88;
|
||||
}
|
||||
.calendar-menu-month-inner table{
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
.calendar-menu-month{
|
||||
text-align:center;
|
||||
cursor:pointer;
|
||||
border:1px solid #fafafa;
|
||||
font-weight:bold;
|
||||
color:#666;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
.combo{
|
||||
display:inline-block;
|
||||
white-space:nowrap;
|
||||
font-size:12px;
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:1px solid #A4BED4;
|
||||
background:#fff;
|
||||
}
|
||||
.combo-text{
|
||||
font-size:12px;
|
||||
border:0px;
|
||||
line-height:20px;
|
||||
height:20px;
|
||||
padding:0px;
|
||||
*height:18px;
|
||||
*line-height:18px;
|
||||
_height:18px;
|
||||
_line-height:18px;
|
||||
}
|
||||
.combo-arrow{
|
||||
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
|
||||
width:18px;
|
||||
height:20px;
|
||||
overflow:hidden;
|
||||
display:inline-block;
|
||||
vertical-align:top;
|
||||
cursor:pointer;
|
||||
opacity:0.6;
|
||||
filter:alpha(opacity=60);
|
||||
}
|
||||
.combo-arrow-hover{
|
||||
opacity:1.0;
|
||||
filter:alpha(opacity=100);
|
||||
}
|
||||
.combo-panel{
|
||||
background:#fff;
|
||||
overflow:auto;
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
.combobox-item{
|
||||
padding:2px;
|
||||
font-size:12px;
|
||||
padding:3px;
|
||||
padding-right:0px;
|
||||
}
|
||||
.combobox-item-hover{
|
||||
background:#fafafa;
|
||||
}
|
||||
.combobox-item-selected{
|
||||
background:#FBEC88;
|
||||
}
|
|
@ -1,228 +0,0 @@
|
|||
.datagrid .panel-body{
|
||||
overflow:hidden;
|
||||
}
|
||||
.datagrid-wrap{
|
||||
position:relative;
|
||||
}
|
||||
.datagrid-view{
|
||||
position:relative;
|
||||
overflow:hidden;
|
||||
}
|
||||
.datagrid-view1{
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
left:0px;
|
||||
top:0px;
|
||||
}
|
||||
.datagrid-view2{
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
left:210px;
|
||||
top:0px;
|
||||
}
|
||||
.datagrid-mask{
|
||||
position:absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
background:#ccc;
|
||||
opacity:0.3;
|
||||
filter:alpha(opacity=30);
|
||||
display:none;
|
||||
}
|
||||
.datagrid-mask-msg{
|
||||
position:absolute;
|
||||
left:100px;
|
||||
top:50px;
|
||||
width:auto;
|
||||
height:16px;
|
||||
padding:12px 5px 10px 30px;
|
||||
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
|
||||
border:2px solid #6593CF;
|
||||
color:#222;
|
||||
display:none;
|
||||
}
|
||||
.datagrid-sort-desc .datagrid-sort-icon{
|
||||
padding:2px 13px 3px 0px;
|
||||
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
|
||||
}
|
||||
.datagrid-sort-asc .datagrid-sort-icon{
|
||||
padding:2px 13px 3px 0px;
|
||||
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
|
||||
}
|
||||
.datagrid-toolbar{
|
||||
height:28px;
|
||||
background:#efefef;
|
||||
padding:1px 2px;
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
.datagrid-btn-separator{
|
||||
float:left;
|
||||
height:24px;
|
||||
border-left:1px solid #ccc;
|
||||
border-right:1px solid #fff;
|
||||
margin:2px 1px;
|
||||
}
|
||||
.datagrid-pager{
|
||||
background:#efefef;
|
||||
border-top:1px solid #ccc;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.datagrid-header{
|
||||
overflow:hidden;
|
||||
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
|
||||
border-bottom:1px solid #ccc;
|
||||
cursor:default;
|
||||
}
|
||||
.datagrid-header-inner{
|
||||
float:left;
|
||||
width:10000px;
|
||||
}
|
||||
.datagrid-header td{
|
||||
border-right:1px dotted #ccc;
|
||||
font-size:12px;
|
||||
font-weight:normal;
|
||||
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
|
||||
border-bottom:1px dotted #ccc;
|
||||
border-top:1px dotted #fff;
|
||||
}
|
||||
.datagrid-header td.datagrid-header-over{
|
||||
background:#EBF3FD;
|
||||
}
|
||||
.datagrid-header .datagrid-cell{
|
||||
margin:0;
|
||||
padding:3px 4px;
|
||||
white-space:nowrap;
|
||||
word-wrap:normal;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
}
|
||||
.datagrid-header .datagrid-cell-group{
|
||||
margin:0;
|
||||
padding:4px 2px 4px 4px;
|
||||
white-space:nowrap;
|
||||
word-wrap:normal;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
}
|
||||
.datagrid-header-rownumber{
|
||||
width:25px;
|
||||
text-align:center;
|
||||
margin:0px;
|
||||
padding:3px 0px;
|
||||
}
|
||||
.datagrid-td-rownumber{
|
||||
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
|
||||
}
|
||||
.datagrid-cell-rownumber{
|
||||
width:25px;
|
||||
text-align:center;
|
||||
margin:0px;
|
||||
padding:3px 0px;
|
||||
color:#000;
|
||||
}
|
||||
.datagrid-body{
|
||||
margin:0;
|
||||
padding:0;
|
||||
overflow:auto;
|
||||
zoom:1;
|
||||
}
|
||||
.datagrid-view1 .datagrid-body-inner{
|
||||
padding-bottom:20px;
|
||||
}
|
||||
.datagrid-view1 .datagrid-body{
|
||||
overflow:hidden;
|
||||
}
|
||||
.datagrid-footer{
|
||||
overflow:hidden;
|
||||
}
|
||||
.datagrid-footer-inner{
|
||||
border-top:1px solid #ccc;
|
||||
width:10000px;
|
||||
float:left;
|
||||
}
|
||||
.datagrid-body td,.datagrid-footer td{
|
||||
font-size:12px;
|
||||
border-right:1px dotted #ccc;
|
||||
border-bottom:1px dotted #ccc;
|
||||
overflow:hidden;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
|
||||
overflow:hidden;
|
||||
margin:0;
|
||||
padding:0px 4px;
|
||||
white-space:nowrap;
|
||||
word-wrap:normal;
|
||||
height:18px;
|
||||
line-height:18px;
|
||||
}
|
||||
.datagrid-row-editing .datagrid-cell{
|
||||
height:auto;
|
||||
}
|
||||
.datagrid-header-check{
|
||||
padding:3px 6px;
|
||||
}
|
||||
.datagrid-cell-check{
|
||||
padding:3px 6px;
|
||||
font-size:1px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.datagrid-header-check input{
|
||||
margin:0;
|
||||
padding:0;
|
||||
width:15px;
|
||||
height:15px;
|
||||
}
|
||||
.datagrid-cell-check input{
|
||||
margin:0;
|
||||
padding:0;
|
||||
width:15px;
|
||||
height:15px;
|
||||
}
|
||||
.datagrid-row{
|
||||
height:25px;
|
||||
}
|
||||
.datagrid-row-collapse{
|
||||
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
|
||||
}
|
||||
.datagrid-row-expand{
|
||||
background:url('images/datagrid_row_expand.gif') no-repeat center center;
|
||||
}
|
||||
.datagrid-row-alt{
|
||||
background:#EEEEFF;
|
||||
}
|
||||
.datagrid-row-over{
|
||||
background:#D0E5F5;
|
||||
cursor:default;
|
||||
}
|
||||
.datagrid-row-selected{
|
||||
background:#FBEC88;
|
||||
}
|
||||
.datagrid-resize-proxy{
|
||||
position:absolute;
|
||||
width:1px;
|
||||
top:0;
|
||||
height:10000px;
|
||||
background:red;
|
||||
cursor:e-resize;
|
||||
display:none;
|
||||
}
|
||||
.datagrid-body .datagrid-editable{
|
||||
padding:0;
|
||||
}
|
||||
.datagrid-body .datagrid-editable table{
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
.datagrid-body .datagrid-editable td{
|
||||
border:0;
|
||||
padding:0;
|
||||
}
|
||||
.datagrid-body .datagrid-editable .datagrid-editable-input{
|
||||
width:100%;
|
||||
font-size:12px;
|
||||
border:1px solid #A4BED4;
|
||||
padding:3px 2px;
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
.datebox .combo-arrow{
|
||||
background:url('images/datebox_arrow.png') no-repeat center center;
|
||||
}
|
||||
.datebox-calendar-inner{
|
||||
height:180px;
|
||||
}
|
||||
.datebox-button{
|
||||
height:18px;
|
||||
padding:2px 5px;
|
||||
font-size:12px;
|
||||
background-color:#fafafa;
|
||||
text-align:center;
|
||||
}
|
||||
.datebox-current,.datebox-close{
|
||||
float:left;
|
||||
color:#888;
|
||||
text-decoration:none;
|
||||
font-weight:bold;
|
||||
}
|
||||
.datebox-close{
|
||||
float:right;
|
||||
}
|
||||
.datebox-ok{
|
||||
color:#888;
|
||||
text-decoration:none;
|
||||
font-weight:bold;
|
||||
}
|
||||
.datebox-button-hover{
|
||||
color:#A4BED4;
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
.dialog-content{
|
||||
overflow:auto;
|
||||
}
|
||||
.dialog-toolbar{
|
||||
background:#fafafa;
|
||||
padding:2px 5px;
|
||||
border-bottom:1px solid #eee;
|
||||
}
|
||||
.dialog-tool-separator{
|
||||
float:left;
|
||||
height:24px;
|
||||
border-left:1px solid #ccc;
|
||||
border-right:1px solid #fff;
|
||||
margin:2px 1px;
|
||||
}
|
||||
.dialog-button{
|
||||
border-top:1px solid #eee;
|
||||
background:#fafafa;
|
||||
padding:5px 5px;
|
||||
text-align:right;
|
||||
}
|
||||
.dialog-button .l-btn{
|
||||
margin-left:5px;
|
||||
}
|
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 43 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 64 B |
Before Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 66 B |
Before Width: | Height: | Size: 76 B |
Before Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 626 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 834 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 875 B |
Before Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 737 B |
Before Width: | Height: | Size: 813 B |
Before Width: | Height: | Size: 863 B |
Before Width: | Height: | Size: 53 B |
Before Width: | Height: | Size: 53 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 617 B |