Fix bug with import status of podcst episodes
This commit is contained in:
parent
c7dcd4f00a
commit
26c9a19836
5 changed files with 31 additions and 94 deletions
|
@ -1486,13 +1486,6 @@ var AIRTIME = (function(AIRTIME) {
|
|||
click: function () {
|
||||
var data = [], episodes = mod.podcastEpisodeTableWidget.getSelectedRows();
|
||||
$.each(episodes, function () {
|
||||
// If the file exists but the ftype is empty, the file hasn't finished being
|
||||
// analyzed. This forces the deletion, but causes the analyzer to throw an error...
|
||||
// I'm opting for more consistent behaviour (if it looks like a file is imported,
|
||||
// the user should be able to delete it, rather than it seeming like the delete
|
||||
// button did nothing), but maybe the answer is to add an additional state that
|
||||
// checks if the file is finished being analyzed? -- Duncan FIXME
|
||||
if (this.file.ftype === "") { this.file.ftype = "audioclip"; }
|
||||
data.push({id: this.file.id, type: this.file.ftype});
|
||||
});
|
||||
mod.fnDeleteItems(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue