mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Remove reflow() function.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12505 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8655fd5fff
commit
305b9820e9
2 changed files with 1 additions and 18 deletions
|
|
@ -93,19 +93,6 @@ jQuery(function($){
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
// #content reflow
|
|
||||||
function reflow(){ // Browser bug fix & resize height
|
|
||||||
var $xBody = $('.x>.body');
|
|
||||||
var $xGnb = $xBody.find('>.gnb');
|
|
||||||
var $xContent = $xBody.children('#content.content');
|
|
||||||
$xContent.width('99.99%');
|
|
||||||
setTimeout(function(){
|
|
||||||
$xContent.removeAttr('style');
|
|
||||||
if($xGnb.height() > $xContent.height()){
|
|
||||||
$xContent.height($xGnb.height());
|
|
||||||
}
|
|
||||||
}, 100);
|
|
||||||
}
|
|
||||||
// GNB
|
// GNB
|
||||||
$.fn.gnb = function(){
|
$.fn.gnb = function(){
|
||||||
var $xBody = $('.x>.body');
|
var $xBody = $('.x>.body');
|
||||||
|
|
@ -133,7 +120,6 @@ jQuery(function($){
|
||||||
var hasWide = $xBody.hasClass('wide');
|
var hasWide = $xBody.hasClass('wide');
|
||||||
function openGNB(){
|
function openGNB(){
|
||||||
$xBody.removeClass('wide');
|
$xBody.removeClass('wide');
|
||||||
reflow();
|
|
||||||
}
|
}
|
||||||
if(!hasOpen && !hasActive && hasList){ // Down to open
|
if(!hasOpen && !hasActive && hasList){ // Down to open
|
||||||
$parent.addClass('open').find('>ul').slideDown(100);
|
$parent.addClass('open').find('>ul').slideDown(100);
|
||||||
|
|
@ -155,7 +141,6 @@ jQuery(function($){
|
||||||
if($(window).width() <= 980 && !$xGnb.hasClass('open')){
|
if($(window).width() <= 980 && !$xGnb.hasClass('open')){
|
||||||
$('#gnbNav').removeClass('ex');
|
$('#gnbNav').removeClass('ex');
|
||||||
}
|
}
|
||||||
reflow();
|
|
||||||
|
|
||||||
// remember status
|
// remember status
|
||||||
if($(this).parent('.gnb').hasClass('open')){
|
if($(this).parent('.gnb').hasClass('open')){
|
||||||
|
|
@ -169,7 +154,6 @@ jQuery(function($){
|
||||||
// Expert Menu Toggle
|
// Expert Menu Toggle
|
||||||
$xGnb.find('.exMenu>button').click(function(){
|
$xGnb.find('.exMenu>button').click(function(){
|
||||||
$('#gnbNav').toggleClass('ex');
|
$('#gnbNav').toggleClass('ex');
|
||||||
reflow();
|
|
||||||
|
|
||||||
// remember status
|
// remember status
|
||||||
if($('#gnbNav').hasClass('ex')){
|
if($('#gnbNav').hasClass('ex')){
|
||||||
|
|
@ -237,7 +221,6 @@ jQuery(function($){
|
||||||
$section.removeClass('collapse');
|
$section.removeClass('collapse');
|
||||||
$this.removeClass('x_icon-chevron-down').addClass('x_icon-chevron-up');
|
$this.removeClass('x_icon-chevron-down').addClass('x_icon-chevron-up');
|
||||||
}
|
}
|
||||||
reflow();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Alert Closer
|
// Alert Closer
|
||||||
|
|
|
||||||
2
modules/admin/tpl/js/admin.min.js
vendored
2
modules/admin/tpl/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue