]> git.koha-community.org Git - koha.git/commit
Bug 9781 - Fix bug in 3.8.x (dynarch) calendar positioning in IE
authorDavid Cook <dcook@prosentient.com.au>
Sun, 10 Mar 2013 23:41:00 +0000 (10:41 +1100)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 29 Mar 2013 18:29:15 +0000 (07:29 +1300)
commit42372e3471009eb1557795e01c160ed69bccf03c
tree4ac4b3d6b377342f89c42b55df45e1d5cd0c4949
parenta3b7dfb29141ebfe196d0d42d5e05adc990550ae
Bug 9781 - Fix bug in 3.8.x (dynarch) calendar positioning in IE

Currently, if you click on the calendar icon on a long patron
entry/edit page, the calendar pop-up appears off-screen near the top of
the page rather than under the appropriate input box next to the actual
icon.

For most people, they don't think the calendar pop-up is actually
created. For others, it's quite annoying to scroll up to the top of the
page to pick a date for a date field lower on the page.

--

I've adapted a patch I found at the following URL:
http://blog.anorakgirl.co.uk/2009/04/dynarch-dhtml-calendar-ie7-positioning-problem/

This takes care of the problem.

--

Test Plan:

Before applying patch...

1) In any version of IE, create or edit a Patron entry
2) If you have a Date of birth field at the top, click the calendar icon
   next to it.
3) Note that the calendar pop-up appears fine.
4) Scroll down to the bottom of the page and click on the calendar icon
   next to Registration date or Expiry date.
5) Note that no calendar pop-up appears on the screen. Scroll up the
   page and you should see it up near the top of the page.

Apply patch

6) Refresh the page (you might need to clear your cache as well) and try
   clicking the calendar icon next to Registration date or Expiry date
7) Note that the calendar pop-up appears correctly underneath the input
   box for which you want to pick a date

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Tested successfully using IE9 on Windows 7.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/lib/calendar/calendar.js