forked from 0x2620/pandora
reload after import
This commit is contained in:
parent
36572a048c
commit
4c1ab4b406
1 changed files with 5 additions and 3 deletions
|
@ -24,6 +24,7 @@ pandora.ui.importSubtitles = function(data) {
|
||||||
},
|
},
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
height: height,
|
height: height,
|
||||||
|
removeOnClose: true,
|
||||||
width: width,
|
width: width,
|
||||||
title: 'Import Subtitles',
|
title: 'Import Subtitles',
|
||||||
})
|
})
|
||||||
|
@ -68,7 +69,6 @@ pandora.ui.importSubtitles = function(data) {
|
||||||
layer: layer
|
layer: layer
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
if (result.status.code == 200) {
|
if (result.status.code == 200) {
|
||||||
pandora.$ui.editor && pandora.$ui.editor.addAnnotation(layer, result.data);
|
|
||||||
addAnnotation();
|
addAnnotation();
|
||||||
} else {
|
} else {
|
||||||
content.html('Failed');
|
content.html('Failed');
|
||||||
|
@ -76,8 +76,10 @@ pandora.ui.importSubtitles = function(data) {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
content.html('Done');
|
content.html('Done');
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache(pandora.user.ui.item);
|
||||||
//fixme, somehow reload timeline view here
|
pandora.$ui.contentPanel.replaceElement(
|
||||||
|
1, pandora.$ui.item = pandora.ui.item()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addAnnotation();
|
addAnnotation();
|
||||||
|
|
Loading…
Reference in a new issue