NIFI-313:

- Ensuring the total number of templates remain correct after a deletion.
This commit is contained in:
Matt Gilman 2015-06-02 11:57:07 -04:00
parent b7504ccb10
commit 89801675b4
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ nf.TemplatesTable = (function () {
var templatesGrid = $('#templates-table').data('gridInstance');
var templatesData = templatesGrid.getData();
templatesData.deleteItem(templateId);
// update the total number of templates
$('#total-templates').text(templatesData.getItems().length);
}).fail(nf.Common.handleAjaxError);
};