Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5119

PopupSettings IE8 - dosen't work second time a link is clicked.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.0
    • Fix Version/s: 6.8.0, 1.5.11
    • Component/s: wicket
    • Labels:
      None

      Description

      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.

        Attachments

        1. pages-in-popup.tgz
          254 kB
          Martin Grigorov
        2. quickstart-onissue.zip
          256 kB
          Uffe Heerfordt

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              uheerfordt Uffe Heerfordt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified