remove attr("data-

This commit is contained in:
Oliver Gorwits
2013-08-30 23:37:55 +01:00
parent 626c8c3fdd
commit e4c3978ba8

View File

@@ -104,12 +104,12 @@
,url: uri_base + '/ajax/control/admin/' + mode ,url: uri_base + '/ajax/control/admin/' + mode
,data: tr.find('input[data-form="' + mode + '"],textarea[data-form="' + mode + '"]').serializeArray() ,data: tr.find('input[data-form="' + mode + '"],textarea[data-form="' + mode + '"]').serializeArray()
,success: function() { ,success: function() {
toastr.info('Queued '+ mode +' for device '+ tr.attr('data-for-device')); toastr.info('Queued '+ mode +' for device '+ tr.data('for-device'));
} }
// skip any error reporting for now // skip any error reporting for now
// TODO: fix sanity_ok in Netdisco Web // TODO: fix sanity_ok in Netdisco Web
,error: function() { ,error: function() {
toastr.error('Failed to queue '+ mode +' for device '+ tr.attr('data-for-device')); toastr.error('Failed to queue '+ mode +' for device '+ tr.data('for-device'));
} }
}); });
}); });