forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-51311-master' of git://github.com/damyon/moodle
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,19 @@ | |
* Because every module is returned from a request for any other module, this | ||
* forces the loading of all modules with a single request. | ||
* | ||
* This function also sets up the listeners for ajax requests so we can tell | ||
* if any requests are still in progress. | ||
* | ||
* @module core/first | ||
* @package core | ||
* @copyright 2015 Damyon Wiese <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @since 2.9 | ||
*/ | ||
define(function() { }); | ||
define(['jquery'], function($) { | ||
$(document).bind("ajaxStart", function(){ | ||
M.util.js_pending('jq'); | ||
}).bind("ajaxStop", function(){ | ||
M.util.js_complete('jq'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters