|
|
@ -481,6 +481,7 @@ define([
|
|
|
|
var showSubmenu = function () {
|
|
|
|
var showSubmenu = function () {
|
|
|
|
clearTimeout(timeoutId);
|
|
|
|
clearTimeout(timeoutId);
|
|
|
|
$sub.toggleClass("left", $el.offset().left + $el.outerWidth() + $sub.outerWidth() > $(window).width());
|
|
|
|
$sub.toggleClass("left", $el.offset().left + $el.outerWidth() + $sub.outerWidth() > $(window).width());
|
|
|
|
|
|
|
|
$el.siblings().find(".dropdown-menu").hide();
|
|
|
|
$sub.show();
|
|
|
|
$sub.show();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var hideSubmenu = function () {
|
|
|
|
var hideSubmenu = function () {
|
|
|
@ -488,6 +489,7 @@ define([
|
|
|
|
$sub.removeClass("left");
|
|
|
|
$sub.removeClass("left");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var mouseOutSubmenu = function () {
|
|
|
|
var mouseOutSubmenu = function () {
|
|
|
|
|
|
|
|
// don't hide immediately the submenu
|
|
|
|
timeoutId = setTimeout(hideSubmenu, 100);
|
|
|
|
timeoutId = setTimeout(hideSubmenu, 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Add submenu expand icon
|
|
|
|
// Add submenu expand icon
|
|
|
@ -508,7 +510,6 @@ define([
|
|
|
|
hideSubmenu();
|
|
|
|
hideSubmenu();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
$el.siblings().find(".dropdown-menu").hide();
|
|
|
|
|
|
|
|
showSubmenu();
|
|
|
|
showSubmenu();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|