1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00

New: show indicator when deleting a series

This commit is contained in:
Mark McDowall 2014-08-31 19:54:12 -07:00
parent 47b132360c
commit 7081bd189e
2 changed files with 4 additions and 1 deletions

View file

@ -40,6 +40,7 @@
</div>
</div>
<div class="modal-footer">
<span class="indicator x-indicator"><i class="icon-spinner icon-spin"></i></span>
<button class="btn" data-dismiss="modal">cancel</button>
<button class="btn btn-danger x-confirm-delete">delete</button>
</div>

View file

@ -13,12 +13,14 @@ define(
},
ui: {
deleteFiles: '.x-delete-files'
deleteFiles : '.x-delete-files',
indicator : '.x-indicator'
},
removeSeries: function () {
var self = this;
var deleteFiles = this.ui.deleteFiles.prop('checked');
this.ui.indicator.show();
this.model.destroy({
data: { 'deleteFiles': deleteFiles },