From 52f95b3ca45678633d06100c0ec1f5d14be0fef7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 6 Nov 2011 20:59:50 +0100 Subject: [PATCH 1/2] items have no statusbar --- static/js/pandora/clipList.js | 2 +- static/js/pandora/item.js | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index de563dd31..6ac4aaf2c 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -91,7 +91,7 @@ pandora.ui.clipList = function(videoRatio) { .bindEvent({ init: function(data) { // fixme: status needs an overhaul - if (!ui.item) { + if (!ui.item && pandora.$ui.total) { pandora.$ui.total.html(pandora.ui.status('total', data)); } }, diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index c1ad45e29..71d2b2c5a 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -360,12 +360,6 @@ pandora.ui.item = function() { }) ); } - - if (result.data) { - var director = result.data.director ? ' ('+result.data.director.join(', ') + ')' : ''; - pandora.$ui.total.html(result.data.title + director); - } - }); return that; From 66d3693b907a07c0209f85e29b87a4a8811e6136 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 6 Nov 2011 21:23:58 +0100 Subject: [PATCH 2/2] add index to log --- pandora/log/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/log/models.py b/pandora/log/models.py index 14eb15280..61b176f1c 100644 --- a/pandora/log/models.py +++ b/pandora/log/models.py @@ -9,7 +9,7 @@ import ox import managers class Log(models.Model): - created = models.DateTimeField(auto_now_add=True) + created = models.DateTimeField(auto_now_add=True, db_index=True) modified = models.DateTimeField(auto_now=True) user = models.ForeignKey(User, default=None, blank=True, null=True) url = models.CharField(max_length=1000, default='')