mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
glossary MDL-23423 improved ajax error display
This commit is contained in:
parent
0700c5c464
commit
77c7486ea0
6
mod/glossary/yui/autolinker/autolinker.js
vendored
6
mod/glossary/yui/autolinker/autolinker.js
vendored
@ -75,10 +75,10 @@ YUI.add('moodle-mod_glossary-autolinker', function(Y) {
|
||||
|
||||
return true;
|
||||
} else if (data.error) {
|
||||
alert(data.error);
|
||||
new M.core.ajaxException(data);
|
||||
}
|
||||
}catch(ex) {
|
||||
alert(ex.message+" "+content);
|
||||
}catch(e) {
|
||||
new M.core.exception(e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user