move doubleclick-to-re-guess-imdb-id from files list to instances list

This commit is contained in:
rolux 2012-09-15 12:19:50 +00:00
parent 1364737d09
commit 7fdbb911a9

View file

@ -251,7 +251,6 @@ pandora.ui.filesView = function(options, self) {
init: function(data) { init: function(data) {
self.numberOfItems = data.items; self.numberOfItems = data.items;
}, },
open: openFiles,
select: selectFiles select: selectFiles
}); });
@ -291,6 +290,9 @@ pandora.ui.filesView = function(options, self) {
scrollbarVisible: true, scrollbarVisible: true,
sort: [{key: 'user', operator: '+'}], sort: [{key: 'user', operator: '+'}],
unique: 'path' unique: 'path'
})
.bindEvent({
open: openFiles
}); });
self.$movieLabel = Ox.Label({ self.$movieLabel = Ox.Label({
@ -457,7 +459,7 @@ pandora.ui.filesView = function(options, self) {
function openFiles(data) { function openFiles(data) {
data.ids.length == 1 && pandora.api.parsePath({ data.ids.length == 1 && pandora.api.parsePath({
path: self.$filesList.value(data.ids[0], 'path') path: self.$instancesList.value(data.ids[0], 'path')
}, function(result) { }, function(result) {
['title', 'director', 'year'].forEach(function(key) { ['title', 'director', 'year'].forEach(function(key) {
if (result.data[key]) { if (result.data[key]) {