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

Javascript error when closing a ModalWindow with IE 8

    XMLWordPrintableJSON

Details

    Description

      Closing a ModalWindow in IE 8 may cause following javascript error to console:

      'win.current' is null or not an object

      This doesn't happen with Chrome or Firefox and software seems to work correctly: ModalWindow closes correctly etc. This doesn't happen with all ModalWindows in my application, but if it happens, it will happen every time. I don't know what triggers this behavior, but a work around is to add null checks to ModalWindow.java and modal.js, currently there are only check for undefined variables.

      ModalWindow.java, getCloseJavacriptInternal(), line 416 in wicket-1.5.5 source

      + "if (typeof(win) != \"undefined\" && typeof(win.current) != \"undefined\" && win.current != null) {\n"

      modal.js, Window.close, line 258

      if (typeof(win) != "undefined" && typeof(win.current) != "undefined" && win.current != null) {

      Attachments

        1. fix-WICKET-4695-for-wicket-1.5.x.patch
          2 kB
          Juha Syrjälä
        2. fix-WICKET-4695.patch
          2 kB
          Juha Syrjälä

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jsyrjala Juha Syrjälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: