Author: KRavEN
Date: 2010-04-16 22:04:00 +0200 (Fri, 16 Apr 2010)
New Revision: 29184

Modified:
   
plugins/sfExtjsThemePlugin/branches/1_2/ExtjsGeneratorPlugin/web/js/Ext.form.Field.override.js
Log:
improved helpText field help

Modified: 
plugins/sfExtjsThemePlugin/branches/1_2/ExtjsGeneratorPlugin/web/js/Ext.form.Field.override.js
===================================================================
--- 
plugins/sfExtjsThemePlugin/branches/1_2/ExtjsGeneratorPlugin/web/js/Ext.form.Field.override.js
      2010-04-16 16:00:07 UTC (rev 29183)
+++ 
plugins/sfExtjsThemePlugin/branches/1_2/ExtjsGeneratorPlugin/web/js/Ext.form.Field.override.js
      2010-04-16 20:04:00 UTC (rev 29184)
@@ -21,8 +21,15 @@
       // everything else
       else
       {
-        var p = this.getEl().up('div.x-form-element');
-        var style = 'margin-left:2px; padding: 2px 0px 1px 12px;'
+        var parent = this.getEl().up('div.x-form-element');
+        var style = 'line-height:14px; padding: 2px 0px 4px 18px;'
+        
+        parent.createChild({
+          tag : 'div',
+          cls : Ext.ux.IconMgr.getIcon('help'),
+          style : 'font-size: 9px; color: #888; cursor: help; 
background-color: transparent;background-repeat: no-repeat; display: inline;' + 
style,
+          html : this.helpText
+        });
       }
       if (p)
       {

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to