feature(view) rm afterShow, mv css to style

This commit is contained in:
coderaiser 2014-02-03 08:52:19 -05:00
parent 9621413fbc
commit 8a0d695d0a

View file

@ -20,8 +20,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Images.hideLoad();
Key.unsetBind();
},
afterShow : afterShow,
beforeClose : Key.setBind,
openEffect : 'none',
@ -31,14 +29,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
width : '100%',
minWidth : 0,
minHeight : 0,
helpers : {
overlay : {
css : {
'background' : 'rgba(255, 255, 255, 0.1)'
}
}
},
padding : 0
};
@ -71,10 +61,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Events.addKey(listener);
}
function afterShow() {
Element.focus();
}
/**
* function shows FancyBox
*/
@ -87,7 +73,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
if (pData) {
lElement = $(Element).append(pData);
lFunc = function() {
afterShow();
Util.exec(pCallBack);
};
@ -159,6 +144,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
'background: none;' +
'width: 0;' +
'height: 0' +
'}' +
'.fancybox-overlay {' +
'background: rgba(255, 255, 255, 0.1)' +
'}'
});