forked from 0x2620/pandora
fix upload, redirect to media not files view
This commit is contained in:
parent
0349ee6f8a
commit
b15dcf6223
1 changed files with 5 additions and 5 deletions
|
@ -177,12 +177,12 @@ pandora.ui.uploadDialog = function(data) {
|
|||
done: function(data) {
|
||||
if (data.progress == 1) {
|
||||
Ox.Request.clearCache();
|
||||
if (pandora.user.ui.item == item && pandora.user.ui.itemView == 'files') {
|
||||
if (pandora.user.ui.item == item && pandora.user.ui.itemView == 'media') {
|
||||
pandora.$ui.item.reload();
|
||||
} else {
|
||||
pandora.UI.set({
|
||||
item: item,
|
||||
itemView: 'files'
|
||||
itemView: 'media'
|
||||
});
|
||||
}
|
||||
delete pandora.firefogg;
|
||||
|
@ -222,12 +222,12 @@ pandora.ui.uploadDialog = function(data) {
|
|||
done: function(data) {
|
||||
if (data.progress == 1) {
|
||||
Ox.Request.clearCache();
|
||||
if (pandora.user.ui.item == item && pandora.user.ui.itemView == 'files') {
|
||||
if (pandora.user.ui.item == item && pandora.user.ui.itemView == 'media') {
|
||||
pandora.$ui.item.reload();
|
||||
} else {
|
||||
pandora.UI.set({
|
||||
item: item,
|
||||
itemView: 'files'
|
||||
itemView: 'media'
|
||||
});
|
||||
}
|
||||
that.close();
|
||||
|
@ -408,7 +408,7 @@ pandora.ui.uploadDialog = function(data) {
|
|||
}, function(result) {
|
||||
pandora.UI.set({
|
||||
item: result.data.items[0].id,
|
||||
itemView: 'files'
|
||||
itemView: 'media'
|
||||
});
|
||||
delete pandora.firefogg;
|
||||
that.close();
|
||||
|
|
Loading…
Reference in a new issue