fix error
This commit is contained in:
parent
2230710658
commit
380f8916d0
|
@ -864,11 +864,13 @@ function transdate(){
|
|||
$('.modules-menu-level-1').css('right','')
|
||||
$('.modules-menu-level-1').css('width','')
|
||||
}else{
|
||||
calc_menu_flag = true;
|
||||
var width = $('#main-nav').outerWidth();
|
||||
var right = $(window).width() - $('#main-nav').offset().left - width;
|
||||
$('.modules-menu-level-1').css('right',right)
|
||||
$('.modules-menu-level-1').css('width',width)
|
||||
if (width>50){
|
||||
calc_menu_flag = true;
|
||||
$('.modules-menu-level-1').css('right',right);
|
||||
$('.modules-menu-level-1').css('width',width);
|
||||
}
|
||||
}
|
||||
}
|
||||
$(window).resize(function() {
|
||||
|
@ -888,9 +890,7 @@ function transdate(){
|
|||
}
|
||||
});
|
||||
$(window).load(function(){
|
||||
if($('#main-nav').outerWidth()>50){
|
||||
calc_menu_pos();
|
||||
}
|
||||
calc_menu_pos();
|
||||
$("iframe[src*='google']").attr('title','googleOauth');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue