From e56ac00a84aaf34af7fa2e7177983d1c7d628533 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 30 May 2013 11:38:33 +0000 Subject: [PATCH] typos --- pandora/archive/views.py | 2 +- static/js/pandora/mediaView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 2594ea07..d45b2b5e 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -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): diff --git a/static/js/pandora/mediaView.js b/static/js/pandora/mediaView.js index 6df58533..772999e5 100644 --- a/static/js/pandora/mediaView.js +++ b/static/js/pandora/mediaView.js @@ -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()) {