mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 09:21:57 +00:00
Remove Div when deleting instead of just hiding it (so it's not submitted when calling save).
This commit is contained in:
parent
822719bdaf
commit
4e5c354cd6
1 changed files with 2 additions and 8 deletions
|
@ -76,17 +76,11 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// $("a.deleteRow").live("click", function () {
|
|
||||||
// $(this).parents("div.userProfileSectionEditor:first").remove();
|
|
||||||
// return false;
|
|
||||||
// });
|
|
||||||
|
|
||||||
var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")';
|
var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")';
|
||||||
|
|
||||||
function deleteProfile(id) {
|
function deleteProfile(id) {
|
||||||
//$(this).parents("div.userProfileSectionEditor:first").remove();
|
|
||||||
sendToServer(id);
|
sendToServer(id);
|
||||||
$("#div_" + id).hide();
|
$("#div_" + id).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendToServer(id) {
|
function sendToServer(id) {
|
||||||
|
@ -95,7 +89,7 @@
|
||||||
url: deleteQualityProfileUrl,
|
url: deleteQualityProfileUrl,
|
||||||
data: jQuery.param({ profileId: id }),
|
data: jQuery.param({ profileId: id }),
|
||||||
error: function (req, status, error) {
|
error: function (req, status, error) {
|
||||||
alert("Sorry! We could not add " + path + " at this time. " + error);
|
alert("Sorry! We could not delete your Profile at this time. " + error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue