[open-ils-commits] r1132 - servres/trunk/conifer/templates/item (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 28 14:02:05 EST 2010
Author: gfawcett
Date: 2010-12-28 14:02:01 -0500 (Tue, 28 Dec 2010)
New Revision: 1132
Modified:
servres/trunk/conifer/templates/item/item_add_cat_search.xhtml
servres/trunk/conifer/templates/item/item_add_elec.xhtml
servres/trunk/conifer/templates/item/item_add_url.xhtml
Log:
on long item-add forms, autoscroll past the header.
Modified: servres/trunk/conifer/templates/item/item_add_cat_search.xhtml
===================================================================
--- servres/trunk/conifer/templates/item/item_add_cat_search.xhtml 2010-12-28 18:05:03 UTC (rev 1131)
+++ servres/trunk/conifer/templates/item/item_add_cat_search.xhtml 2010-12-28 19:02:01 UTC (rev 1132)
@@ -23,6 +23,9 @@
<script py:if="not 'query' in request.GET"> <!-- !focus on query box if nothing to scroll. -->
$(function() { $('#query').focus(); });
</script>
+ <script>
+ $(function() { window.scrollTo(0, $('h2').position().top); });
+ </script>
</head>
<body>
${site_banner(site)}
Modified: servres/trunk/conifer/templates/item/item_add_elec.xhtml
===================================================================
--- servres/trunk/conifer/templates/item/item_add_elec.xhtml 2010-12-28 18:05:03 UTC (rev 1131)
+++ servres/trunk/conifer/templates/item/item_add_elec.xhtml 2010-12-28 19:02:01 UTC (rev 1132)
@@ -19,6 +19,9 @@
<script type="text/javascript">
$(function() {$('input[name="title"]').focus();});
</script>
+ <script>
+ $(function() { window.scrollTo(0, $('h1').position().top); });
+ </script>
</head>
<body>
${site_banner(site)}
Modified: servres/trunk/conifer/templates/item/item_add_url.xhtml
===================================================================
--- servres/trunk/conifer/templates/item/item_add_url.xhtml 2010-12-28 18:05:03 UTC (rev 1131)
+++ servres/trunk/conifer/templates/item/item_add_url.xhtml 2010-12-28 19:02:01 UTC (rev 1132)
@@ -13,6 +13,9 @@
<script type="text/javascript">
$(function() {$('input[name="title"]').focus();});
</script>
+ <script>
+ $(function() { window.scrollTo(0, $('h1').position().top); });
+ </script>
</head>
<body>
${site_banner(site)}
More information about the open-ils-commits
mailing list