Merge branch 'indexers'

Fixed indexer validation after merge.
Quality js moved to on() instead of live()
pull/3113/head
Mark McDowall 13 years ago
parent 1a5b20a48b
commit 991ba4ff0a

@ -4,7 +4,7 @@
margin-left: 15px;
}
#addItem
#addNewznab
{
text-decoration: none;
font-size: 16px;

@ -8,7 +8,7 @@
overflow: auto;
}
#addItem
#addProfile
{
text-decoration: none;
font-size:16px;

@ -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';

@ -131,7 +131,7 @@
<br />
<p>
</p>
<a id="addItem" href="@Url.Action("AddNewznabProvider", "Settings")">
<a id="addNewznab" href="@Url.Action("AddNewznabProvider", "Settings")">
<img src="../../Content/Images/Plus.png" alt="Add Newznab Provider" width="20px"
height="20px" />
Add Newznab Provider</a>
@ -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")';

@ -17,7 +17,7 @@
<a href="#">Profiles</a></h3>
<div id="profileContainer">
<div id="profileHeader">
<a id="addItem" href="@Url.Action("AddProfile", "Settings")">
<a id="addProfile" href="@Url.Action("AddProfile", "Settings")">
<img src="../../Content/Images/Plus.png" alt="Add New Profile" width="20px" height="20px" />
Add New Profile</a>
</div>

Loading…
Cancel
Save