director is array

This commit is contained in:
j 2011-11-22 12:56:09 +01:00
parent 67f21246e9
commit 98119eb400
2 changed files with 2 additions and 2 deletions

View file

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>{{settings.SITENAME}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{settings.SITENAME}}</title>
<link rel="shortcut icon" type="image/png" href="/static/png/icon16.png"/>
<link rel="icon" href="/static/png/icon64.png" sizes="32x32"/>
<link rel="icon" href="/static/png/icon64.png" sizes="48x48"/>

View file

@ -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) {