JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.3
[ckeditor.git] / _source / plugins / dialog / plugin.js
index 13f6327..26d8a8d 100644 (file)
@@ -1029,7 +1029,7 @@ CKEDITOR.DIALOG_RESIZE_BOTH = 3;
                hidePage : function( id )\r
                {\r
                        var tab = this._.tabs[id] && this._.tabs[id][0];\r
-                       if ( !tab || this._.pageCount == 1 )\r
+                       if ( !tab || this._.pageCount == 1 || !tab.isVisible() )\r
                                return;\r
                        // Switch to other tab first when we're hiding the active tab.\r
                        else if ( id == this._.currentTabId )\r