[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5937] trunk/UI/lib/elements.html



Revision: 5937
          http://sourceforge.net/p/ledger-smb/code/5937
Author:   freelock
Date:     2013-08-04 15:55:27 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
Enhancement #18: Add dojo_params attribute to input elements

Modified Paths:
--------------
    trunk/UI/lib/elements.html

Modified: trunk/UI/lib/elements.html
===================================================================
--- trunk/UI/lib/elements.html	2013-08-04 15:35:23 UTC (rev 5936)
+++ trunk/UI/lib/elements.html	2013-08-04 15:55:27 UTC (rev 5937)
@@ -1,6 +1,6 @@
 <?lsmb 
   default_keys = ['id', 'class', 'title']  # Defaults for all attributes
-  input_keys = ['type', 'name', 'disabled', 'size', 'value', 'dojo_type']  # Defaults for input attributes 
+  input_keys = ['type', 'name', 'disabled', 'size', 'value', 'dojo_type', 'dojo_params']  # Defaults for input attributes 
 
   # ELEMENT DEFAULTS
 
@@ -290,6 +290,8 @@
     <?lsmb 
       IF element_attribute == 'dojo_type' and (attribute_data.dojo_type != "");
         all_attributes = all_attributes _ " " _ 'data-dojo-type="' _ attribute_data.${element_attribute} _ '"';
+      ELSIF element_attribute == 'dojo_params' and (attribute_data.dojo_params != "");
+        all_attributes = all_attributes _ " " _ 'data-dojo-props="' _ attribute_data.${element_attribute} _ '"';
       ELSIF attribute_data.defined(element_attribute) and (attribute_data.${element_attribute} != "");  # Add the attribute to the element if it's been set.
         all_attributes = all_attributes _ " " _ element_attribute _ '="' _ attribute_data.${element_attribute} _ '"';
       ELSIF attribute_defaults.defined(element_attribute);  # Fall back to default value if one is supplied.

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.