// Code cleaning (backoffice javascript)
This commit is contained in:
@@ -110,16 +110,6 @@ $( document ).ready(function() {
|
||||
$('.expanded').removeClass('expanded');
|
||||
});
|
||||
|
||||
function animateGoTop() {
|
||||
if ($(window).scrollTop())
|
||||
{
|
||||
$('#go-top:hidden').stop(true, true).fadeIn();
|
||||
$('#go-top:hidden').removeClass('hide');
|
||||
}
|
||||
else
|
||||
$('#go-top').stop(true, true).fadeOut();
|
||||
}
|
||||
|
||||
$("#go-top").click(function() {
|
||||
$("html, body").animate({ scrollTop: 0 }, "slow");
|
||||
return false;
|
||||
@@ -129,4 +119,45 @@ $( document ).ready(function() {
|
||||
});
|
||||
animateGoTop();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
function animateGoTop() {
|
||||
if ($(window).scrollTop())
|
||||
{
|
||||
$('#go-top:hidden').stop(true, true).fadeIn();
|
||||
$('#go-top:hidden').removeClass('hide');
|
||||
}
|
||||
else
|
||||
$('#go-top').stop(true, true).fadeOut();
|
||||
}
|
||||
|
||||
function openModulesList()
|
||||
{
|
||||
if (!modules_list_loaded)
|
||||
{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url : admin_modules_link,
|
||||
async: true,
|
||||
data : {
|
||||
ajax : "1",
|
||||
controller : "AdminModules",
|
||||
action : "getTabModulesList",
|
||||
tab_modules_list : tab_modules_list,
|
||||
back_tab_modules_list : window.location.href
|
||||
},
|
||||
success : function(data)
|
||||
{
|
||||
$('#modules_list_container_tab').html(data).slideDown();
|
||||
$('#modules_list_loader').hide();
|
||||
modules_list_loaded = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#modules_list_container_tab').slideDown();
|
||||
$('#modules_list_loader').hide();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user