You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/04/08 23:48:17 UTC

[jira] [Commented] (WICKET-5119) PopupSettings IE8 - dosen't work secound time a link is clicked.

    [ https://issues.apache.org/jira/browse/WICKET-5119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625871#comment-13625871 ] 

Martin Grigorov commented on WICKET-5119:
-----------------------------------------

I cannot reproduce the problem.
I don't have real IE 7/8 around so I use IE9 in IE 7/8 mode.
At http://www.wicket-library.com/wicket-examples-6.0.x/linkomatic/home I click on the link with text "Click this link for a popup" and then I click second time on the same link without closing the popup.
Are the steps correct ?

Could it be something related to your installation of IE 8 ? Can you try from a different machine too ? Also please try with different DOCTYPE, preferably HTML5.
                
> PopupSettings IE8 - dosen't work secound time a link is clicked.
> ----------------------------------------------------------------
>
>                 Key: WICKET-5119
>                 URL: https://issues.apache.org/jira/browse/WICKET-5119
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.4.0
>            Reporter: Uffe Heerfordt
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> Hi,
> The popup functionality causes a script error in IE8, if the popup window is already open. As a result the link's default behaviour is executed instead - as ' return false; ' never is reached.
> Class: org.apache.wicket.markup.html.link.PopupSettings
> The problem exists in line: 188 //  if(w.blur) w.focus();
> In IE8 blur and focus isen't defined - secound time a popup link is called and therefore the logic breaks.
> //An alternative: (test if w.blur is defined)
> script.append("'); if( jQuery.isFunction( w.blur ) && w.blur ) { w.focus(); } ").append(" return false;");
> Br,
> Uffe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira