update name in sidebar, fixes #27

This commit is contained in:
j 2016-01-05 10:01:08 +05:30
parent 499c6ebc56
commit 0a8a335cdc

View file

@ -430,6 +430,7 @@ oml.ui.preferencesDialog = function() {
value = data.data.value[0];
if (key == 'username') {
value = oml.getValidName(value, [], ':');
oml.$ui.folder[0].options('title', Ox.encodeHTMLEntities(value));
}
if (key in oml.config.user.preferences) {
oml.Preferences.set(key, value);