From 47fc0d97f7aa17de63c9a50700da554fc2858585 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 15 Nov 2012 21:17:37 +0100 Subject: [PATCH] added help text for new date format --- .../resources/js/config/sonia.config.scmconfigpanel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js index d82c7a33a2..49bf63a990 100644 --- a/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js +++ b/scm-webapp/src/main/webapp/resources/js/config/sonia.config.scmconfigpanel.js @@ -62,8 +62,11 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{ // help servernameHelpText: 'The name of this server. This name will be part of the repository url.', - // TODO - dateFormatHelpText: 'JavaScript date format.', + // TODO i18n + dateFormatHelpText: 'Moments date format. Please have a look at \n\ + http://momentjs.com/docs/#/displaying/format/.
\n\ + Note:
\n\ + {0} - is replaced by a "time ago" string (e.g. 2 hours ago).', pluginRepositoryHelpText: 'The url of the plugin repository.
Explanation of the {placeholders}:\n\
version = SCM-Manager Version
os = Operation System
arch = Architecture', enableForwardingHelpText: 'Enbale mod_proxy port forwarding.', @@ -120,6 +123,7 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{ fieldLabel: this.dateFormatText, name: 'dateFormat', helpText: this.dateFormatHelpText, + helpDisableAutoHide: true, allowBlank: false },{ xtype: 'textfield',