Notification List should not highlight row item on save

This commit is contained in:
Jared Tabor 2016-05-06 16:03:31 -04:00
parent fefa6998aa
commit 47b04f3a6f
3 changed files with 2 additions and 4 deletions

View File

@ -111,7 +111,6 @@ export default
Rest.setUrl(url);
Rest.post(params)
.success(function (data) {
$rootScope.addedItem = data.id;
$state.go('notifications', {}, {reload: true});
Wait('stop');
})

View File

@ -155,8 +155,7 @@ export default
Wait('start');
Rest.setUrl(url+ id+'/');
Rest.put(params)
.success(function (data) {
$rootScope.addedItem = data.id;
.success(function () {
$state.go('notifications', {}, {reload: true});
Wait('stop');
})

View File

@ -192,7 +192,7 @@ export default
msg: 'Call to ' + url + ' failed. DELETE returned status: ' + status });
});
};
var bodyHtml = '<div class="Prompt-bodyQuery">Are you sure you want to delete the inventory below?</div><div class="Prompt-bodyTarget">' + name + '</div>';
var bodyHtml = '<div class="Prompt-bodyQuery">Are you sure you want to delete the notification template below?</div><div class="Prompt-bodyTarget">' + name + '</div>';
Prompt({
hdr: 'Delete',
body: bodyHtml,