initial commit
This commit is contained in:
36
WebRoot/js/jquery-easyui-1.1.2/plugins/jquery.parser.js
Normal file
36
WebRoot/js/jquery-easyui-1.1.2/plugins/jquery.parser.js
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* jQuery EasyUI 1.1.2
|
||||
*
|
||||
* Licensed under the GPL:
|
||||
* http://www.gnu.org/licenses/gpl.txt
|
||||
*
|
||||
* Copyright 2010 stworthy [ stworthy@gmail.com ]
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
$.parser={auto:true,plugins:["linkbutton","menu","menubutton","splitbutton","layout","tree","window","dialog","datagrid","combobox","combotree","numberbox","validatebox","calendar","datebox","panel","tabs","accordion"],parse:function(_1){
|
||||
if($.parser.auto){
|
||||
for(var i=0;i<$.parser.plugins.length;i++){
|
||||
(function(){
|
||||
var _2=$.parser.plugins[i];
|
||||
var r=$(".easyui-"+_2,_1);
|
||||
if(r.length){
|
||||
if(r[_2]){
|
||||
r[_2]();
|
||||
}else{
|
||||
if(window.easyloader){
|
||||
easyloader.load(_2,function(){
|
||||
r[_2]();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
}
|
||||
}};
|
||||
$(function(){
|
||||
$.parser.parse();
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user