Permalink
Browse files

Fixed issue #06885: Long survey pages jump down the page in IE8 compa…

…tibility view

Dev Forced scroll to top when in IE compatibility mode
  • Loading branch information...
1 parent 55a155b commit 71ddf2eb65d577af3d8b949b5faab826fd260000 @tpartner tpartner committed Nov 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/survey_runtime.js
@@ -99,6 +99,7 @@ $(document).ready(function()
function navbuttonsJqueryUi(){
if ($.browser.msie && $.browser.version.substr(0,1)<8 && $('button.submit').length > 0) { // Get rid of the focus outline in IE7
$('#movenextbtn, #movesubmitbtn').focus().blur();
+ $(this).scrollTop(0);
}
$('[dir!="rtl"] #moveprevbtn').button({

3 comments on commit 71ddf2e

Contributor

c-schmitz replied Nov 15, 2012

Nice fix! :-)

Collaborator

Shnoulle replied Nov 16, 2012

Something i don't understand with this bug : why it work with citronade but no with other template ?
(see http://bugs.limesurvey.org/view.php?id=6758 ) .

First, i think it's focusfirst function, but tested in safari (not same focus function than FF) and have no problem with focusFirst.

Denis
( it's just by curiosity, not important ).

Oups, understand : citronade replace default navbuttonsJqueryUi by "nothing" ;) .

Collaborator

tpartner replied Nov 16, 2012

Please sign in to comment.