Beginning of Add New Profile button

This commit is contained in:
Mark McDowall 2012-12-04 17:21:54 -08:00
commit ae8db51839
7 changed files with 81 additions and 20 deletions

View file

@ -1,17 +1,5 @@
var deleteQualityProfileUrl = '../../Settings/DeleteQualityProfile';
$(document).on("click", "#addProfile", function (event) {
$.ajax({
url: this.href,
cache: false,
success: function (html) {
$("#profiles").append(html);
}
});
event.preventDefault();
});
$(document).on('click', '.delete-profile', function (e) {
var container = $(this).closest('.profileSection');
var id = $(container).attr('data-profile-id');