fixed journal update method

This commit is contained in:
Rueshyna 2012-11-29 16:49:41 +08:00
commit 75539d35f0
1 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,9 @@ var orbitDesktop = function(dom){
$('body').on({ $('body').on({
click: function(){ click: function(){
if(!$(this).hasClass('active')){
o.sub_menu_item($(this)); o.sub_menu_item($(this));
}
return false; return false;
}, },
mouseenter: function(){ mouseenter: function(){
@ -261,7 +263,6 @@ var orbitDesktop = function(dom){
} }
} }
this.sub_menu_item = function(dom){ this.sub_menu_item = function(dom){
if(!dom.hasClass('active')){
var sub_data_method = dom.attr('callback-method'); var sub_data_method = dom.attr('callback-method');
if(sub_data_method){ if(sub_data_method){
$("div[container=true]").load(dom.attr("href"),function(){ $("div[container=true]").load(dom.attr("href"),function(){
@ -279,7 +280,6 @@ var orbitDesktop = function(dom){
$('*[content-type=menu] a').removeClass('thmc1 thmtxt active'); $('*[content-type=menu] a').removeClass('thmc1 thmtxt active');
dom.addClass('thmc1 thmtxt active'); dom.addClass('thmc1 thmtxt active');
} }
}
this.initializeDesktop = function(target,url,cache){ //this is for initializing main desktops that are sections and tiles this.initializeDesktop = function(target,url,cache){ //this is for initializing main desktops that are sections and tiles
if(!target)target = "desktop"; if(!target)target = "desktop";