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

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



Revision: 6799
          http://sourceforge.net/p/ledger-smb/code/6799
Author:   einhverfr
Date:     2014-02-07 10:08:50 +0000 (Fri, 07 Feb 2014)
Log Message:
-----------
Fixing bug 1048, bad focusing behavior on contact div

Modified Paths:
--------------
    trunk/UI/Contact/divs/contact_info.html
    trunk/UI/lib/TabSet.js

Modified: trunk/UI/Contact/divs/contact_info.html
===================================================================
--- trunk/UI/Contact/divs/contact_info.html	2014-02-07 09:45:14 UTC (rev 6798)
+++ trunk/UI/Contact/divs/contact_info.html	2014-02-07 10:08:50 UTC (rev 6799)
@@ -9,14 +9,14 @@
                tt_url(script) _ '?entity_id=' _ entity_id _ '&contact=' _
                tt_url(ROW.contact) _ '&class_id=' _ ROW.class_id _
                '&description=' _ tt_url(ROW.description) _ '&credit_id=' _ 
-               credit_act.id _ '&action=edit&target_div=contact_div&for_credit='
+               credit_act.id _ '&action=edit&target_div=contact_info_div&for_credit='
                _ ROW.credit_id;
     ROW.delete_href_suffix = 
                tt_url(script) _ '?entity_id=' _ entity_id _ '&contact=' _
                tt_url(ROW.contact) _ '&class_id=' _ ROW.class_id _ 
                '&description=' _ tt_url(ROW.description) _ '&credit_id=' _ 
                credit_act.id _ '&action=delete_contact&' _
-               'target_div=contact_div&for_credit=' _ ROW.credit_id;
+               'target_div=contact_info_div&for_credit=' _ ROW.credit_id;
     IF ROW.credit_id;
          ROW.for_credit = 'X';
     END;

Modified: trunk/UI/lib/TabSet.js
===================================================================
--- trunk/UI/lib/TabSet.js	2014-02-07 09:45:14 UTC (rev 6798)
+++ trunk/UI/lib/TabSet.js	2014-02-07 10:08:50 UTC (rev 6799)
@@ -43,6 +43,7 @@
           startup: function(activeDiv, boxSize) {
            var myself = this; // needed for AMD query usage below.
            var active;
+           this.inherited(arguments);
            require (['dojo/query', 
                      'dijit/layout/ContentPane', 
                      'dijit/registry', 'dojo/domReady!'],
@@ -57,12 +58,12 @@
                if (t !== undefined){
                    myself.addChild(t);
                    t.startup();
+                   if (cnode.id == activeDiv){
+                      myself.selectChild(t);
+                   }
                }
                });
-               var ad = registry.byId(activeDiv);
-               myself.selectChild(ad);
             });
-            this.inherited(arguments);
           }
           
         });

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits