This commit is contained in:
rlx 2016-08-09 13:21:00 +02:00
parent 5ef6062613
commit adfaa863c3

View file

@ -103,7 +103,7 @@ pandora.ui.importMediaDialog = function(options) {
infoValue = infoValue.join(', '); infoValue = infoValue.join(', ');
} }
value = value.replace( value = value.replace(
new RegExp('\{' + infoKey '\}', 'g'), infoValue new RegExp('\{' + infoKey + '\}', 'g'), infoValue
); );
}); });
if (Ox.isArray(type)) { if (Ox.isArray(type)) {
@ -114,7 +114,7 @@ pandora.ui.importMediaDialog = function(options) {
pandora.api.add({title: values.title || info.title}, function(result) { pandora.api.add({title: values.title || info.title}, function(result) {
var edit = Ox.extend( var edit = Ox.extend(
Ox.filter(values, function(value, key) { Ox.filter(values, function(value, key) {
return key != 'title' return key != 'title';
}), }),
{'id': result.data.id} {'id': result.data.id}
); );