reload editor after transcribtion is ready
This commit is contained in:
parent
ef680080cf
commit
0748265fe6
1 changed files with 11 additions and 0 deletions
|
|
@ -454,6 +454,17 @@ pandora.ui.editor = function(data) {
|
||||||
$dialog.close();
|
$dialog.close();
|
||||||
pandora.api.transcribeAudio({
|
pandora.api.transcribeAudio({
|
||||||
item: pandora.user.ui.item
|
item: pandora.user.ui.item
|
||||||
|
}, function(result) {
|
||||||
|
if (result.data.taskId) {
|
||||||
|
pandora.wait(result.data.taskId, function(result) {
|
||||||
|
Ox.Request.clearCache();
|
||||||
|
if (ui.item == data.id && ui.itemView == 'editor') {
|
||||||
|
pandora.$ui.contentPanel.replaceElement(
|
||||||
|
1, pandora.$ui.item = pandora.ui.item()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
pandora.ui.tasksDialog().open();
|
pandora.ui.tasksDialog().open();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue