mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with menu, it not showing without jquery
This commit is contained in:
parent
e533b0f872
commit
ad4bddab5d
1 changed files with 6 additions and 4 deletions
|
|
@ -99,11 +99,11 @@ var CloudCommander, $;
|
|||
* @pPosition - position of menu
|
||||
*/
|
||||
CloudCommander.Menu.load = (function(pPosition){
|
||||
var lThis = this;
|
||||
var ljsLoad_f = function(){
|
||||
var lUISrc = this.dir + 'ui.position.js';
|
||||
var lMenuSrc = this.dir + 'contextMenu.js';
|
||||
var lUISrc = lThis.dir + 'ui.position.js';
|
||||
var lMenuSrc = lThis.dir + 'contextMenu.js';
|
||||
|
||||
var lThis = this;
|
||||
Util.jsload(lUISrc, function(){
|
||||
Util.jsload(lMenuSrc, lThis.show(lThis, pPosition));
|
||||
});
|
||||
|
|
@ -114,7 +114,9 @@ var CloudCommander, $;
|
|||
Util.cssLoad({
|
||||
src : lSrc,
|
||||
func : {
|
||||
onload: Util.bind(ljsLoad_f, this)
|
||||
onload: function(){
|
||||
Util.jqueryLoad(ljsLoad_f);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue