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

Closing a ModalWindow with jQuery 2.2.0 produces javascript errors

    XMLWordPrintableJSON

Details

    Description

      I am using DynamicJQueryResourceReference, which in 6.22.0 uses jQuery 2.2.0 on modern browsers. After attempting to upgrade to 6.22.0 I discovered if I try to close a ModalWindow (using ModalWindow.close(AjaxRequestTarget) ) I receive a javascript error in the browser

      In Chrome the error is

      Uncaught TypeError: e.stopPropagation is not a function
      jQuery.Event.stopPropagation @ jquery-2.2.0-ver-1456879150165.js:5020
      jQuery.extend.Event.stop @ wicket-event-jquery-ver-1456879150165.js:193
      jQuery.extend.Ajax._handleEventCancelation @ wicket-ajax-jquery-ver-1456879150165.js:1941
      (anonymous function) @ wicket-ajax-jquery-ver-1456879150165.js:1995
      fire @ jquery-2.2.0-ver-1456879150165.js:3182
      self.add @ jquery-2.2.0-ver-1456879150165.js:3241
      jQuery.fn.ready @ jquery-2.2.0-ver-1456879150165.js:3491
      jQuery.fn.init @ jquery-2.2.0-ver-1456879150165.js:2922
      jQuery @ jquery-2.2.0-ver-1456879150165.js:75
      jQuery.extend.Event.add @ wicket-event-jquery-ver-1456879150165.js:228
      (anonymous function) @ wicket-ajax-jquery-ver-1456879150165.js:1972
      jQuery.extend.each @ jquery-2.2.0-ver-1456879150165.js:360
      jQuery.extend.Ajax.ajax @ wicket-ajax-jquery-ver-1456879150165.js:1971
      settings.onClose @ VM284:13Wicket.Window.close @ modal-ver-1456880110679.js:842
      (anonymous function) @ VM287:14

      Attachments

        1. modal.zip
          343 kB
          Alex Grant

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              alexgrant Alex Grant
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: