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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.4.0
    • 6.8.0, 1.5.11
    • wicket
    • 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. quickstart-onissue.zip
          256 kB
          Uffe Heerfordt
        2. pages-in-popup.tgz
          254 kB
          Martin Tzvetanov Grigorov

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            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