fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8460] property: default year selected


From: Sigurd Nes
Subject: [Fmsystem-commits] [8460] property: default year selected
Date: Thu, 29 Dec 2011 20:46:59 +0000

Revision: 8460
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8460
Author:   sigurdne
Date:     2011-12-29 20:46:59 +0000 (Thu, 29 Dec 2011)
Log Message:
-----------
property: default year selected

Modified Paths:
--------------
    trunk/property/js/yahoo/budget.index.js

Modified: trunk/property/js/yahoo/budget.index.js
===================================================================
--- trunk/property/js/yahoo/budget.index.js     2011-12-29 18:39:47 UTC (rev 
8459)
+++ trunk/property/js/yahoo/budget.index.js     2011-12-29 20:46:59 UTC (rev 
8460)
@@ -9,8 +9,8 @@
                {order:1, var_URL:'revision',           name:'btn_revision',    
        style:'',dependiente:[]},
                {order:2, var_URL:'district_id',        name:'btn_district_id', 
        style:'',dependiente:[]},
                {order:3, var_URL:'grouping',           name:'btn_grouping',    
        style:'',dependiente:[]},
-               {order:4, var_URL:'cat_id',                     
name:'btn_cat_id',                      style:'',dependiente:[]},
-               {order:5, var_URL:'dimb_id',            name:'btn_dimb_id',     
                style:'',dependiente:[]}
+               {order:4, var_URL:'cat_id',                     
name:'btn_cat_id',                      style:'',dependiente:[]},
+               {order:5, var_URL:'dimb_id',            name:'btn_dimb_id',     
                style:'',dependiente:[]}
                ]
 
                // define buttons
@@ -54,6 +54,14 @@
                                //locate (asign ID) to datatable
                                tableYUI = 
YAHOO.util.Dom.getElementsByClassName("yui-dt-data","tbody")[0].parentNode;
                                tableYUI.setAttribute("id","tableYUI");
+
+                               //year
+                               index = 
locate_in_array_options(0,"value",path_values.year);
+                               if(index)
+                               {
+                                       oMenuButton_0.set("label", ("<em>" + 
array_options[0][index][1] + "</em>"));
+                               }
+
                                //Focus
                                oMenuButton_0.focus();                  
                        }
@@ -119,4 +127,4 @@
                        //Insert JSON utility on the page
 
                    loader.insert();
-               });
+               });




reply via email to

[Prev in Thread] Current Thread [Next in Thread]