This commit is contained in:
j 2013-05-30 11:38:33 +00:00
parent 7e9cc878dd
commit e56ac00a84
2 changed files with 2 additions and 2 deletions

View file

@ -350,7 +350,7 @@ def moveMedia(request):
if Item.objects.filter(itemId=data['item']).count() == 1:
i = Item.objects.get(itemId=data['item'])
else:
data['itemId'] = data['item'].pop().strip()
data['itemId'] = data.pop('item').strip()
if len(data['itemId']) != 7:
del data['itemId']
if 'director' in data and isinstance(data['director'], basestring):

View file

@ -486,7 +486,7 @@ pandora.ui.mediaView = function(options, self) {
pandora.api.moveMedia(data, function(result) {
if (
pandora.user.ui.item == self.options.id
&& pandora.user.ui.itemView == 'files'
&& pandora.user.ui.itemView == 'media'
) {
Ox.Request.clearCache(); // fixme: remove
if (self.$switch.value()) {