function OnPopUpHandler index item index function OnCloseUpHandler fun

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function OnPopUpHandler(s, e) {
index = e.item.index;
};
function OnCloseUpHandler(s, e) {
};
$(function () {
index = null;
var isSticky = false;
var $menuBar = $('#menu_container');
if ($menuBar.length) {
var stickyNavTop = $menuBar.offset().top,
stickyNav = function () {
if ($(window).scrollTop() > stickyNavTop) {
$menuBar.addClass('sticky-nav');
if (!isSticky) {
ASPxClientMenuBase.GetMenuCollection().HideAll();
if (index != null) {
menu.ShowSubMenu(index);
}
}
isSticky = true;
} else {
$menuBar.removeClass('sticky-nav');
if (isSticky) {
ASPxClientMenuBase.GetMenuCollection().HideAll();
}
isSticky = false;
}
};
$(window).scroll(function () { stickyNav(); menu.AdjustControl(); });
stickyNav();
}
});