Commit 12073d2a authored by Ivan Tyagov's avatar Ivan Tyagov

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).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e230c368
...@@ -102,7 +102,8 @@ $(function() {\n ...@@ -102,7 +102,8 @@ $(function() {\n
if (!query) query = {};\n if (!query) query = {};\n
if (!ajax_method) ajax_method = $.post;\n if (!ajax_method) ajax_method = $.post;\n
//dialog.empty();\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 // Some bogus animations for having the user to feel easier.\n
var animate = function() {\n var animate = function() {\n
var element = $(\'p.loading\', dialog);\n var element = $(\'p.loading\', dialog);\n
......
22 23
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment