mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
Merge branch 'MDL-49442-master' of git://github.com/jethac/moodle
This commit is contained in:
commit
3bec364f35
@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() {
|
||||
// Pop off the Handlebars object at the end.
|
||||
args.pop();
|
||||
|
||||
// Add the Handlebars hashtable to support get_string arguments.
|
||||
args.push(arguments[arguments.length - 1].hash);
|
||||
|
||||
// Perform the get_string.
|
||||
return M.util.get_string.apply(this, args);
|
||||
});
|
||||
|
@ -1 +1 @@
|
||||
YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@");
|
||||
YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),t.push(arguments[arguments.length-1].hash),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@");
|
||||
|
@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() {
|
||||
// Pop off the Handlebars object at the end.
|
||||
args.pop();
|
||||
|
||||
// Add the Handlebars hashtable to support get_string arguments.
|
||||
args.push(arguments[arguments.length - 1].hash);
|
||||
|
||||
// Perform the get_string.
|
||||
return M.util.get_string.apply(this, args);
|
||||
});
|
||||
|
3
lib/yui/src/handlebars/js/handlebars.js
vendored
3
lib/yui/src/handlebars/js/handlebars.js
vendored
@ -9,6 +9,9 @@ Y.Handlebars.registerHelper('get_string', function() {
|
||||
// Pop off the Handlebars object at the end.
|
||||
args.pop();
|
||||
|
||||
// Add the Handlebars hashtable to support get_string arguments.
|
||||
args.push(arguments[arguments.length - 1].hash);
|
||||
|
||||
// Perform the get_string.
|
||||
return M.util.get_string.apply(this, args);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user