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.setUrl(url);
Rest.post(params) Rest.post(params)
.success(function (data) { .success(function (data) {
$rootScope.addedItem = data.id;
$state.go('notifications', {}, {reload: true}); $state.go('notifications', {}, {reload: true});
Wait('stop'); Wait('stop');
}) })

View File

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

View File

@@ -192,7 +192,7 @@ export default
msg: 'Call to ' + url + ' failed. DELETE returned status: ' + status }); 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({ Prompt({
hdr: 'Delete', hdr: 'Delete',
body: bodyHtml, body: bodyHtml,