Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
show:function(onEnd,parent,subId,threadid,left,top){
xui.UI.$trytoApplyCSS();
if(false===this._fireEvent('beforeShow'))return false;
parent=parent||xui('body');
if(parent['xui.UIProfile'])parent=parent.boxing();
var self=this,f=function(){
var style=self.customStyle;
if(style && !xui.isEmpty(style)){
var arr=[];
xui.each(style,function(v,k){
arr.push(k+" : "+v+";");
});
var txt=".xui-module-"+self.$xid+"{\r\n"+arr.join("\r\n")+"\r\n}";
xui.CSS.addStyleSheet(txt,"xui:css:module-"+self.$xid,1);
}
// no UI control in module
if(self.getUIComponents().isEmpty()){
xui.tryF(self.customAppend,[parent,subId,left,top,threadid], self);
xui.tryF(onEnd,[null, self, threadid], self);
}else{
var fun = function(m){
if(m["xui.Module"]){
for(var i=0,l=m._nodes,o;i
_getProfile:function(id,a,b){
return id && (typeof id=='string') && ((a=(b=xui.$cache.profileMap)[id])
?
a['xui.UIProfile']
?
a
:
(b=b[id.replace(this._reg,'')])
?
b
:
a
:
b[id.replace(this._reg,'')]);
},
_handleTabHook:function(src, target){
append:function(target, pre, base){
if(_.isHash(target) || _.isStr(target))
target=xui.create(target);
if(target['xui.UIProfile'])target=target.boxing();
var ns=this,f=arguments.callee.upper,isSvg,rendersvg;
target.each(function(prf){
isSvg=!!prf.box['xui.svg'];
if(isSvg&&prf.renderId){
prf.clearCache();
prf.$beforeDestroy["svgClear"]();
delete prf.renderId;
delete prf.rendered;
rendersvg=1;
}
f.call(ns, prf, null, pre, base, isSvg, ns.get(0)&&xui(ns.get(0)._canvas));
if(rendersvg){
prf.box._initAttr2UI(prf);
}
});
var ns=this;
ns.dialog.getRoot().setBlurTrigger("RAD.CustomDecoration2");
if(ns._targetPrf){
xui.arr.each(ns._attr,function(key){
ns.tg.updateCellByRowCol(key,'normal',{value:""},false,false);
ns.tg.updateCellByRowCol(key,'hover',{value:""},false,false);
ns.tg.updateCellByRowCol(key,'active',{value:""},false,false);
ns.tg.updateCellByRowCol(key,'focus',{value:""},false,false);
});
ns.tg.updateCellByRowCol('opacity','normal',{value:1},false,false);
ns.tg.updateCellByRowCol('opacity','hover',{value:1},false,false);
ns.tg.updateCellByRowCol('opacity','active',{value:1},false,false);
ns.tg.updateCellByRowCol('opacity','focus',{value:1},false,false);
ns.fireEvent('onFinished');
if(ns._targetPrf['xui.UIProfile'])
ns._targetPrf.getRoot().css({left:xui.Dom.HIDE_VALUE,top:xui.Dom.HIDE_VALUE,visibility:'hidden',display:'none','z-index':0});
ns._targetPrf=null;
profile.boxing().hide();
}
return false;
},
_tg_beforeComboPop:function(profile, cell, editorprf, pos, e, src){
xui.each(prf.$allPops,function(pop){
if(pop && !pop.$noDestroyByParentMenu){
if(pop['xui.UI'] && !pop.isEmpty() && !pop.isDestroyed()){
pop.destroy();
}else if(pop['xui.UIProfile'] && !pop.destroyed){
pop.__gc();
}else if(pop['xui.Dom'] && !pop.isEmpty() ){
pop.remove();
}
}
});
};
var fun = function(m){
if(m["xui.Module"]){
for(var i=0,l=m._nodes,o;i
var fun = function(m){
if(m["xui.Module"]){
for(var i=0,l=m._nodes,o;i
_getProfile:function(id,a,b){
return id && (typeof id=='string') && ((a=(b=xui.$cache.profileMap)[id])
?
a['xui.UIProfile']
?
a
:
(b=b[id.replace(this._reg,'')])
?
b
:
a
:
b[id.replace(this._reg,'')]);
},
_handleTabHook:function(src, target){