r61606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61605‎ | r61606 | r61607 >
Date:21:12, 27 January 2010
Author:adam
Status:deferred
Tags:
Comment:
Namespacing css for wikieditor dialogs in response to Mdale's comment on r61300. Also adding new button styles from Hannes.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.min.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.min.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/wikiEditor.dialogs.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_disabled.png (modified) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_down.png (modified) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_off.png (modified) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_over.png (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -22,18 +22,18 @@
2323 array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 7 ),
2424 array( 'src' => 'css/vector.footerCleanup.css', 'version' => 1 ),
2525 array( 'src' => 'css/wikiEditor.css', 'version' => 8 ),
26 - array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 15 ),
 26+ array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 16 ),
2727 array( 'src' => 'css/wikiEditor.preview.css', 'version' => 1 ),
2828 array( 'src' => 'css/wikiEditor.toc.css', 'version' => 28 ),
2929 array( 'src' => 'css/wikiEditor.toolbar.css', 'version' => 10 ),
3030 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3131 ),
3232 'combined' => array(
33 - array( 'src' => 'css/combined.css', 'version' => 58 ),
 33+ array( 'src' => 'css/combined.css', 'version' => 59 ),
3434 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3535 ),
3636 'minified' => array(
37 - array( 'src' => 'css/combined.min.css', 'version' => 58 ),
 37+ array( 'src' => 'css/combined.min.css', 'version' => 59 ),
3838 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3939 ),
4040 )
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_disabled.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_down.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_off.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_over.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/css/wikiEditor.dialogs.css
@@ -1,37 +1,31 @@
22 /* wikiEditor dialogs module */
33
4 -.ui-widget table {
 4+.wikiEditor-toolbar-dialog table {
55 margin-top: 0.75em;
66 }
7 -.ui-widget table td {
 7+.wikiEditor-toolbar-dialog table td {
88 padding: 0.5em;
99 height: 3em;
1010 overflow: visible;
1111 }
12 -
13 -
14 -
1512 /* Put suggestions (default z-index 99) on top of dialogs (z-index 1002) */
1613 div.suggestions {
1714 z-index: 1099;
1815 }
19 -
20 -.ui-dialog .ui-dialog-titlebar-close:hover {
 16+.wikiEditor-toolbar-dialog .ui-dialog-titlebar-close:hover {
2117 text-decoration: none;
2218 }
23 -.ui-dialog-content .status-invalid input {
 19+.wikiEditor-toolbar-dialog .ui-dialog-content .status-invalid input {
2420 border: 2px solid red;
2521 padding: 2px 1px;
2622 }
27 -
28 -
29 -.ui-dialog .ui-dialog-titlebar {
 23+.wikiEditor-toolbar-dialog .ui-dialog-titlebar {
3024 padding: 0.9em 1.4em 0.6em !important;
3125 }
32 -.ui-widget table td {
 26+.wikiEditor-toolbar-dialog table td {
3327 padding: 0 !important;
3428 }
35 -.ui-dialog .ui-dialog-buttonpane button {
 29+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button {
3630 -moz-border-radius: 4px;
3731 -webkit-border-radius: 4px;
3832 padding: 0.2em 0.6em 0.15em !important;
@@ -39,54 +33,55 @@
4034 border: 1px solid #a6a6a6 !important;
4135 background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
4236 }
43 -.ui-dialog .ui-dialog-buttonpane button:hover {
44 - background: #ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 37+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:hover {
 38+ border-color: #6e7273;
 39+ background: #e1e1e1 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
4540 }
46 -.ui-dialog .ui-dialog-buttonpane button:active,
47 -.ui-dialog .ui-dialog-buttonpane button:focus {
48 -
 41+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:active,
 42+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:focus {
 43+ border-color: #707271;
4944 background: #bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
5045 }
51 -.ui-dialog .ui-dialog-buttonpane button.disabled {
 46+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button.disabled {
5247 color: #7f7f7f;
5348 border-color: #cccccc;
5449 background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
5550 }
5651 /* Disables the annoying dashed border Firefox puts on active buttons */
57 -.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
 52+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
5853 border: 0;
5954 }
60 -.ui-widget-header {
 55+.wikiEditor-toolbar-dialog .ui-widget-header {
6156 background: #f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
6257 }
6358 /* FIXME: Should just update the icon sprite if we're keeping this X */
64 -.ui-icon-closethick {
 59+.wikiEditor-toolbar-dialog .ui-icon-closethick {
6560 background: url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
6661 }
67 -.ui-dialog .ui-dialog-buttonpane {
 62+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane {
6863 margin-top: 0 !important;
6964 padding:0.3em 1.4em 0.5em 1.4em !important;
7065 }
7166
72 -.ui-dialog-content fieldset{
 67+.wikiEditor-toolbar-dialog .ui-dialog-content fieldset{
7368 border: none !important;
7469 margin: 0 !important;
7570 padding: 0 !important;
7671 }
77 -.ui-widget-header {
 72+.wikiEditor-toolbar-dialog .ui-widget-header {
7873 border-bottom:1px solid #6bc8f3 !important;
7974 }
80 -.ui-dialog-content input[type=text] {
 75+.wikiEditor-toolbar-dialog .ui-dialog-content input[type=text] {
8176 -moz-box-sizing: border-box;
8277 -ms-box-sizing: border-box;
8378 -webkit-box-sizing: border-box;
8479 -khtml-box-sizing: border-box;
8580 }
86 -.ui-dialog-content input[type="radio"],
87 -.ui-dialog-content input[type="checkbox"] {
 81+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="radio"],
 82+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="checkbox"] {
8883 margin-left: 0;
8984 }
90 -body.ltr .ui-dialog .ui-dialog-titlebar-close {
 85+body.ltr .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
9186 right: 0.9em;
9287 }
9388 .wikieditor-toolbar-field-wrapper {
@@ -116,21 +111,21 @@
117112 body.rtl #wikieditor-toolbar-table-dialog .wikieditor-toolbar-table-preview-wrapper {
118113 float: left;
119114 }
120 -body.rtl .ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 115+body.rtl .wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table {
121116 margin-left: 1em;
122117 margin-right: 0;
123118 }
124119 .wikieditor-toolbar-table-preview-content * {
125120 cursor: default;
126121 }
127 -.ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 122+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table {
128123 width: 100% !important;
129124 }
130 -.ui-widget .wikieditor-toolbar-table-preview-content table td {
 125+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table td {
131126 padding: 10px 4px !important;
132127 height: auto !important;
133128 }
134 -.ui-widget .wikieditor-toolbar-table-preview-content table th {
 129+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table th {
135130 padding: 7px 3px !important;
136131 }
137132 .wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper {
@@ -143,7 +138,7 @@
144139 margin-right: 0px;
145140 margin-left: 20px;
146141 }
147 -.ui-dialog .ui-dialog-content {
 142+.wikiEditor-toolbar-dialog .ui-dialog-content {
148143 padding: 30px 20px 0 !important;
149144 }
150145 .wikieditor-toolbar-dialog-wrapper {
@@ -152,15 +147,15 @@
153148 /* REPLACE Dialog */
154149
155150 /* RTL Changes */
156 -body.rtl .ui-dialog .ui-dialog-buttonpane button {
 151+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-buttonpane button {
157152 float: left;
158153 margin: 0.5em 0.4em 0.5em 0 !important;
159154 }
160 -body.rtl .ui-dialog .ui-dialog-titlebar-close {
 155+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
161156 left: 0.9em;
162157 right: auto;
163158 }
164 -body.rtl .ui-dialog .ui-dialog-title {
 159+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-title {
165160 float:right;
166161 }
167162 /* Self Clearing Floats */
Index: trunk/extensions/UsabilityInitiative/css/combined.css
@@ -224,38 +224,32 @@
225225 }
226226 /* wikiEditor dialogs module */
227227
228 -.ui-widget table {
 228+.wikiEditor-toolbar-dialog table {
229229 margin-top: 0.75em;
230230 }
231 -.ui-widget table td {
 231+.wikiEditor-toolbar-dialog table td {
232232 padding: 0.5em;
233233 height: 3em;
234234 overflow: visible;
235235 }
236 -
237 -
238 -
239236 /* Put suggestions (default z-index 99) on top of dialogs (z-index 1002) */
240237 div.suggestions {
241238 z-index: 1099;
242239 }
243 -
244 -.ui-dialog .ui-dialog-titlebar-close:hover {
 240+.wikiEditor-toolbar-dialog .ui-dialog-titlebar-close:hover {
245241 text-decoration: none;
246242 }
247 -.ui-dialog-content .status-invalid input {
 243+.wikiEditor-toolbar-dialog .ui-dialog-content .status-invalid input {
248244 border: 2px solid red;
249245 padding: 2px 1px;
250246 }
251 -
252 -
253 -.ui-dialog .ui-dialog-titlebar {
 247+.wikiEditor-toolbar-dialog .ui-dialog-titlebar {
254248 padding: 0.9em 1.4em 0.6em !important;
255249 }
256 -.ui-widget table td {
 250+.wikiEditor-toolbar-dialog table td {
257251 padding: 0 !important;
258252 }
259 -.ui-dialog .ui-dialog-buttonpane button {
 253+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button {
260254 -moz-border-radius: 4px;
261255 -webkit-border-radius: 4px;
262256 padding: 0.2em 0.6em 0.15em !important;
@@ -263,54 +257,55 @@
264258 border: 1px solid #a6a6a6 !important;
265259 background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
266260 }
267 -.ui-dialog .ui-dialog-buttonpane button:hover {
268 - background: #ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 261+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:hover {
 262+ border-color: #6e7273;
 263+ background: #e1e1e1 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
269264 }
270 -.ui-dialog .ui-dialog-buttonpane button:active,
271 -.ui-dialog .ui-dialog-buttonpane button:focus {
272 -
 265+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:active,
 266+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:focus {
 267+ border-color: #707271;
273268 background: #bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
274269 }
275 -.ui-dialog .ui-dialog-buttonpane button.disabled {
 270+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button.disabled {
276271 color: #7f7f7f;
277272 border-color: #cccccc;
278273 background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
279274 }
280275 /* Disables the annoying dashed border Firefox puts on active buttons */
281 -.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
 276+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
282277 border: 0;
283278 }
284 -.ui-widget-header {
 279+.wikiEditor-toolbar-dialog .ui-widget-header {
285280 background: #f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
286281 }
287282 /* FIXME: Should just update the icon sprite if we're keeping this X */
288 -.ui-icon-closethick {
 283+.wikiEditor-toolbar-dialog .ui-icon-closethick {
289284 background: url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
290285 }
291 -.ui-dialog .ui-dialog-buttonpane {
 286+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane {
292287 margin-top: 0 !important;
293288 padding:0.3em 1.4em 0.5em 1.4em !important;
294289 }
295290
296 -.ui-dialog-content fieldset{
 291+.wikiEditor-toolbar-dialog .ui-dialog-content fieldset{
297292 border: none !important;
298293 margin: 0 !important;
299294 padding: 0 !important;
300295 }
301 -.ui-widget-header {
 296+.wikiEditor-toolbar-dialog .ui-widget-header {
302297 border-bottom:1px solid #6bc8f3 !important;
303298 }
304 -.ui-dialog-content input[type=text] {
 299+.wikiEditor-toolbar-dialog .ui-dialog-content input[type=text] {
305300 -moz-box-sizing: border-box;
306301 -ms-box-sizing: border-box;
307302 -webkit-box-sizing: border-box;
308303 -khtml-box-sizing: border-box;
309304 }
310 -.ui-dialog-content input[type="radio"],
311 -.ui-dialog-content input[type="checkbox"] {
 305+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="radio"],
 306+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="checkbox"] {
312307 margin-left: 0;
313308 }
314 -body.ltr .ui-dialog .ui-dialog-titlebar-close {
 309+body.ltr .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
315310 right: 0.9em;
316311 }
317312 .wikieditor-toolbar-field-wrapper {
@@ -340,21 +335,21 @@
341336 body.rtl #wikieditor-toolbar-table-dialog .wikieditor-toolbar-table-preview-wrapper {
342337 float: left;
343338 }
344 -body.rtl .ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 339+body.rtl .wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table {
345340 margin-left: 1em;
346341 margin-right: 0;
347342 }
348343 .wikieditor-toolbar-table-preview-content * {
349344 cursor: default;
350345 }
351 -.ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 346+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table {
352347 width: 100% !important;
353348 }
354 -.ui-widget .wikieditor-toolbar-table-preview-content table td {
 349+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table td {
355350 padding: 10px 4px !important;
356351 height: auto !important;
357352 }
358 -.ui-widget .wikieditor-toolbar-table-preview-content table th {
 353+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table th {
359354 padding: 7px 3px !important;
360355 }
361356 .wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper {
@@ -367,7 +362,7 @@
368363 margin-right: 0px;
369364 margin-left: 20px;
370365 }
371 -.ui-dialog .ui-dialog-content {
 366+.wikiEditor-toolbar-dialog .ui-dialog-content {
372367 padding: 30px 20px 0 !important;
373368 }
374369 .wikieditor-toolbar-dialog-wrapper {
@@ -376,15 +371,15 @@
377372 /* REPLACE Dialog */
378373
379374 /* RTL Changes */
380 -body.rtl .ui-dialog .ui-dialog-buttonpane button {
 375+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-buttonpane button {
381376 float: left;
382377 margin: 0.5em 0.4em 0.5em 0 !important;
383378 }
384 -body.rtl .ui-dialog .ui-dialog-titlebar-close {
 379+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close {
385380 left: 0.9em;
386381 right: auto;
387382 }
388 -body.rtl .ui-dialog .ui-dialog-title {
 383+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-title {
389384 float:right;
390385 }
391386 /* Self Clearing Floats */
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css
@@ -213,10 +213,10 @@
214214 .wikiEditor-ui-tabs div.current a:hover{
215215 text-decoration:none;
216216 }
217 -.ui-widget table{
 217+.wikiEditor-toolbar-dialog table{
218218 margin-top:0.75em;
219219 }
220 -.ui-widget table td{
 220+.wikiEditor-toolbar-dialog table td{
221221 padding:0.5em;
222222 height:3em;
223223 overflow:visible;
@@ -224,20 +224,20 @@
225225 div.suggestions{
226226 z-index:1099;
227227 }
228 -.ui-dialog .ui-dialog-titlebar-close:hover{
 228+.wikiEditor-toolbar-dialog .ui-dialog-titlebar-close:hover{
229229 text-decoration:none;
230230 }
231 -.ui-dialog-content .status-invalid input{
 231+.wikiEditor-toolbar-dialog .ui-dialog-content .status-invalid input{
232232 border:2px solid red;
233233 padding:2px 1px;
234234 }
235 -.ui-dialog .ui-dialog-titlebar{
 235+.wikiEditor-toolbar-dialog .ui-dialog-titlebar{
236236 padding:0.9em 1.4em 0.6em !important;
237237 }
238 -.ui-widget table td{
 238+.wikiEditor-toolbar-dialog table td{
239239 padding:0 !important;
240240 }
241 -.ui-dialog .ui-dialog-buttonpane button{
 241+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button{
242242 -moz-border-radius:4px;
243243 -webkit-border-radius:4px;
244244 padding:0.2em 0.6em 0.15em !important;
@@ -245,50 +245,52 @@
246246 border:1px solid #a6a6a6 !important;
247247 background:#f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
248248 }
249 -.ui-dialog .ui-dialog-buttonpane button:hover{
250 -background:#ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 249+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:hover{
 250+border-color:#6e7273;
 251+background:#e1e1e1 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
251252 }
252 -.ui-dialog .ui-dialog-buttonpane button:active,
253 -.ui-dialog .ui-dialog-buttonpane button:focus{
 253+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:active,
 254+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button:focus{
 255+border-color:#707271;
254256 background:#bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
255257 }
256 -.ui-dialog .ui-dialog-buttonpane button.disabled{
 258+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button.disabled{
257259 color:#7f7f7f;
258260 border-color:#cccccc;
259261 background:#f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
260262 }
261 -.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner{
 263+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane button::-moz-focus-inner{
262264 border:0;
263265 }
264 -.ui-widget-header{
 266+.wikiEditor-toolbar-dialog .ui-widget-header{
265267 background:#f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
266268 }
267 -.ui-icon-closethick{
 269+.wikiEditor-toolbar-dialog .ui-icon-closethick{
268270 background:url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
269271 }
270 -.ui-dialog .ui-dialog-buttonpane{
 272+.wikiEditor-toolbar-dialog .ui-dialog-buttonpane{
271273 margin-top:0 !important;
272274 padding:0.3em 1.4em 0.5em 1.4em !important;
273275 }
274 -.ui-dialog-content fieldset{
 276+.wikiEditor-toolbar-dialog .ui-dialog-content fieldset{
275277 border:none !important;
276278 margin:0 !important;
277279 padding:0 !important;
278280 }
279 -.ui-widget-header{
 281+.wikiEditor-toolbar-dialog .ui-widget-header{
280282 border-bottom:1px solid #6bc8f3 !important;
281283 }
282 -.ui-dialog-content input[type=text]{
 284+.wikiEditor-toolbar-dialog .ui-dialog-content input[type=text]{
283285 -moz-box-sizing:border-box;
284286 -ms-box-sizing:border-box;
285287 -webkit-box-sizing:border-box;
286288 -khtml-box-sizing:border-box;
287289 }
288 -.ui-dialog-content input[type="radio"],
289 -.ui-dialog-content input[type="checkbox"]{
 290+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="radio"],
 291+.wikiEditor-toolbar-dialog .ui-dialog-content input[type="checkbox"]{
290292 margin-left:0;
291293 }
292 -body.ltr .ui-dialog .ui-dialog-titlebar-close{
 294+body.ltr .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close{
293295 right:0.9em;
294296 }
295297 .wikieditor-toolbar-field-wrapper{
@@ -316,21 +318,21 @@
317319 body.rtl #wikieditor-toolbar-table-dialog .wikieditor-toolbar-table-preview-wrapper{
318320 float:left;
319321 }
320 -body.rtl .ui-widget .wikieditor-toolbar-table-preview-wrapper table{
 322+body.rtl .wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table{
321323 margin-left:1em;
322324 margin-right:0;
323325 }
324326 .wikieditor-toolbar-table-preview-content *{
325327 cursor:default;
326328 }
327 -.ui-widget .wikieditor-toolbar-table-preview-wrapper table{
 329+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-wrapper table{
328330 width:100% !important;
329331 }
330 -.ui-widget .wikieditor-toolbar-table-preview-content table td{
 332+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table td{
331333 padding:10px 4px !important;
332334 height:auto !important;
333335 }
334 -.ui-widget .wikieditor-toolbar-table-preview-content table th{
 336+.wikiEditor-toolbar-dialog .wikieditor-toolbar-table-preview-content table th{
335337 padding:7px 3px !important;
336338 }
337339 .wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper{
@@ -343,21 +345,21 @@
344346 margin-right:0px;
345347 margin-left:20px;
346348 }
347 -.ui-dialog .ui-dialog-content{
 349+.wikiEditor-toolbar-dialog .ui-dialog-content{
348350 padding:30px 20px 0 !important;
349351 }
350352 .wikieditor-toolbar-dialog-wrapper{
351353 width:100%;
352354 }
353 -body.rtl .ui-dialog .ui-dialog-buttonpane button{
 355+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-buttonpane button{
354356 float:left;
355357 margin:0.5em 0.4em 0.5em 0 !important;
356358 }
357 -body.rtl .ui-dialog .ui-dialog-titlebar-close{
 359+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-titlebar-close{
358360 left:0.9em;
359361 right:auto;
360362 }
361 -body.rtl .ui-dialog .ui-dialog-title{
 363+body.rtl .wikiEditor-toolbar-dialog .ui-dialog-title{
362364 float:right;
363365 }
364366 .wikieditor-toolbar-table-dimension-fields:after,
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php
@@ -16,14 +16,14 @@
1717 array( 'src' => 'Modules/Preview/Preview.js', 'version' => 6 ),
1818 array( 'src' => 'Modules/Publish/Publish.js', 'version' => 6 ),
1919 array( 'src' => 'Modules/Toc/Toc.js', 'version' => 7 ),
20 - array( 'src' => 'Modules/Toolbar/Toolbar.js', 'version' => 37 ),
 20+ array( 'src' => 'Modules/Toolbar/Toolbar.js', 'version' => 38 ),
2121 array( 'src' => 'Modules/TemplateEditor/TemplateEditor.js', 'version' => 4 ),
2222 ),
2323 'combined' => array(
24 - array( 'src' => 'WikiEditor.combined.js', 'version' => 39 ),
 24+ array( 'src' => 'WikiEditor.combined.js', 'version' => 40 ),
2525 ),
2626 'minified' => array(
27 - array( 'src' => 'WikiEditor.combined.min.js', 'version' => 39 ),
 27+ array( 'src' => 'WikiEditor.combined.min.js', 'version' => 40 ),
2828 ),
2929 );
3030 static $messages = array(
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.js
@@ -1173,6 +1173,7 @@
11741174 },
11751175 dialog: {
11761176 width: 500,
 1177+ dialogClass: 'wikiEditor-toolbar-dialog',
11771178 buttons: {
11781179 'wikieditor-toolbar-tool-link-insert': function() {
11791180 function escapeInternalText( s ) {
@@ -1450,6 +1451,7 @@
14511452 },
14521453 dialog: {
14531454 resizable: false,
 1455+ dialogClass: 'wikiEditor-toolbar-dialog',
14541456 width: 590,
14551457 buttons: {
14561458 'wikieditor-toolbar-tool-table-insert': function() {
@@ -1682,6 +1684,7 @@
16831685 },
16841686 dialog: {
16851687 width: 500,
 1688+ dialogClass: 'wikiEditor-toolbar-dialog',
16861689 buttons: {
16871690 'wikieditor-toolbar-tool-replace-button-findnext': function( e ) {
16881691 $j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.min.js
@@ -51,7 +51,7 @@
5252 updateExistence();});$j('#wikieditor-toolbar-link-int-target').data('suggcache',{}).suggestions({fetch:function(query){var that=this;var title=$j(this).val();if(isExternalLink(title)||title.indexOf('|')!=-1||title==''){$j(this).suggestions('suggestions',[]);return;}
5353 var cache=$j(this).data('suggcache');if(typeof cache[title]!='undefined'){$j(this).suggestions('suggestions',cache[title]);return;}
5454 var request=$j.ajax({url:wgScriptPath+'/api.php',data:{'action':'opensearch','search':title,'namespace':0,'suggest':'','format':'json'},dataType:'json',success:function(data){cache[title]=data[1];$j(that).suggestions('suggestions',data[1]);}});$j(this).data('request',request);},cancel:function(){var request=$j(this).data('request');if(request)
55 -request.abort();}});},dialog:{width:500,buttons:{'wikieditor-toolbar-tool-link-insert':function(){function escapeInternalText(s){return s.replace(/(]{2,})/g,'<nowiki>$1</nowiki>');}
 55+request.abort();}});},dialog:{width:500,dialogClass:'wikiEditor-toolbar-dialog',buttons:{'wikieditor-toolbar-tool-link-insert':function(){function escapeInternalText(s){return s.replace(/(]{2,})/g,'<nowiki>$1</nowiki>');}
5656 function escapeExternalTarget(s){return s.replace(/ /g,'%20').replace(/]/g,'%5D');}
5757 function escapeExternalText(s){return s.replace(/(]+)/g,'<nowiki>$1</nowiki>');}
5858 var insertText='';var whitespace=$j('#wikieditor-toolbar-link-dialog').data('whitespace');var target=$j('#wikieditor-toolbar-link-int-target').val();var text=$j('#wikieditor-toolbar-link-int-text').val();var u=mw.usability;if(target==''){alert(u.getMsg('wikieditor-toolbar-tool-link-empty'));return;}
@@ -129,7 +129,7 @@
130130 </div>\
131131 </div></div>',init:function(){$j(this).find('[rel]').each(function(){$j(this).text(mw.usability.getMsg($j(this).attr('rel')));});$j('#wikieditor-toolbar-table-dimensions-rows').val(4);$j('#wikieditor-toolbar-table-dimensions-columns').val(3);$j('#wikieditor-toolbar-table-wikitable').click(function(){$j('.wikieditor-toolbar-table-preview').toggleClass('wikitable');});$j('#wikieditor-toolbar-table-preview').clone().attr('id','wikieditor-toolbar-table-preview2').addClass('sortable').insertAfter($j('#wikieditor-toolbar-table-preview')).hide();if(typeof ts_makeSortable=='function')
132132 ts_makeSortable($j('#wikieditor-toolbar-table-preview2').get(0));$j('#wikieditor-toolbar-table-sortable').click(function(){$j('#wikieditor-toolbar-table-preview').hide().attr('id','wikieditor-toolbar-table-preview3');$j('#wikieditor-toolbar-table-preview2').attr('id','wikieditor-toolbar-table-preview').show();$j('#wikieditor-toolbar-table-preview3').attr('id','wikieditor-toolbar-table-preview2');});$j('#wikieditor-toolbar-table-dimensions-header').click(function(){var headerHTML=$j('.wikieditor-toolbar-table-preview-header').html();var hiddenHTML=$j('.wikieditor-toolbar-table-preview-hidden').html();$j('.wikieditor-toolbar-table-preview-header').html(hiddenHTML);$j('.wikieditor-toolbar-table-preview-hidden').html(headerHTML);if(typeof ts_makeSortable=='function')
133 -ts_makeSortable($j('#wikieditor-toolbar-table-preview, #wikieditor-toolbar-table-preview2').filter('.sortable').get(0));});},dialog:{resizable:false,width:590,buttons:{'wikieditor-toolbar-tool-table-insert':function(){var rowsVal=$j('#wikieditor-toolbar-table-dimensions-rows').val();var colsVal=$j('#wikieditor-toolbar-table-dimensions-columns').val();var rows=parseInt(rowsVal,10);var cols=parseInt(colsVal,10);var header=Math.min(1,$j('#wikieditor-toolbar-table-dimensions-header:checked').size());var u=mw.usability;if(isNaN(rows)||isNaN(cols)||rows!=rowsVal||cols!=colsVal){alert(u.getMsg('wikieditor-toolbar-tool-table-invalidnumber'));return;}
 133+ts_makeSortable($j('#wikieditor-toolbar-table-preview, #wikieditor-toolbar-table-preview2').filter('.sortable').get(0));});},dialog:{resizable:false,dialogClass:'wikiEditor-toolbar-dialog',width:590,buttons:{'wikieditor-toolbar-tool-table-insert':function(){var rowsVal=$j('#wikieditor-toolbar-table-dimensions-rows').val();var colsVal=$j('#wikieditor-toolbar-table-dimensions-columns').val();var rows=parseInt(rowsVal,10);var cols=parseInt(colsVal,10);var header=Math.min(1,$j('#wikieditor-toolbar-table-dimensions-header:checked').size());var u=mw.usability;if(isNaN(rows)||isNaN(cols)||rows!=rowsVal||cols!=colsVal){alert(u.getMsg('wikieditor-toolbar-tool-table-invalidnumber'));return;}
134134 if(rows+header==0||cols==0){alert(u.getMsg('wikieditor-toolbar-tool-table-zero'));return;}
135135 if(rows*cols>1000){alert(u.getMsg('wikieditor-toolbar-tool-table-toomany',1000));return;}
136136 var headerText=u.getMsg('wikieditor-toolbar-tool-table-example-header');var normalText=u.getMsg('wikieditor-toolbar-tool-table-example');var table="";for(var r=0;r<rows+header;r++){table+="|-\n";for(var c=0;c<cols;c++){var isHeader=(r+1==header);var delim=isHeader?'!':'|';if(c>0){delim+=delim;}
@@ -174,6 +174,6 @@
175175 if(!match){$j('#wikieditor-toolbar-replace-nomatch').show();}else if(mode=='replaceAll'){var index;for(var i=0;i<match.length;i++){index=s.indexOf(match[i]);if(index==-1){break;}
176176 s=s.substr(index+match[i].length);var start=index+offset;var end=start+match[i].length;var newEnd=start+replaceStr.length;$textarea.textSelection('setSelection',{'start':start,'end':end}).textSelection('encapsulateSelection',{'peri':replaceStr,'replace':true}).textSelection('setSelection',{'start':start,'end':newEnd});offset=newEnd;}
177177 $j('#wikieditor-toolbar-replace-success').text(u.getMsg('wikieditor-toolbar-tool-replace-success',match.length)).show();$j(this).data('offset',0);}else{var start=match.index+offset;var end=start+match[0].length;var newEnd=start+replaceStr.length;$textarea.textSelection('setSelection',{'start':start,'end':end});if(mode=='replace'){$textarea.textSelection('encapsulateSelection',{'peri':replaceStr,'replace':true}).textSelection('setSelection',{'start':start,'end':newEnd});}
178 -$textarea.textSelection('scrollToCaretPosition');$j(this).data('offset',mode=='replace'?newEnd:end);}});},dialog:{width:500,buttons:{'wikieditor-toolbar-tool-replace-button-findnext':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'find');},'wikieditor-toolbar-tool-replace-button-replacenext':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'replace');},'wikieditor-toolbar-tool-replace-button-replaceall':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'replaceAll');},'wikieditor-toolbar-tool-replace-close':function(){$j(this).dialog('close');}},open:function(){$j(this).data('offset',0);$j('#wikieditor-toolbar-replace-search').focus();$j('#wikieditor-toolbar-replace-nomatch, #wikieditor-toolbar-replace-success, #wikieditor-toolbar-replace-emptysearch, #wikieditor-toolbar-replace-invalidregex').hide();if(!($j(this).data('onetimeonlystuff'))){$j(this).data('onetimeonlystuff',true);$j(this).closest('.ui-dialog').keypress(function(e){if((e.keyCode||e.which)==13){var button=$j(this).data('dialogaction')||$j(this).find('button:first');button.click();e.preventDefault();}});$j(this).closest('.ui-dialog').find('button').focus(function(){$j(this).closest('.ui-dialog').data('dialogaction',this);});}
 178+$textarea.textSelection('scrollToCaretPosition');$j(this).data('offset',mode=='replace'?newEnd:end);}});},dialog:{width:500,dialogClass:'wikiEditor-toolbar-dialog',buttons:{'wikieditor-toolbar-tool-replace-button-findnext':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'find');},'wikieditor-toolbar-tool-replace-button-replacenext':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'replace');},'wikieditor-toolbar-tool-replace-button-replaceall':function(e){$j(this).closest('.ui-dialog').data('dialogaction',e.target);$j(this).data('replaceCallback').call(this,'replaceAll');},'wikieditor-toolbar-tool-replace-close':function(){$j(this).dialog('close');}},open:function(){$j(this).data('offset',0);$j('#wikieditor-toolbar-replace-search').focus();$j('#wikieditor-toolbar-replace-nomatch, #wikieditor-toolbar-replace-success, #wikieditor-toolbar-replace-emptysearch, #wikieditor-toolbar-replace-invalidregex').hide();if(!($j(this).data('onetimeonlystuff'))){$j(this).data('onetimeonlystuff',true);$j(this).closest('.ui-dialog').keypress(function(e){if((e.keyCode||e.which)==13){var button=$j(this).data('dialogaction')||$j(this).find('button:first');button.click();e.preventDefault();}});$j(this).closest('.ui-dialog').find('button').focus(function(){$j(this).closest('.ui-dialog').data('dialogaction',this);});}
179179 var dialog=$j(this).closest('.ui-dialog');var that=this;$j($j(this).data('context').$iframe[0].contentWindow.document).bind('keypress.srdialog',function(e){if((e.keyCode||e.which)==13){var button=dialog.data('dialogaction')||dialog.find('button:first');button.click();e.preventDefault();}else if((e.keyCode||e.which)==27){$j(that).dialog('close');}});},close:function(){$j($j(this).data('context').$iframe[0].contentWindow.document).unbind('keypress.srdialog');$j(this).data('context').$iframe[0].contentWindow.focus();$j(this).closest('.ui-dialog').data('dialogaction',false);}}}}});}});$j(document).ready(function(){if(!wgWikiEditorEnabledModules.templateEditor){return true;}
180180 if($j.fn.wikiEditor){$j('textarea#wpTextbox1').wikiEditor('addModule','templateEditor');}});
\ No newline at end of file
Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js
@@ -1124,6 +1124,7 @@
11251125 },
11261126 dialog: {
11271127 width: 500,
 1128+ dialogClass: 'wikiEditor-toolbar-dialog',
11281129 buttons: {
11291130 'wikieditor-toolbar-tool-link-insert': function() {
11301131 function escapeInternalText( s ) {
@@ -1401,6 +1402,7 @@
14021403 },
14031404 dialog: {
14041405 resizable: false,
 1406+ dialogClass: 'wikiEditor-toolbar-dialog',
14051407 width: 590,
14061408 buttons: {
14071409 'wikieditor-toolbar-tool-table-insert': function() {
@@ -1633,6 +1635,7 @@
16341636 },
16351637 dialog: {
16361638 width: 500,
 1639+ dialogClass: 'wikiEditor-toolbar-dialog',
16371640 buttons: {
16381641 'wikieditor-toolbar-tool-replace-button-findnext': function( e ) {
16391642 $j(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61300More dialog changes. TODO - Help IE7 with the table based dialogsadam18:24, 20 January 2010

Status & tagging log