![]() |
Loading |
with title // This code is based on the one from jquery.js (283) $("a[title]").each(function() { $(this).tooltip({positionCenter:true,track:true,delay:0,showURL:false,fade:250,extraClass:'op-state-active op-corner-all normalize pad-2-5 bac-50-50'}); }); // Dashboard: Auto-Load the first menu entry if(site.length >= 16 && site.substr(-16) == "ajxDashboard.php") //ajxDashboard.php { document.getElementById("menuItem_1").click(); formerSelectedMenuItem = "menuItem_1"; //AjaxLoad("engine/pages/dashboard_accountSummary.php", "mainContent"); //formerSelectedMenuItem = 'menuItem_1'; } // menu_products_blockedports if(site.length >= 15 && site.substr(-15) == "ajxProducts.php") //ajxDashboard.php { document.getElementById("menu_products_blockedports").click(); //AjaxLoad("engine/pages/dashboard_accountSummary.php", "mainContent"); formerSelectedMenuItem = 'menu_products_blockedports'; $.getScript(site, function() { //alert('Load was performed.'); }); } // General size fix: $('#w2c').height($('#inner-content').height()+40); //ResizeMainContent(); }); document.getElementById(sender).style.color = "#327E04"; currentPage = sender; } function AjaxLoadSite(site, target) { $('#main-content').animate({opacity:0.0}, {duration:20,queue:false}); ajaxLoaded = false; window.setTimeout("AjaxLoad2_Loader()", 500); document.getElementById(currentPage).style.color = "#3C87CB"; //$("#"+target).load(site); $.get(site, function(data, textStatus, jqHXR) { ajaxLoaded = true; //document.getElementById(target).innerHTML = data; $("#" + target).load(site); document.getElementById("main-loader").style.display = "none"; document.getElementById("main-content").style.display = "block"; $('#main-loader').animate({opacity:0.0}, {duration:20,queue:false}); $('#main-content').animate({opacity:1}, {duration:500,queue:false}); // Re-Bind tooltips to each with title // This code is based on the one from jquery.js (283) $("a[title]").each(function() { $(this).tooltip({positionCenter:true,track:true,delay:0,showURL:false,fade:250,extraClass:'op-state-active op-corner-all normalize pad-2-5 bac-50-50'}); }); // Dashboard: Auto-Load the first menu entry if(site.length >= 16 && site.substr(-16) == "ajxDashboard.php") //ajxDashboard.php { alert("do you think so?"); //document.getElementById("menuItem_1").click(); //AjaxLoad("engine/pages/dashboard_accountSummary.php", "mainContent"); } // General size fix: $('#w2c').height($('#inner-content').height()+40); //ResizeMainContent(); }); document.getElementById(sender).style.color = "#327E04"; currentPage = sender; } function AjaxLoad2_Loader() { if(ajaxLoaded == false) { document.getElementById("main-loader").style.display = "block"; document.getElementById("main-content").style.display = "none"; $('#main-loader').animate({opacity:1}, {duration:1000,queue:false}); } }