clear id selecting instance, fixes #1697

This commit is contained in:
j 2013-07-23 11:43:29 +00:00
parent 9491d68227
commit a3f51dbeb2

View file

@ -507,6 +507,7 @@ pandora.ui.mediaView = function(options, self) {
data.ids.length == 1 && pandora.api.parsePath({ data.ids.length == 1 && pandora.api.parsePath({
path: self.$instancesList.value(data.ids[0], 'path') path: self.$instancesList.value(data.ids[0], 'path')
}, function(result) { }, function(result) {
self.$idInput.value('');
['title', 'director', 'year'].forEach(function(key) { ['title', 'director', 'year'].forEach(function(key) {
if (result.data[key]) { if (result.data[key]) {
self['$' + key + 'Input'].value( self['$' + key + 'Input'].value(