mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
reflow() function bug fix.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12049 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d03f2802e1
commit
0f5ebdcb80
2 changed files with 14 additions and 12 deletions
|
|
@ -92,10 +92,22 @@ jQuery(function($){
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
// #content reflow
|
||||||
|
function reflow(){ // Browser bug fix & resize height
|
||||||
|
var $xBody = $('.x>.xin>.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>.xin>.body');
|
var $xBody = $('.x>.xin>.body');
|
||||||
var $xContent = $xBody.children('#content.content');
|
|
||||||
var $xGnb = $xBody.find('>.gnb');
|
var $xGnb = $xBody.find('>.gnb');
|
||||||
var $xGnb_li = $xGnb.find('>ul>li');
|
var $xGnb_li = $xGnb.find('>ul>li');
|
||||||
// Add icon
|
// Add icon
|
||||||
|
|
@ -107,16 +119,6 @@ jQuery(function($){
|
||||||
var parentIndex = $xGnb_li.find('>ul>li.active_').closest('li.active').attr('data-index');
|
var parentIndex = $xGnb_li.find('>ul>li.active_').closest('li.active').attr('data-index');
|
||||||
$xGnb_li.find('>ul>li.active_').clone().addClass('active').attr('data-index', parentIndex).prependTo('#gnbNav').find('>a').prepend('<i />');
|
$xGnb_li.find('>ul>li.active_').clone().addClass('active').attr('data-index', parentIndex).prependTo('#gnbNav').find('>a').prepend('<i />');
|
||||||
// Index
|
// Index
|
||||||
// GNB Hover toggle
|
|
||||||
function reflow(){ // Browser bug fix & resize height
|
|
||||||
$xContent.width('99.99%');
|
|
||||||
setTimeout(function(){
|
|
||||||
$xContent.removeAttr('style');
|
|
||||||
if($xGnb.height() > $xContent.height()){
|
|
||||||
$xContent.height($xGnb.height());
|
|
||||||
}
|
|
||||||
}, 100);
|
|
||||||
}
|
|
||||||
// GNB Click toggle
|
// GNB Click toggle
|
||||||
$xGnb_li.find('ul').prev('a')
|
$xGnb_li.find('ul').prev('a')
|
||||||
.bind('click focus', function(){
|
.bind('click focus', function(){
|
||||||
|
|
|
||||||
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