first commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* jQuery EasyUI 1.2.5
|
||||
*
|
||||
* Licensed under the GPL terms
|
||||
* To use it on other terms please contact us
|
||||
*
|
||||
* Copyright(c) 2009-2011 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","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);
|
||||
|
||||
Reference in New Issue
Block a user