Fixed bug where marking albums as wanted on the album page resulted in it getting marked twice - and then loading the artist subhead instead of album subhead

This commit is contained in:
rembo10
2012-06-26 13:50:55 +05:30
parent e26dabbeca
commit 39d1afc089

View File

@@ -153,7 +153,8 @@ function initActions() {
$("#subhead_menu #menu_link_scan").button({ icons: { primary: "ui-icon-search"} });
}
function refreshSubmenu(url) {
function refreshSubmenu() {
var url = $(location).attr('href');
$("#subhead_container").load(url + " #subhead_menu",function(){
initActions();
});
@@ -303,7 +304,7 @@ function doAjaxCall(url,elem,reload,form) {
feedback.fadeOut(function(){
feedback.removeClass('success');
});
if ( reload == true ) refreshSubmenu(url);
if ( reload == true ) refreshSubmenu();
if ( reload == "table") {
console.log('refresh'); refreshTable();
}