Roo/MessageBox.js
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 02:52:37 +0000 (10:52 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 02:52:37 +0000 (10:52 +0800)
Roo/MessageBox.js

index 43fb3fd..51107a1 100644 (file)
@@ -276,9 +276,18 @@ Roo.Msg.show({
          * @param {Object} config Configuration options
          * @return {Roo.MessageBox} This message box
          */
-        show : function(options){
+        show : function(options)
+        {
+            
+            // this causes nightmares if you show one dialog after another
+            // especially on callbacks..
+             
             if(this.isVisible()){
+                
                 this.hide();
+                this.alert("ERROR", "Multiple dialogs where displayed at the same time");
+                throw "Roo.MessageBox ERROR : Multiple dialogs where displayed at the same time";
+                
             }
             var d = this.getDialog();
             opt = options;