]> git.mjollnir.org Git - moodle.git/commitdiff
delete confirmation now useing main.getString function.
authorcap2501 <cap2501>
Sun, 8 Oct 2006 21:23:51 +0000 (21:23 +0000)
committercap2501 <cap2501>
Sun, 8 Oct 2006 21:23:51 +0000 (21:23 +0000)
lib/ajax/section_classes.js

index c1bfe15e95de49f0264afb5b5c6d0142b5812ba0..96ed8e5f4dc4734862b1032030f6b61aa32dd4fb 100755 (executable)
@@ -542,7 +542,7 @@ resource_class.prototype.toggle_hide = function(target,e,superficial,force) {
 resource_class.prototype.delete_button = function() {
     if (this.debug)YAHOO.log("Deleteing "+this.getEl().id+"from parent "+this.parentObj.getEl().id);
 
-    if (!confirm(main.portal.strings['deletecheck'].replace(/_var_/,main.portal.strings[this.is]+" "+this.id))) {
+    if (!confirm(main.getString('deletecheck',main.getString(this.is)+" "+this.id))) {
         return false;
     }