some improvements when editing metadata

This commit is contained in:
rolux 2011-10-24 21:50:18 +00:00
parent 408af96aa2
commit c6093f9cdf

View file

@ -458,6 +458,7 @@ pandora.ui.infoView = function(data) {
} }
function editMetadata(key, value) { function editMetadata(key, value) {
if (value != data[key]) {
var edit = {id: data.id}; var edit = {id: data.id};
if (key == 'title') { if (key == 'title') {
Ox.extend(edit, parseTitle(value)); Ox.extend(edit, parseTitle(value));
@ -480,6 +481,7 @@ pandora.ui.infoView = function(data) {
//pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser()); //pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser());
}); });
} }
}
function formatKey(key, isStatistics) { function formatKey(key, isStatistics) {
return isStatistics return isStatistics