reload after import

This commit is contained in:
j 2012-02-14 19:01:30 +00:00
parent 36572a048c
commit 4c1ab4b406

View file

@ -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();