Fixing award deletion

selenium-screenshot-testing
Kevin Chung 2016-11-03 23:48:49 -04:00
parent 19ed51421a
commit 332bd656fd
1 changed files with 2 additions and 1 deletions

View File

@ -287,9 +287,10 @@
var action = '{{ request.script_root }}/admin/wrong_keys/' + key_id + '/delete';
} else if (type == 'award-row') {
var title = 'Delete Award';
var award_id = elem.find('.chal').attr('id');
var description = "<span>Are you sure you want to delete the " +
"<strong>{0}</strong> award?</span>".format(chal_name);
var action = '{{ request.script_root }}/admin/awards/{0}/delete'.format(chal_name);
var action = '{{ request.script_root }}/admin/awards/{0}/delete'.format(award_id);
}
var msg = {