Moodle Updradation from 3.3.2 to 3.6.1, Jquery issue 'TypeError: $.LoadingOverlay is not a function'

Moodle Updradation from 3.3.2 to 3.6.1, Jquery issue 'TypeError: $.LoadingOverlay is not a function'

by Abdul Ghaffar -
Number of replies: 1

We were using 'LoadingOverlay.js' to display loading overlay before page gets loaded like



We are adding it like bellow in content of page like this.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="/local/Custom/javascript/LoadingOverlay.js"></script>

Were are getting error 'TypeError: $.LoadingOverlay is not a function' as shown


We resolved it once by following changes in Moodle 3.5, in file "moodle/lib/requirejs/moodle-config.js"

form

map: {
      '*': { jquery: 'jqueryprivate' },
      '*': { process: 'core/first' },
      jqueryprivate: { jquery: 'jquery' }
    }

to

map: {
      '*': {
          jquery: 'jqueryprivate',
          process: 'core/first'
      },
      // '*': { process: 'core/first' },
      jqueryprivate: { jquery: 'jquery' }
    }


But now in Moodle 3.6.1, it is now working.

Any help is welcome!!!

Average of ratings: -
In reply to Abdul Ghaffar

Re: Moodle Updradation from 3.3.2 to 3.6.1, Jquery issue 'TypeError: $.LoadingOverlay is not a function'

by Abdul Ghaffar -

My bad, it is "But now in Moodle 3.6.1, it is not working."