GNB sub-menu highlight UI added.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12029 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-01 08:51:08 +00:00
parent cf8a0b30ff
commit b82124b896
4 changed files with 7 additions and 5 deletions

View file

@ -99,13 +99,13 @@ jQuery(function($){
var $xGnb = $xBody.find('>.gnb');
var $xGnb_li = $xGnb.find('>ul>li');
// Add icon
$xGnb_li.find('a').prepend('<i />');
$xGnb_li.find('>a').prepend('<i />');
// Active Submenu Copy
$xGnb_li.each(function(index){
$(this).attr('data-index', index+1);
});
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');
$xGnb_li.find('>ul>li.active_').clone().addClass('active').attr('data-index', parentIndex).prependTo('#gnbNav').find('>a').prepend('<i />');
// Index
// GNB Hover toggle
function reflow(){ // Browser bug fix & resize height

File diff suppressed because one or more lines are too long