[Erp5-report] r44553 ivan - in /erp5/trunk/bt5/erp5_popup_ui: SkinTemplateItem/portal_skins...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 24 08:14:02 CET 2011


Author: ivan
Date: Thu Mar 24 08:14:01 2011
New Revision: 44553

URL: http://svn.erp5.org?rev=44553&view=rev
Log:
Scroll up to begin of "window" whenever a popup is rendered.
This way browsing in a popup dialog containing a listbox will always show first listbox items (usefull when for example last page is only few rows then going to it leaves user with nothing forcing him to scroll manually up).

Modified:
    erp5/trunk/bt5/erp5_popup_ui/SkinTemplateItem/portal_skins/erp5_popup_ui/erp5_popup.js.xml
    erp5/trunk/bt5/erp5_popup_ui/bt/revision

Modified: erp5/trunk/bt5/erp5_popup_ui/SkinTemplateItem/portal_skins/erp5_popup_ui/erp5_popup.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_popup_ui/SkinTemplateItem/portal_skins/erp5_popup_ui/erp5_popup.js.xml?rev=44553&r1=44552&r2=44553&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_popup_ui/SkinTemplateItem/portal_skins/erp5_popup_ui/erp5_popup.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_popup_ui/SkinTemplateItem/portal_skins/erp5_popup_ui/erp5_popup.js.xml [utf8] Thu Mar 24 08:14:01 2011
@@ -102,7 +102,8 @@ $(function() {\n
       if (!query) query = {};\n
       if (!ajax_method) ajax_method = $.post;\n
       //dialog.empty();\n
-\n
+      // scroll up to begin of "window"\n
+      window.scrollTo(0,0);\n
       // Some bogus animations for having the user to feel easier.\n
       var animate = function() {\n
         var element = $(\'p.loading\', dialog);\n

Modified: erp5/trunk/bt5/erp5_popup_ui/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_popup_ui/bt/revision?rev=44553&r1=44552&r2=44553&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_popup_ui/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_popup_ui/bt/revision [utf8] Thu Mar 24 08:14:01 2011
@@ -1 +1 @@
-22
\ No newline at end of file
+23
\ No newline at end of file



More information about the Erp5-report mailing list