Wicket
  1. Wicket
  2. WICKET-5119

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

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

        Activity

        Martin Grigorov made changes -
        Summary PopupSettings IE8 - dosen't work secound time a link is clicked. PopupSettings IE8 - dosen't work second time a link is clicked.
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 6.8.0 [ 12324068 ]
        Fix Version/s 1.5.11 [ 12324069 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Attachment pages-in-popup.tgz [ 12579827 ]
        Martin Grigorov made changes -
        Assignee Martin Grigorov [ mgrigorov ]
        Uffe Heerfordt made changes -
        Field Original Value New Value
        Attachment quickstart-onissue.zip [ 12578594 ]
        Uffe Heerfordt created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            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

                Development