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

SF.net SVN: ledger-smb:[6100] trunk/UI/lib



Revision: 6100
          http://sourceforge.net/p/ledger-smb/code/6100
Author:   einhverfr
Date:     2013-10-01 06:37:31 +0000 (Tue, 01 Oct 2013)
Log Message:
-----------
Removing dojo in preparation for upgrading the distributed version to 1.9.1.

Modified Paths:
--------------
    trunk/UI/lib/TabularForm.js
    trunk/UI/lib/setup.js

Removed Paths:
-------------
    trunk/UI/lib/dojo/

Modified: trunk/UI/lib/TabularForm.js
===================================================================
--- trunk/UI/lib/TabularForm.js	2013-09-29 14:28:48 UTC (rev 6099)
+++ trunk/UI/lib/TabularForm.js	2013-10-01 06:37:31 UTC (rev 6100)
@@ -70,9 +70,10 @@
     'lsmb/lib/Loader',
     'dojo/_base/declare'
     ],
-    function(TableContainer, dom, cls, registry, cp, query, win, loader, 
+    function(TableContainer, dom, cls, registry, cp, query, win, ldr, 
              declare) 
     {
+      var loader = new ldr;
       return declare('dojox/layout/TableContainer',
         [TableContainer],
         {
@@ -101,11 +102,14 @@
             }
         },
         postCreate: function(){
-            console.log('postCreate');
             this.inherited(arguments);
-            query('*', this.domNode).forEach(TFRenderElement(dnode)); 
+            var myself = this;
+            query('*', this.domNode).forEach(function(dnode){
+                                            myself.TFRenderElement(dnode)
+            }); 
         },
         TFRenderElement: function(dnode){
+              console.log('TFRenderElement');
               if (cls.contains(dnode, 'input-row')){
                  TFRenderRow(dnode);
               }

Modified: trunk/UI/lib/setup.js
===================================================================
--- trunk/UI/lib/setup.js	2013-09-29 14:28:48 UTC (rev 6099)
+++ trunk/UI/lib/setup.js	2013-10-01 06:37:31 UTC (rev 6100)
@@ -7,49 +7,7 @@
  * dijit/dojo classes for the widgets.
  */
 /*
-function construct_form_node(query, cls, registry,
-                        textbox, checkbox, radio, select, button, textarea, 
-                        input)
-{
-    
-    if (input.nodeName == 'INPUT'){ 
-         } else if (input.type == 'radio'){
-         } else if (input.type == 'password'){
-         }
-           
-     } else if (input.nodeName == 'SELECT'){
-     } else if (input.nodeName == 'BUTTON'){
-         return new button(
-            { "name": input.name,
-              "type": input.type,
-                       "id": input.id,
-             "label": input.innerHTML,
-             "value": input.value
-            }, input
-         );
-     
-     } else if (input.nodeName == 'TEXTAREA'){
-          console.log(input);
-          return new textarea(
-                      { "name": input.name,
-                       "value": input.innerHTML,
-                       "label": input.title, 
-                        "cols": input.cols,
-                        "rows": input.rows}, input);
-     }
-     return undefined; 
-}
 
-function try_startup(widget){
-     try{
-          return widget.startup();
-     } catch(err){
-          return false;
-     } finally {
-          //nothing
-     }
-}
-
 /* Set up form.tabular forms.  
  * Supports the following additional classes for setting columns
  * cols-1

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits