HTML5 data attributes for edit/delete

This commit is contained in:
Mark McDowall 2012-10-11 01:02:34 -07:00
commit 75090e77bc
3 changed files with 5 additions and 8 deletions

View file

@ -67,8 +67,8 @@ $("#seriesDelete").dialog({
$(".editButton").live('click', function () {
//Get the SeriesId and Title
var seriesId = parseInt($(this).attr("value"));
var title = $(this).attr("rel");
var seriesId = parseInt($(this).attr("data-series-id"));
var title = $(this).attr("data-series-title");
//Set the title of the dialog
$("#seriesEditor").dialog("option", "title", title);