mirror of https://github.com/Radarr/Radarr
New: show indicator when deleting a series
This commit is contained in:
parent
47b132360c
commit
7081bd189e
|
@ -40,6 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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" data-dismiss="modal">cancel</button>
|
||||||
<button class="btn btn-danger x-confirm-delete">delete</button>
|
<button class="btn btn-danger x-confirm-delete">delete</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,12 +13,14 @@ define(
|
||||||
},
|
},
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
deleteFiles: '.x-delete-files'
|
deleteFiles : '.x-delete-files',
|
||||||
|
indicator : '.x-indicator'
|
||||||
},
|
},
|
||||||
|
|
||||||
removeSeries: function () {
|
removeSeries: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
var deleteFiles = this.ui.deleteFiles.prop('checked');
|
var deleteFiles = this.ui.deleteFiles.prop('checked');
|
||||||
|
this.ui.indicator.show();
|
||||||
|
|
||||||
this.model.destroy({
|
this.model.destroy({
|
||||||
data: { 'deleteFiles': deleteFiles },
|
data: { 'deleteFiles': deleteFiles },
|
||||||
|
|
Loading…
Reference in New Issue