Ticket #5307: 5307.patch
File 5307.patch, 1.3 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/plugin.js
893 893 894 894 page.setAttribute( 'aria-labelledby', tabId ); 895 895 896 // If only a single page exist, a different style is used in the central pane.897 if ( this._.pageCount === 0 )898 this.parts.dialog.addClass( 'cke_single_page' );899 else900 this.parts.dialog.removeClass( 'cke_single_page' );901 902 896 // Take records for the tabs and elements created. 903 897 this._.tabs[ contents.id ] = [ tab, page ]; 904 898 this._.tabIdList.push( contents.id ); 905 this._.pageCount++;899 !contents.hidden && this._.pageCount++; 906 900 this._.lastTab = tab; 907 901 902 // If only a single page exist, a different style is used in the central pane. 903 this.parts.dialog[ ( this._.pageCount === 1 ? 'add' : 'remove' ) + 'Class' ]( 'cke_single_page' ); 904 908 905 var contentMap = this._.contents[ contents.id ] = {}, 909 906 cursor, 910 907 children = vbox.getChild(); … … 973 970 if ( !tab ) 974 971 return; 975 972 tab.hide(); 973 this._.pageCount--; 976 974 }, 977 975 978 976 /** … … 987 985 if ( !tab ) 988 986 return; 989 987 tab.show(); 988 this._.pageCount++; 990 989 }, 991 990 992 991 /**