Author: KRavEN
Date: 2010-09-21 17:47:47 +0200 (Tue, 21 Sep 2010)
New Revision: 30945
Modified:
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsGenerator.class.php
Log:
fixed quoting of iconCls for edit and list action buttons when iconCls is in
the generator configuration
Modified:
plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsGenerator.class.php
===================================================================
--- plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsGenerator.class.php
2010-09-21 15:15:02 UTC (rev 30944)
+++ plugins/ExtjsGeneratorPlugin/trunk/lib/generator/ExtjsGenerator.class.php
2010-09-21 15:47:47 UTC (rev 30945)
@@ -485,7 +485,7 @@
$configArr = array_merge($configArr, $params);
// you can pass a class instead of an icon name with the class parameter
- $iconCls = isset($configArr['class']) ? $configArr['class'] :
"\$sfExtjs3Plugin->asVar(\"Ext.ux.IconMgr.getIcon('{$configArr['icon']}')\")";
+ $iconCls = isset($configArr['class']) ? "'{$configArr['class']}'" :
"\$sfExtjs3Plugin->asVar(\"Ext.ux.IconMgr.getIcon('{$configArr['icon']}')\")";
if(isset($configArr['handler_function']))
{
@@ -583,7 +583,7 @@
$configArr = array_merge($configArr, $params);
// you can pass a class instead of an icon name with the class parameter
- $iconCls = isset($configArr['class']) ? $configArr['class'] :
"\$sfExtjs3Plugin->asVar(\"Ext.ux.IconMgr.getIcon('{$configArr['icon']}')\")";
+ $iconCls = isset($configArr['class']) ? "'{$configArr['class']}'" :
"\$sfExtjs3Plugin->asVar(\"Ext.ux.IconMgr.getIcon('{$configArr['icon']}')\")";
if(isset($configArr['handler_function']))
{
--
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.