]> git.mjollnir.org Git - moodle.git/commitdiff
resolved: MDL-6579
authorcap2501 <cap2501>
Sun, 8 Oct 2006 21:09:47 +0000 (21:09 +0000)
committercap2501 <cap2501>
Sun, 8 Oct 2006 21:09:47 +0000 (21:09 +0000)
created language independant prompt for resource/activity deletion

lib/ajax/section_classes.js

index 934ab5145198481a68baa981f0b22cd6d270e9ab..c1bfe15e95de49f0264afb5b5c6d0142b5812ba0 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('Are you sure you wish to delete this '+this.is+"?")) {
+    if (!confirm(main.portal.strings['deletecheck'].replace(/_var_/,main.portal.strings[this.is]+" "+this.id))) {
         return false;
     }