Set "editing" name.

This commit is contained in:
cahrens
2013-05-15 11:52:38 -04:00
parent a16740691f
commit 06d315484f
3 changed files with 8 additions and 1 deletions

View File

@@ -54,6 +54,12 @@ CMS.Views.Metadata.Editor = Backbone.View.extend({
}
);
return modified_values;
},
getDisplayName: function () {
// It is possible that there is no display name set. In that case, return empty string.
var displayNameValue = this.model.get('display_name').value;
return displayNameValue ? displayNameValue : '';
}
});