Menu selector

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12449 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2012-12-24 05:22:45 +00:00
parent 8a8b2f5400
commit 67bdda04ec
4 changed files with 362 additions and 285 deletions

View file

@ -1154,39 +1154,7 @@ jQuery(function($){
return contents;
})(this[0]));
}
var _hide = $.fn.hide;
$.fn.hide = function(speed, easing, callback, htOpt) {
//$(this).trigger('hide', [htOpt]);
$(this).find('.active').removeClass('active');
var sId = $(this).attr("id");
if($(this).hasClass("col")){
$(this).next().hide(speed, easing, callback, htOpt);
if(sId){
$(this).parent().find('a[href="#'+sId+'"]').parent('li.active').removeClass('active');
}
}
return _hide.apply(this, arguments);
}
var _show = $.fn.show;
$.fn.show = function(speed, easing, callback, htOpt) {
//$(this).trigger('show', [htOpt]);
if($(this).hasClass("col")){
$(this).next().hide(speed, easing, callback, htOpt);
setTimeout(scrollToRight, 0);
//scrollToRight();
}
return _show.apply(this, arguments);
}
$.fn.prevUntilAnd = function(){
var $result = $.fn.prevUntil.apply(this, arguments);