From 98119eb4004bc3968779bfbc16aad8fa100c047f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Nov 2011 12:56:09 +0100 Subject: [PATCH] director is array --- pandora/templates/index.html | 2 +- static/js/pandora/filesView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/templates/index.html b/pandora/templates/index.html index 82091243..f6929f40 100644 --- a/pandora/templates/index.html +++ b/pandora/templates/index.html @@ -1,8 +1,8 @@ - {{settings.SITENAME}} + {{settings.SITENAME}} diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index 2def4ca6..219ca63f 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -288,7 +288,7 @@ pandora.ui.filesView = function(options, self) { Ox.map(['id', 'title', 'director', 'year'], function(key) { var value = self['$' + key + 'Input'].options('value'); if(value.length) { - conditions[key] = value; + conditions[key] = key == 'director' ? value.split(', ') : value; } }); pandora.api.findId(conditions, function(result) {