mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-28 21:11:01 +00:00
Fixed errors appearing in log
- Fixed Uncaught TypeError: Cannot read property 'removeChild' of null error - Fixed Uncaught TypeError: Cannot read property 'tweensContainer' of undefined first error was a problem with toasts, and how they were removed second error was problem with playlist tabs, and trying to set the selected_tab after the tabscontainer was removed
This commit is contained in:
@@ -159,7 +159,9 @@ var Admin = {
|
||||
}
|
||||
}
|
||||
//List.dragging(true);
|
||||
$('ul.playlist-tabs-loggedIn').tabs('select_tab', $(".playlist-tabs li a.active").attr("href").substring(1));
|
||||
if($(".tabs").length > 0 && !changing_to_frontpage) {
|
||||
$('ul.playlist-tabs-loggedIn').tabs('select_tab', $(".playlist-tabs li a.active").attr("href").substring(1));
|
||||
}
|
||||
},
|
||||
|
||||
conf: function(msg) {
|
||||
@@ -236,11 +238,11 @@ var Admin = {
|
||||
|
||||
//List.dragging(false);
|
||||
|
||||
if($("ul.playlist-tabs-loggedIn .playlist-tab-links.active").attr("href") == "#suggestions")
|
||||
if($("ul.playlist-tabs-loggedIn .playlist-tab-links.active").attr("href") == "#suggestions" && $(".tabs").length > 0 && !changing_to_frontpage)
|
||||
{
|
||||
$('ul.playlist-tabs').tabs('select_tab', 'wrapper');
|
||||
$('ul.playlist-tabs-loggedIn').tabs('select_tab', 'wrapper');
|
||||
} else {
|
||||
} else if($(".tabs").length > 0 && !changing_to_frontpage){
|
||||
$('ul.playlist-tabs').tabs('select_tab', $(".playlist-tabs-loggedIn li a.active").attr("href").substring(1));
|
||||
}
|
||||
$("#admin-lock").removeClass("clickable");
|
||||
|
||||
Reference in New Issue
Block a user