added main.getString function to better emulate php-moodle. In the future this could be extended to dynamically pull strings from moodle.php.
This commit is contained in:
@@ -210,6 +210,11 @@ main_class.prototype.update_marker = function(newMarker){
|
||||
this.connect('post','class=course&field=marker',null,'value='+this.marker.sectionId);
|
||||
}
|
||||
|
||||
main_class.prototype.getString = function(title,variable){
|
||||
if(this.portal.strings[title])
|
||||
return this.portal.strings[title].replace(/_var_/,variable);
|
||||
}
|
||||
|
||||
var main = new main_class();
|
||||
|
||||
function php_portal_class(){
|
||||
|
||||
Reference in New Issue
Block a user