From b15dcf6223cebf023bd3087a0db1398423079160 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 3 Jul 2013 09:19:46 +0000 Subject: [PATCH] fix upload, redirect to media not files view --- static/js/pandora/uploadDialog.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/uploadDialog.js b/static/js/pandora/uploadDialog.js index 178b9d98..d5865fea 100644 --- a/static/js/pandora/uploadDialog.js +++ b/static/js/pandora/uploadDialog.js @@ -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();