Merge "fix ajax row update polling decay,"

This commit is contained in:
Jenkins 2012-03-25 21:48:36 +00:00 committed by Gerrit Code Review
commit a5d5b4f288

View File

@ -127,11 +127,11 @@ var Horizon = function() {
$new_row.find(':checkbox').prop('checked', true);
}
$row.replaceWith($new_row);
// Reset decay constant.
$table.removeAttr('decay_constant');
}
},
complete: function (jqXHR, textStatus) {
// Reset decay constant.
$table.removeAttr('decay_constant');
// Revalidate the button check for the updated table
horizon.datatables.validate_button();
}