Delete added to indexers

This commit is contained in:
Mark McDowall 2013-06-27 00:37:39 -07:00
commit 0ffb72bca1
7 changed files with 62 additions and 7 deletions

View file

@ -1,9 +1,9 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>Remove: {{name}}</h3>
<h3>Delete Notification</h3>
</div>
<div class="modal-body">
<p>Are you sure you want to remove '{{name}}'?</p>
<p>Are you sure you want to delete '{{name}}'?</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal">cancel</button>

View file

@ -4,10 +4,10 @@ define(['app', 'marionette'], function (App, Marionette) {
template: 'Settings/Notifications/DeleteTemplate',
events: {
'click .x-confirm-delete': 'removeNotification'
'click .x-confirm-delete': '_removeNotification'
},
removeNotification: function () {
_removeNotification: function () {
this.model.destroy({
wait : true,
success: function () {