diff --git a/NzbDrone.Web/Content/IndexerSettings.css b/NzbDrone.Web/Content/IndexerSettings.css
index 6a4adf284..e9772fc09 100644
--- a/NzbDrone.Web/Content/IndexerSettings.css
+++ b/NzbDrone.Web/Content/IndexerSettings.css
@@ -4,7 +4,7 @@
margin-left: 15px;
}
-#addItem
+#addNewznab
{
text-decoration: none;
font-size: 16px;
diff --git a/NzbDrone.Web/Content/QualitySettings.css b/NzbDrone.Web/Content/QualitySettings.css
index 408ef02aa..4d11d82d1 100644
--- a/NzbDrone.Web/Content/QualitySettings.css
+++ b/NzbDrone.Web/Content/QualitySettings.css
@@ -8,7 +8,7 @@
overflow: auto;
}
-#addItem
+#addProfile
{
text-decoration: none;
font-size:16px;
diff --git a/NzbDrone.Web/Scripts/NzbDrone/qualitySettings.js b/NzbDrone.Web/Scripts/NzbDrone/qualitySettings.js
index 765293ce5..f77751beb 100644
--- a/NzbDrone.Web/Scripts/NzbDrone/qualitySettings.js
+++ b/NzbDrone.Web/Scripts/NzbDrone/qualitySettings.js
@@ -1,15 +1,15 @@
var deleteQualityProfileUrl = '../../Settings/DeleteQualityProfile';
-$("#addItem").live('click', function () {
+$(document).on("click", "#addProfile", function (event) {
$.ajax({
url: this.href,
cache: false,
success: function (html) {
$("#profiles").append(html);
-
}
});
- return false;
+
+ event.preventDefault();
});
function deleteProfile(id) {
@@ -66,14 +66,14 @@ function getCleanId(obj) {
return parentProfileSection.children('.cleanId').val();
}
-$(".profileName_textbox").live('keyup', function () {
+$(document).on('keyup', '.profileName_textbox', function () {
var value = $(this).val();
var profileId = getProfileId(this);
$("#title_" + profileId).text(value);
renameOption(value, profileId);
}).keyup();
-$('.quality-selectee').live('click', function () {
+$(document).on('click', '.quality-selectee', function () {
var id = $(this).attr('id');
var cleanId = getCleanId(this);
var cutoff = '#' + cleanId + '_Cutoff';
diff --git a/NzbDrone.Web/Views/Settings/Indexers.cshtml b/NzbDrone.Web/Views/Settings/Indexers.cshtml
index e1aabd36c..484caac0b 100644
--- a/NzbDrone.Web/Views/Settings/Indexers.cshtml
+++ b/NzbDrone.Web/Views/Settings/Indexers.cshtml
@@ -131,7 +131,7 @@
- + Add Newznab Provider @@ -242,7 +242,7 @@ } //Newznab - $("#addItem").live('click', function () { + $("#addNewznab").on('click', function (event) { $.ajax({ url: this.href, cache: false, @@ -250,7 +250,8 @@ $("#newznabProviders").append(html); } }); - return false; + event.preventDefault(); + //event.stopPropagation(); }); var deleteNewznabProviderUrl = '@Url.Action("DeleteNewznabProvider", "Settings")'; diff --git a/NzbDrone.Web/Views/Settings/Quality.cshtml b/NzbDrone.Web/Views/Settings/Quality.cshtml index 37e0b8367..36b089709 100644 --- a/NzbDrone.Web/Views/Settings/Quality.cshtml +++ b/NzbDrone.Web/Views/Settings/Quality.cshtml @@ -17,7 +17,7 @@ Profiles