Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31108

Do not use $ as jQuery if $ is not JQuery

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 11.0
    • Component/s: Portal
    • Labels:
      None
    • 11 status:
      Resolved

      Description

      If some tool is loading prototype js library and wants to use other version of jQuery, the portal code doesn't work as expected.

        if ( ! dollarEmpty ) jQuery = ${d};  
      

      This is running even $ is detected previously as not JQuery. Prototype also uses $ as variable.

       if ( secondJQuery ) {
            ${d}PBJQ = jQuery.noConflict(true);
           .....
       }
       if (notJQuery) {
            ${d}PBJQ = jQuery.noConflict(true); 
            ....
       }
      

      Also in this case the jQuery.noConflict could be executed again even there is a second jQuery version, and it was already executed before.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                jjmerono@um.es Juan José Meroño Sánchez
                Reporter:
                jjmerono@um.es Juan José Meroño Sánchez
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration