cosmetic changes
This commit is contained in:
parent
8e40262ab1
commit
dc71040e2a
1 changed files with 10 additions and 11 deletions
|
@ -78,9 +78,9 @@ pandora.ui.uploadPDFDialog = function(options) {
|
||||||
$progress.options({progress: progress});
|
$progress.options({progress: progress});
|
||||||
},
|
},
|
||||||
callback: function(result) {
|
callback: function(result) {
|
||||||
if(result.progress == 1) {
|
if (result.progress == 1) {
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache();
|
||||||
//fixme reload text view here
|
// fixme reload text view here
|
||||||
that.close();
|
that.close();
|
||||||
} else {
|
} else {
|
||||||
$content.html("failed: " + result.responseText);
|
$content.html("failed: " + result.responseText);
|
||||||
|
@ -88,11 +88,10 @@ pandora.ui.uploadPDFDialog = function(options) {
|
||||||
}
|
}
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
progress: function(data) {
|
progress: function(data) {
|
||||||
var progress = data.progress || 0;
|
$progress.options({progress: data.progress || 0});
|
||||||
$progress.options({progress: progress});
|
|
||||||
},
|
},
|
||||||
done: function(data) {
|
done: function(data) {
|
||||||
if(data.progress == 1) {
|
if (data.progress == 1) {
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache();
|
||||||
pandora.$ui.mainPanel.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
pandora.$ui.mainPanel.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
||||||
that.close();
|
that.close();
|
||||||
|
|
Loading…
Reference in a new issue