MDL-34182 js: fixed typo in ajaxException use
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@ BRANCH.prototype = {
|
||||
try {
|
||||
var object = Y.JSON.parse(outcome.responseText);
|
||||
if (object.error) {
|
||||
Y.use('moodle-core-notification-ajaxException', function () {
|
||||
Y.use('moodle-core-notification-ajaxexception', function () {
|
||||
return new M.core.ajaxException(object).show();
|
||||
});
|
||||
return false;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
blocks/navigation/yui/build/moodle-block_navigation-navigation/moodle-block_navigation-navigation.js
Vendored
+1
-1
@@ -648,7 +648,7 @@ BRANCH.prototype = {
|
||||
try {
|
||||
var object = Y.JSON.parse(outcome.responseText);
|
||||
if (object.error) {
|
||||
Y.use('moodle-core-notification-ajaxException', function () {
|
||||
Y.use('moodle-core-notification-ajaxexception', function () {
|
||||
return new M.core.ajaxException(object).show();
|
||||
});
|
||||
return false;
|
||||
|
||||
+1
-1
@@ -648,7 +648,7 @@ BRANCH.prototype = {
|
||||
try {
|
||||
var object = Y.JSON.parse(outcome.responseText);
|
||||
if (object.error) {
|
||||
Y.use('moodle-core-notification-ajaxException', function () {
|
||||
Y.use('moodle-core-notification-ajaxexception', function () {
|
||||
return new M.core.ajaxException(object).show();
|
||||
});
|
||||
return false;
|
||||
|
||||
@@ -595,7 +595,7 @@ M.core_filepicker.init = function(Y, options) {
|
||||
}
|
||||
// error checking
|
||||
if (data && data.error) {
|
||||
Y.use('moodle-core-notification-ajaxException', function () {
|
||||
Y.use('moodle-core-notification-ajaxexception', function () {
|
||||
return new M.core.ajaxException(data);
|
||||
});
|
||||
this.fpnode.one('.fp-content').setContent('');
|
||||
|
||||
Reference in New Issue
Block a user