mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Yet another string using proper placeholder in Javascript
This commit is contained in:
parent
e98a39260a
commit
05e7fca43f
3 changed files with 4 additions and 4 deletions
|
@ -178,7 +178,7 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) {
|
|||
var index = 0, count = 0;
|
||||
for (var i = 1; i <= 365; i++) {
|
||||
count++;
|
||||
var option = Y.Node.create('<option value="'+i+'">'+M.str.enrol.durationdays.replace(/\%d/, i)+'</option>');
|
||||
var option = Y.Node.create('<option value="'+i+'">'+M.util.get_string('durationdays', 'enrol', i)+'</option>');
|
||||
if (i == defaultvalue) {
|
||||
index = count;
|
||||
}
|
||||
|
@ -495,4 +495,4 @@ YUI.add('moodle-enrol-enrolmentmanager', function(Y) {
|
|||
}
|
||||
}
|
||||
|
||||
}, '@VERSION@', {requires:['base','node', 'overlay', 'io', 'test', 'json-parse', 'event-delegate', 'dd-plugin', 'event-key', 'moodle-enrol-notification']});
|
||||
}, '@VERSION@', {requires:['base','node', 'overlay', 'io', 'test', 'json-parse', 'event-delegate', 'dd-plugin', 'event-key', 'moodle-enrol-notification']});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue