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

SF.net SVN: ledger-smb:[6086] trunk/UI/lib/TabSet.js



Revision: 6086
          http://sourceforge.net/p/ledger-smb/code/6086
Author:   einhverfr
Date:     2013-09-26 10:27:51 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
Adding accidently omitted TabSet.js

Added Paths:
-----------
    trunk/UI/lib/TabSet.js

Added: trunk/UI/lib/TabSet.js
===================================================================
--- trunk/UI/lib/TabSet.js	                        (rev 0)
+++ trunk/UI/lib/TabSet.js	2013-09-26 10:27:51 UTC (rev 6086)
@@ -0,0 +1,34 @@
+define([
+    'dijit/layout/TabContainer',
+    'dojo/_base/declare'
+    ],
+    function(TabContainer, declare) {
+      return declare('dijit/layout/TabContainer',
+        [TabContainer],
+        {
+          startup: function() {
+           var myself = this; // needed for AMD query usage below.
+           require (['dojo/query', 
+                     'dijit/layout/ContentPane', 
+                     'dijit/registry', 'dojo/domReady!'],
+           function(query, cp, registry) {
+               query('div.lsmbtab').forEach(function(cnode){
+               new cp (
+                   { "data-dojo-type": 'dijit.layout.ContentPane',
+                     "title": cnode.title},
+                   cnode 
+               );
+               var t = registry.byId(cnode.id);
+               if (t !== undefined){
+                   myself.addChild(t);
+               }
+               });
+            });
+            this.inherited(arguments);
+            
+          }
+          
+        });
+    }
+    );
+

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=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits