Roo/bootstrap/MessageBox.js wip_leon_T7737_Review_publisher_look_for_all
authorleon <leon@roojs.com>
Wed, 19 Jul 2023 07:42:59 +0000 (15:42 +0800)
committerleon <leon@roojs.com>
Wed, 19 Jul 2023 07:42:59 +0000 (15:42 +0800)
Roo/bootstrap/MessageBox.js

index e70bef7..80a1ffd 100644 (file)
@@ -542,23 +542,22 @@ Roo.Msg.show({
          * for setting a different minimum width than text-only dialogs may need (defaults to 250)
          * @type Number
          */
-        minProgressWidth : 250
+        minProgressWidth : 250,
+        /**
+         * An object containing the default button text strings that can be overriden for localized language support.
+         * Supported properties are: ok, cancel, yes and no.
+         * Customize the default text like so: Roo.MessageBox.buttonText.yes = "S?";
+         * @type Object
+         */
+        buttonText : {
+            ok : "OK",
+            cancel : "Cancel",
+            yes : "Yes",
+            no : "No"
+        }
     };
 }();
 
-/**
- * An object containing the default button text strings that can be overriden for localized language support.
- * Supported properties are: ok, cancel, yes and no.
- * Customize the default text like so: Roo.MessageBox.buttonText.yes = "S?";
- * @type Object
- */
-Roo.bootstrap.MessageBox.buttonText = {
-    ok : "OK",
-    cancel : "Cancel",
-    yes : "Yes",
-    no : "No"
-};
-
 /**
  * Shorthand for {@link Roo.MessageBox}
  */