Skip to content

Commit

Permalink
MDLSITE-2493 glossary filter alert dialog button string now translatable
Browse files Browse the repository at this point in the history
Conflicts:
	filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker-debug.js
	filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker-min.js
	filter/glossary/yui/build/moodle-filter_glossary-autolinker/moodle-filter_glossary-autolinker.js
	filter/glossary/yui/src/autolinker/js/autolinker.js -- M.core.alert api was changed.
  • Loading branch information
Aparup Banerjee committed Nov 8, 2013
1 parent 069c29b commit cbb6e0d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions filter/glossary/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function setup($page, $context) {
'moodle-filter_glossary-autolinker',
'M.filter_glossary.init_filter_autolinking',
array(array('courseid' => 0)));
$page->requires->strings_for_js(array('ok'), 'moodle');
$jsinitialised = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Y.extend(AUTOLINKER, Y.Base, {

for (key in data.entries) {
definition = data.entries[key].definition + data.entries[key].attachments;
alertpanel = new M.core.alert({title:data.entries[key].concept, message:definition, lightbox:false});
alertpanel = new M.core.alert({title:data.entries[key].concept,
message:definition, lightbox:false, yesLabel: M.util.get_string('ok', 'moodle')});
alertpanel.show();
Y.Node.one('#id_yuialertconfirm-' + alertpanel.get('COUNT')).focus();
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Y.extend(AUTOLINKER, Y.Base, {

for (key in data.entries) {
definition = data.entries[key].definition + data.entries[key].attachments;
alertpanel = new M.core.alert({title:data.entries[key].concept, message:definition, lightbox:false});
alertpanel = new M.core.alert({title:data.entries[key].concept,
message:definition, lightbox:false, yesLabel: M.util.get_string('ok', 'moodle')});
alertpanel.show();
Y.Node.one('#id_yuialertconfirm-' + alertpanel.get('COUNT')).focus();
}
Expand Down
3 changes: 2 additions & 1 deletion filter/glossary/yui/src/autolinker/js/autolinker.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Y.extend(AUTOLINKER, Y.Base, {

for (key in data.entries) {
definition = data.entries[key].definition + data.entries[key].attachments;
alertpanel = new M.core.alert({title:data.entries[key].concept, message:definition, lightbox:false});
alertpanel = new M.core.alert({title:data.entries[key].concept,
message:definition, lightbox:false, yesLabel: M.util.get_string('ok', 'moodle')});
alertpanel.show();
Y.Node.one('#id_yuialertconfirm-' + alertpanel.get('COUNT')).focus();
}
Expand Down

0 comments on commit cbb6e0d

Please sign in to comment.