MDL-68750 core_tag: Add missing confirmation dialogue title
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 26 May 2020 02:55:12 +0000 (10:55 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 26 May 2020 04:55:29 +0000 (12:55 +0800)
lib/amd/build/tag.min.js
lib/amd/build/tag.min.js.map
lib/amd/src/tag.js

index 603a149..ba37d4e 100644 (file)
Binary files a/lib/amd/build/tag.min.js and b/lib/amd/build/tag.min.js differ
index 9749568..7db6808 100644 (file)
Binary files a/lib/amd/build/tag.min.js.map and b/lib/amd/build/tag.min.js.map differ
index 2527032..603cc9f 100644 (file)
@@ -266,12 +266,13 @@ define([
 
                     e.preventDefault(); // This will prevent default error dialogue.
                     str.get_strings([
+                        {key: 'confirm', component: 'core'},
                         {key: 'nameuseddocombine', component: 'tag'},
-                        {key: 'yes'},
-                        {key: 'cancel'},
+                        {key: 'yes', component: 'core'},
+                        {key: 'cancel', component: 'core'},
                     ])
                     .then(function(s) {
-                        return notification.confirm(e.message, s[0], s[1], s[2], function() {
+                        return notification.confirm(s[0], s[1], s[2], s[3], function() {
                             window.location.href = window.location.href + "&newname=" + encodeURIComponent(newvalue) +
                                 "&tagid=" + encodeURIComponent(tagid) +
                                 '&action=renamecombine&sesskey=' + M.cfg.sesskey;