Author: remi
Date: 2009-07-01 10:15:03 +0200 (Wed, 01 Jul 2009)
New Revision: 4947

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
Log:
* Show the gadget configuration of the new gadget after duplication.
* Automatic scrolling of the gadgets view

Modified: 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
  2009-06-30 12:27:18 UTC (rev 4946)
+++ 
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
  2009-07-01 08:15:03 UTC (rev 4947)
@@ -186,6 +186,9 @@
                 }
                 knowedGadgetsFilter = filter;
                 initializeLightbox();
+                // Scroll up
+                var objDiv = document.getElementById("gadgetsListScrollbox");
+                objDiv.scrollTop = 0;
             }
 
             function addGadgetRow(uuid, name, icon, ondemand)
@@ -434,6 +437,21 @@
                 getRequest("/wi_devel/ugc_duplicate", args);
                 lastGadgetUuidInAction = "0";
                 fillGadgetRows(knowedGadgetsFilter);
+                // Scroll down
+                var objDiv = document.getElementById("gadgetsListScrollbox");
+                objDiv.scrollTop = objDiv.scrollHeight;
+                // Show the configuration of the new gadget.
+                if (knowedGadgetsDict != null)
+                {
+                    var gadgets = knowedGadgetsDict;
+                    var gadgetsCount = 
parseInt(gadgets.get("data0").get("count"));
+                    if (gadgetsCount > 0)
+                    {
+                        lastIdx = gadgetsCount - 1;
+                        lastUuid = uuid = gadgets.get("data0").get("gadget_" + 
lastIdx + "_uuid");
+                        clickMe("configureId_" + lastUuid);
+                    }
+                }
             }
 
             function deleteUgc()


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to