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

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



Revision: 6107
          http://sourceforge.net/p/ledger-smb/code/6107
Author:   einhverfr
Date:     2013-10-03 05:05:35 +0000 (Thu, 03 Oct 2013)
Log Message:
-----------
Re-enabling TabularForm as a layout tool.  The current version is much more advanced than the previous version.

Modified Paths:
--------------
    trunk/UI/lib/Loader.js
    trunk/UI/lib/TabularForm.js
    trunk/UI/login.html

Modified: trunk/UI/lib/Loader.js
===================================================================
--- trunk/UI/lib/Loader.js	2013-10-02 08:19:34 UTC (rev 6106)
+++ trunk/UI/lib/Loader.js	2013-10-03 05:05:35 UTC (rev 6107)
@@ -47,14 +47,10 @@
                DIV: {
                '__default': function(){ return undefined; },
                  'tabular': function(node){
-                                        //disabling for now
-                                        return undefined;
                                         return new tabular({
                                               showLabels: true,
-                                              labelWidth: 100,
                                               customClass: 'lsmbtabular',
-                                              orientation: 'vert',
-                                              cols: 1
+                                              orientation: 'horiz'
                                                      }, node);
                             }
              
@@ -246,14 +242,16 @@
             if (declarative){
                return parser.parse(); 
             } 
-            /*query('.tabular label').forEach(function(dnode){
+            query('.tabular label').forEach(function(dnode){
                  construct.destroy(dnode);
-            });*/
+            });
             query('*').forEach(function(dnode){
                 ready(function(){
                    widget = myself.createWidget(dnode);
                    if (undefined !== widget){
-                        widget.startup();
+                       ready(function(){
+                           registry.byId(dnode.id).startup();
+                        });
                    }
                 });
             });

Modified: trunk/UI/lib/TabularForm.js
===================================================================
--- trunk/UI/lib/TabularForm.js	2013-10-02 08:19:34 UTC (rev 6106)
+++ trunk/UI/lib/TabularForm.js	2013-10-03 05:05:35 UTC (rev 6107)
@@ -99,7 +99,6 @@
                             classes[0].replace(/ virtlabel-(\w+) /, "$1");
                 }
             }
-            console.log(this);
             var myself = this;
             require(['lsmb/lib/Loader', 'dojo/ready', 'dojo/dom-construct'],
             function(l, ready, construct){
@@ -123,7 +122,6 @@
               else {
                  var widget = loader.createWidget(dnode);
                  if (undefined !== widget) {
-                    console.log(widget);
                     myself.addChild(widget);
                     widget.startup();
                  }
@@ -140,11 +138,7 @@
                var spc = new cp({content: ' '});
                this.addChild(spc); 
            }
-        },
-        startup: function(){
-           this.inherited(arguments);
-           this.layout();
-        },
+        }
 /*
         resize: function(){
            //TODO:  this needs to detect container size and restructure

Modified: trunk/UI/login.html
===================================================================
--- trunk/UI/login.html	2013-10-02 08:19:34 UTC (rev 6106)
+++ trunk/UI/login.html	2013-10-03 05:05:35 UTC (rev 6107)
@@ -28,7 +28,7 @@
 				<a href="http://www.ledgersmb.org/"; target="_top"><img src="images/ledgersmb.png" class="logo" alt="LedgerSMB Logo" /></a>
 				<h1 class="login" align="center"><?lsmb text("LedgerSMB [_1]", VERSION) ?></h1>
 				<div align="center">
-					<div id="company_div" class="tabular1 col-1">
+					<div id="company_div" class="tabular col-1">
                                                <div class="noshow">
                                                  <div>
                                                   <?lsmb PROCESS input

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