Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3019

jQuery not defined error

    XMLWordPrintable

Details

    Description

      If you set <c:set var="DO_NOT_INCLUDE_JQUERY" value="true"/> to include your own version of jQuery, you'll see jQuery not defined version on such a page. It's because in headerFull.jsp there's something like:

      if (jQuery)
        jQuery(window).bind('beforeunload', function () { pageIsExiting = true; } );
      

      It throws an error when <c:set var="DO_NOT_INCLUDE_JQUERY" value="true"/> is used. It should be:

      if (typeof(jQuery) != "undefined")
        jQuery(window).bind('beforeunload', function () { pageIsExiting = true; } );
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                dkayiwa Daniel Kayiwa
                raff Rafal Korytkowski
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: