forked from 0x2620/pandora
move doubleclick-to-re-guess-imdb-id from files list to instances list
This commit is contained in:
parent
1364737d09
commit
7fdbb911a9
1 changed files with 40 additions and 38 deletions
|
@ -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]) {
|
||||||
|
|
Loading…
Reference in a new issue