r61300 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61299‎ | r61300 | r61301 >
Date:18:24, 20 January 2010
Author:adam
Status:deferred (Comments)
Tags:
Comment:
More dialog changes. TODO - Help IE7 with the table based dialogs
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 (added) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_down.png (added) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_off.png (added) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_over.png (added) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/close_x.png (added) (history)
  • /trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/titlebar_fade.png (added) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -22,7 +22,7 @@
2323 array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 6 ),
2424 array( 'src' => 'css/vector.footerCleanup.css', 'version' => 1 ),
2525 array( 'src' => 'css/wikiEditor.css', 'version' => 7 ),
26 - array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 11 ),
 26+ array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 12 ),
2727 array( 'src' => 'css/wikiEditor.preview.css', 'version' => 1 ),
2828 array( 'src' => 'css/wikiEditor.templateEditor.css', 'version' => 1 ),
2929 array( 'src' => 'css/wikiEditor.toc.css', 'version' => 27 ),
@@ -30,11 +30,11 @@
3131 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3232 ),
3333 'combined' => array(
34 - array( 'src' => 'css/combined.css', 'version' => 51 ),
 34+ array( 'src' => 'css/combined.css', 'version' => 52 ),
3535 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3636 ),
3737 'minified' => array(
38 - array( 'src' => 'css/combined.min.css', 'version' => 51 ),
 38+ array( 'src' => 'css/combined.min.css', 'version' => 52 ),
3939 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
4040 ),
4141 )
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/close_x.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/close_x.png
___________________________________________________________________
Name: svn:mime-type
4242 + application/octet-stream
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_disabled.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_disabled.png
___________________________________________________________________
Name: svn:mime-type
4343 + 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
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_down.png
___________________________________________________________________
Name: svn:mime-type
4444 + 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
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_off.png
___________________________________________________________________
Name: svn:mime-type
4545 + application/octet-stream
Index: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/titlebar_fade.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/titlebar_fade.png
___________________________________________________________________
Name: svn:mime-type
4646 + 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
Property changes on: trunk/extensions/UsabilityInitiative/images/wikiEditor/dialogs/button_over.png
___________________________________________________________________
Name: svn:mime-type
4747 + application/octet-stream
Index: trunk/extensions/UsabilityInitiative/css/wikiEditor.dialogs.css
@@ -9,6 +9,8 @@
1010 overflow: visible;
1111 }
1212
 13+
 14+
1315 /* Put suggestions (default z-index 99) on top of dialogs (z-index 1002) */
1416 div.suggestions {
1517 z-index: 1099;
@@ -29,33 +31,99 @@
3032 .ui-widget table td {
3133 padding: 0 !important;
3234 }
 35+.ui-dialog .ui-dialog-buttonpane button {
 36+ -moz-border-radius: 4px;
 37+ -webkit-border-radius: 4px;
 38+ padding: 0.2em 0.6em 0.15em !important;
 39+ margin: 0.5em 0 0.5em 0.4em !important;
 40+ border: 1px solid #a6a6a6 !important;
 41+ background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
 42+}
 43+.ui-dialog .ui-dialog-buttonpane button:hover {
 44+ background: #ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 45+}
 46+.ui-dialog .ui-dialog-buttonpane button:active,
 47+.ui-dialog .ui-dialog-buttonpane button:focus {
 48+
 49+ background: #bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
 50+}
3351 .ui-dialog .ui-dialog-buttonpane button.disabled {
3452 color: #7f7f7f;
35 - background: #f2f2f2;
3653 border-color: #cccccc;
 54+ background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
3755 }
 56+/* Disables the annoying dashed border Firefox puts on active buttons */
 57+.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
 58+ border: 0;
 59+}
 60+.ui-widget-header {
 61+ background: #f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
 62+}
 63+/* FIXME: Should just update the icon sprite if we're keeping this X */
 64+.ui-icon-closethick {
 65+ background: url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
 66+}
3867 .ui-dialog .ui-dialog-buttonpane {
3968 margin-top: 0 !important;
4069 padding:0.3em 1em 0.5em 1em !important;
4170 }
42 -body.rtl .ui-dialog .ui-dialog-buttonpane button {
43 - float: left;
44 -}
 71+
4572 .ui-dialog-content fieldset{
4673 border: none !important;
4774 margin: 0 !important;
4875 }
 76+
 77+.ui-widget-header {
 78+ border-bottom:1px solid #6bc8f3 !important;
 79+}
 80+.wikieditor-toolbar-field-wrapper {
 81+ padding: 0 0 25px 0;
 82+}
 83+.ui-widget-content {
 84+ border: none !important;
 85+}
 86+/* Table Dialog */
 87+#wikieditor-toolbar-table-dialog fieldset {
 88+ width: 200px;
 89+ padding: 30px 0 0;
 90+ float: left;
 91+}
 92+.wikieditor-toolbar-table-preview-wrapper {
 93+ padding: 30px 0 0;
 94+ width: 280px;
 95+ float: right;
 96+}
4997 .wikieditor-toolbar-table-preview-content * {
5098 cursor: default;
5199 }
 100+.ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 101+ width: 100% !important;
 102+}
 103+.ui-widget .wikieditor-toolbar-table-preview-content table td {
 104+ padding: 10px 4px !important;
 105+}
 106+.ui-widget .wikieditor-toolbar-table-preview-content table th {
 107+ padding: 7px 3px !important;
 108+}
 109+.wikieditor-toolbar-table-dimension-fields {
 110+ overflow: visible;
 111+ width: 100%;
 112+ margin: 0 4px;
 113+}
 114+.wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper {
 115+ float: left;
 116+ margin-right: 20px;
 117+ vertical-align: bottom;
 118+}
 119+/* RTL Changes */
 120+body.rtl .ui-dialog .ui-dialog-buttonpane button {
 121+ float: left;
 122+ margin: 0.5em 0.4 0.5em 0em !important;
 123+}
52124 body.rtl .ui-dialog .ui-dialog-titlebar-close {
53125 left: 0.75em;
54126 right: auto;
55127 }
56128 body.rtl .ui-dialog .ui-dialog-title {
57129 float:right;
58 -}
59 -
60 -.ui-widget-header {
61 - border-bottom:1px solid #6bc8f3 !important;
62130 }
\ No newline at end of file
Index: trunk/extensions/UsabilityInitiative/css/combined.css
@@ -218,6 +218,8 @@
219219 overflow: visible;
220220 }
221221
 222+
 223+
222224 /* Put suggestions (default z-index 99) on top of dialogs (z-index 1002) */
223225 div.suggestions {
224226 z-index: 1099;
@@ -238,35 +240,101 @@
239241 .ui-widget table td {
240242 padding: 0 !important;
241243 }
 244+.ui-dialog .ui-dialog-buttonpane button {
 245+ -moz-border-radius: 4px;
 246+ -webkit-border-radius: 4px;
 247+ padding: 0.2em 0.6em 0.15em !important;
 248+ margin: 0.5em 0 0.5em 0.4em !important;
 249+ border: 1px solid #a6a6a6 !important;
 250+ background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
 251+}
 252+.ui-dialog .ui-dialog-buttonpane button:hover {
 253+ background: #ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 254+}
 255+.ui-dialog .ui-dialog-buttonpane button:active,
 256+.ui-dialog .ui-dialog-buttonpane button:focus {
 257+
 258+ background: #bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
 259+}
242260 .ui-dialog .ui-dialog-buttonpane button.disabled {
243261 color: #7f7f7f;
244 - background: #f2f2f2;
245262 border-color: #cccccc;
 263+ background: #f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
246264 }
 265+/* Disables the annoying dashed border Firefox puts on active buttons */
 266+.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner {
 267+ border: 0;
 268+}
 269+.ui-widget-header {
 270+ background: #f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
 271+}
 272+/* FIXME: Should just update the icon sprite if we're keeping this X */
 273+.ui-icon-closethick {
 274+ background: url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
 275+}
247276 .ui-dialog .ui-dialog-buttonpane {
248277 margin-top: 0 !important;
249278 padding:0.3em 1em 0.5em 1em !important;
250279 }
251 -body.rtl .ui-dialog .ui-dialog-buttonpane button {
252 - float: left;
253 -}
 280+
254281 .ui-dialog-content fieldset{
255282 border: none !important;
256283 margin: 0 !important;
257284 }
 285+
 286+.ui-widget-header {
 287+ border-bottom:1px solid #6bc8f3 !important;
 288+}
 289+.wikieditor-toolbar-field-wrapper {
 290+ padding: 0 0 25px 0;
 291+}
 292+.ui-widget-content {
 293+ border: none !important;
 294+}
 295+/* Table Dialog */
 296+#wikieditor-toolbar-table-dialog fieldset {
 297+ width: 200px;
 298+ padding: 30px 0 0;
 299+ float: left;
 300+}
 301+.wikieditor-toolbar-table-preview-wrapper {
 302+ padding: 30px 0 0;
 303+ width: 280px;
 304+ float: right;
 305+}
258306 .wikieditor-toolbar-table-preview-content * {
259307 cursor: default;
260308 }
 309+.ui-widget .wikieditor-toolbar-table-preview-wrapper table {
 310+ width: 100% !important;
 311+}
 312+.ui-widget .wikieditor-toolbar-table-preview-content table td {
 313+ padding: 10px 4px !important;
 314+}
 315+.ui-widget .wikieditor-toolbar-table-preview-content table th {
 316+ padding: 7px 3px !important;
 317+}
 318+.wikieditor-toolbar-table-dimension-fields {
 319+ overflow: visible;
 320+ width: 100%;
 321+ margin: 0 4px;
 322+}
 323+.wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper {
 324+ float: left;
 325+ margin-right: 20px;
 326+ vertical-align: bottom;
 327+}
 328+/* RTL Changes */
 329+body.rtl .ui-dialog .ui-dialog-buttonpane button {
 330+ float: left;
 331+ margin: 0.5em 0.4 0.5em 0em !important;
 332+}
261333 body.rtl .ui-dialog .ui-dialog-titlebar-close {
262334 left: 0.75em;
263335 right: auto;
264336 }
265337 body.rtl .ui-dialog .ui-dialog-title {
266338 float:right;
267 -}
268 -
269 -.ui-widget-header {
270 - border-bottom:1px solid #6bc8f3 !important;
271339 }/* wikiEditor toc module */
272340 .wikiEditor-ui-toc {
273341 /* height and width are set dynamically */
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css
@@ -222,25 +222,88 @@
223223 .ui-widget table td{
224224 padding:0 !important;
225225 }
 226+.ui-dialog .ui-dialog-buttonpane button{
 227+-moz-border-radius:4px;
 228+-webkit-border-radius:4px;
 229+padding:0.2em 0.6em 0.15em !important;
 230+margin:0.5em 0 0.5em 0.4em !important;
 231+border:1px solid #a6a6a6 !important;
 232+background:#f2f2f2 url( ../images/wikiEditor/dialogs/button_off.png ) repeat-x scroll 50% 100% !important;
 233+}
 234+.ui-dialog .ui-dialog-buttonpane button:hover{
 235+background:#ebf2f9 url( ../images/wikiEditor/dialogs/button_over.png ) repeat-x scroll 50% 100% !important;
 236+}
 237+.ui-dialog .ui-dialog-buttonpane button:active,
 238+.ui-dialog .ui-dialog-buttonpane button:focus{
 239+background:#bfbfbf url( ../images/wikiEditor/dialogs/button_down.png ) repeat-x scroll 50% 100% !important;
 240+}
226241 .ui-dialog .ui-dialog-buttonpane button.disabled{
227242 color:#7f7f7f;
228 -background:#f2f2f2;
229243 border-color:#cccccc;
 244+background:#f2f2f2 url( ../images/wikiEditor/dialogs/button_disabled.png ) repeat-x scroll 50% 100% !important;
230245 }
 246+.ui-dialog .ui-dialog-buttonpane button::-moz-focus-inner{
 247+border:0;
 248+}
 249+.ui-widget-header{
 250+background:#f0f0f0 url( ../images/wikiEditor/dialogs/titlebar_fade.png ) repeat-x scroll 50% 100% !important;
 251+}
 252+.ui-icon-closethick{
 253+background:url( ../images/wikiEditor/dialogs/close_x.png ) no-repeat 50% 50% !important;
 254+}
231255 .ui-dialog .ui-dialog-buttonpane{
232256 margin-top:0 !important;
233257 padding:0.3em 1em 0.5em 1em !important;
234258 }
235 -body.rtl .ui-dialog .ui-dialog-buttonpane button{
236 -float:left;
237 -}
238259 .ui-dialog-content fieldset{
239260 border:none !important;
240261 margin:0 !important;
241262 }
 263+.ui-widget-header{
 264+border-bottom:1px solid #6bc8f3 !important;
 265+}
 266+.wikieditor-toolbar-field-wrapper{
 267+padding:0 0 25px 0;
 268+}
 269+.ui-widget-content{
 270+border:none !important;
 271+}
 272+#wikieditor-toolbar-table-dialog fieldset{
 273+width:200px;
 274+padding:30px 0 0;
 275+float:left;
 276+}
 277+.wikieditor-toolbar-table-preview-wrapper{
 278+padding:30px 0 0;
 279+width:280px;
 280+float:right;
 281+}
242282 .wikieditor-toolbar-table-preview-content *{
243283 cursor:default;
244284 }
 285+.ui-widget .wikieditor-toolbar-table-preview-wrapper table{
 286+width:100% !important;
 287+}
 288+.ui-widget .wikieditor-toolbar-table-preview-content table td{
 289+padding:10px 4px !important;
 290+}
 291+.ui-widget .wikieditor-toolbar-table-preview-content table th{
 292+padding:7px 3px !important;
 293+}
 294+.wikieditor-toolbar-table-dimension-fields{
 295+overflow:visible;
 296+width:100%;
 297+margin:0 4px;
 298+}
 299+.wikieditor-toolbar-table-dimension-fields .wikieditor-toolbar-field-wrapper{
 300+float:left;
 301+margin-right:20px;
 302+vertical-align:bottom;
 303+}
 304+body.rtl .ui-dialog .ui-dialog-buttonpane button{
 305+float:left;
 306+margin:0.5em 0.4 0.5em 0em !important;
 307+}
245308 body.rtl .ui-dialog .ui-dialog-titlebar-close{
246309 left:0.75em;
247310 right:auto;
@@ -248,9 +311,6 @@
249312 body.rtl .ui-dialog .ui-dialog-title{
250313 float:right;
251314 }
252 -.ui-widget-header{
253 -border-bottom:1px solid #6bc8f3 !important;
254 -}
255315 .wikiEditor-ui-toc{
256316 padding:0;
257317 overflow:auto;
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php
@@ -35,7 +35,7 @@
3636 array(
3737 'src' => 'Modules/Toolbar/Toolbar.js',
3838 'class' => 'wikiEditor.config.toolbar',
39 - 'version' => 20
 39+ 'version' => 21
4040 ),
4141 array(
4242 'src' => 'Modules/TemplateEditor/TemplateEditor.js',
@@ -44,10 +44,10 @@
4545 ),
4646 ),
4747 'combined' => array(
48 - array( 'src' => 'WikiEditor.combined.js', 'version' => 21 ),
 48+ array( 'src' => 'WikiEditor.combined.js', 'version' => 22 ),
4949 ),
5050 'minified' => array(
51 - array( 'src' => 'WikiEditor.combined.min.js', 'version' => 21 ),
 51+ array( 'src' => 'WikiEditor.combined.min.js', 'version' => 22 ),
5252 ),
5353 );
5454 static $messages = array(
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.js
@@ -1545,17 +1545,37 @@
15461546 'insert-table': {
15471547 titleMsg: 'wikieditor-toolbar-tool-table-title',
15481548 id: 'wikieditor-toolbar-table-dialog',
1549 - // FIXME: All kinds of uglinesses and styling issues
1550 - // FIXME: Rows are identical so sorting has no effect
15511549 // FIXME: Localize 'x'?
15521550 html: '\
1553 - <fieldset><table><tr><td colspan="3">\
1554 - <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
1555 - <label for="wikieditor-toolbar-table-dimensions-header"\
1556 - rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
1557 - </td><td rowspan="4" class="wikieditor-toolbar-table-preview-wrapper" >\
 1551+ <fieldset><div class="wikieditor-toolbar-table-form">\
 1552+ <div class="wikieditor-toolbar-field-wrapper">\
 1553+ <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
 1554+ <label for="wikieditor-toolbar-table-dimensions-header"\
 1555+ rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
 1556+ </div>\
 1557+ <div class="wikieditor-toolbar-field-wrapper">\
 1558+ <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
 1559+ <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
 1560+ </div>\
 1561+ <div class="wikieditor-toolbar-field-wrapper">\
 1562+ <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
 1563+ <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
 1564+ </div>\
 1565+ <div class="wikieditor-toolbar-table-dimension-fields">\
 1566+ <div class="wikieditor-toolbar-field-wrapper">\
 1567+ <label for="wikieditor-toolbar-table-dimensions-rows"\
 1568+ rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
 1569+ <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
 1570+ </div>\
 1571+ <div class="wikieditor-toolbar-field-wrapper">\
 1572+ <label for="wikieditor-toolbar-table-dimensions-columns"\
 1573+ rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
 1574+ <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
 1575+ </div>\
 1576+ </div>\
 1577+ </div></fieldset>\
 1578+ <div class="wikieditor-toolbar-table-preview-wrapper" >\
15581579 <span rel="wikieditor-toolbar-tool-table-example"></span>\
1559 - <div class="wikieditor-toolbar-table-preview-frame">\
15601580 <div class="wikieditor-toolbar-table-preview-content">\
15611581 <table id="wikieditor-toolbar-table-preview" class="wikieditor-toolbar-table-preview wikitable">\
15621582 <tr class="wikieditor-toolbar-table-preview-header">\
@@ -1581,24 +1601,7 @@
15821602 </tr>\
15831603 </table>\
15841604 </div>\
1585 - </div>\
1586 - </td></tr><tr><td colspan="3">\
1587 - <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
1588 - <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
1589 - </td></tr><tr><td colspan="3">\
1590 - <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
1591 - <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
1592 - </td></tr><tr><td>\
1593 - <label for="wikieditor-toolbar-table-dimensions-rows"\
1594 - rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
1595 - <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
1596 - </td><td>\
1597 - <br />x\
1598 - </td><td>\
1599 - <label for="wikieditor-toolbar-table-dimensions-columns"\
1600 - rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
1601 - <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
1602 - </td></tr></table></fieldset>',
 1605+ </div>',
16031606 init: function() {
16041607 $j(this).find( '[rel]' ).each( function() {
16051608 $j(this).text( gM( $j(this).attr( 'rel' ) ) );
@@ -1650,6 +1653,7 @@
16511654 },
16521655 dialog: {
16531656 resizable: false,
 1657+ width: 500,
16541658 buttons: {
16551659 'wikieditor-toolbar-tool-table-insert': function() {
16561660 var rowsVal = $j( '#wikieditor-toolbar-table-dimensions-rows' ).val();
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.min.js
@@ -75,13 +75,35 @@
7676 $j('#wikieditor-toolbar-link-'+type).attr('checked','checked');}
7777 $j('#wikieditor-toolbar-link-int-text').data('untouched',$j('#wikieditor-toolbar-link-int-text').val()==$j('#wikieditor-toolbar-link-int-target').val());$j('#wikieditor-toolbar-link-int-target').suggestions();$j('#wikieditor-toolbar-link-int-text, #wikiedit-toolbar-link-int-target').each(function(){if($j(this).val()=='')
7878 $j(this).parent().find('label').show();});if(!($j(this).data('dialogkeypressset'))){$j(this).data('dialogkeypressset',true);$j(this).closest('.ui-dialog').keypress(function(e){if((e.keyCode||e.which)==13){$j(this).find('button:first').click();e.preventDefault();}});}}}},'insert-table':{titleMsg:'wikieditor-toolbar-tool-table-title',id:'wikieditor-toolbar-table-dialog',html:'\
79 - <fieldset><table><tr><td colspan="3">\
80 - <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
81 - <label for="wikieditor-toolbar-table-dimensions-header"\
82 - rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
83 - </td><td rowspan="4" class="wikieditor-toolbar-table-preview-wrapper" >\
 79+ <fieldset><div class="wikieditor-toolbar-table-form">\
 80+ <div class="wikieditor-toolbar-field-wrapper">\
 81+ <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
 82+ <label for="wikieditor-toolbar-table-dimensions-header"\
 83+ rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
 84+ </div>\
 85+ <div class="wikieditor-toolbar-field-wrapper">\
 86+ <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
 87+ <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
 88+ </div>\
 89+ <div class="wikieditor-toolbar-field-wrapper">\
 90+ <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
 91+ <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
 92+ </div>\
 93+ <div class="wikieditor-toolbar-table-dimension-fields">\
 94+ <div class="wikieditor-toolbar-field-wrapper">\
 95+ <label for="wikieditor-toolbar-table-dimensions-rows"\
 96+ rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
 97+ <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
 98+ </div>\
 99+ <div class="wikieditor-toolbar-field-wrapper">\
 100+ <label for="wikieditor-toolbar-table-dimensions-columns"\
 101+ rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
 102+ <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
 103+ </div>\
 104+ </div>\
 105+ </div></fieldset>\
 106+ <div class="wikieditor-toolbar-table-preview-wrapper" >\
84107 <span rel="wikieditor-toolbar-tool-table-example"></span>\
85 - <div class="wikieditor-toolbar-table-preview-frame">\
86108 <div class="wikieditor-toolbar-table-preview-content">\
87109 <table id="wikieditor-toolbar-table-preview" class="wikieditor-toolbar-table-preview wikitable">\
88110 <tr class="wikieditor-toolbar-table-preview-header">\
@@ -107,26 +129,9 @@
108130 </tr>\
109131 </table>\
110132 </div>\
111 - </div>\
112 - </td></tr><tr><td colspan="3">\
113 - <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
114 - <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
115 - </td></tr><tr><td colspan="3">\
116 - <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
117 - <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
118 - </td></tr><tr><td>\
119 - <label for="wikieditor-toolbar-table-dimensions-rows"\
120 - rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
121 - <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
122 - </td><td>\
123 - <br />x\
124 - </td><td>\
125 - <label for="wikieditor-toolbar-table-dimensions-columns"\
126 - rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
127 - <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
128 - </td></tr></table></fieldset>',init:function(){$j(this).find('[rel]').each(function(){$j(this).text(gM($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')
 133+ </div>',init:function(){$j(this).find('[rel]').each(function(){$j(this).text(gM($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')
129134 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')
130 -ts_makeSortable($j('#wikieditor-toolbar-table-preview, #wikieditor-toolbar-table-preview2').filter('.sortable').get(0));});},dialog:{resizable:false,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());if(isNaN(rows)||isNaN(cols)||rows!=rowsVal||cols!=colsVal){alert(gM('wikieditor-toolbar-tool-table-invalidnumber'));return;}
 135+ts_makeSortable($j('#wikieditor-toolbar-table-preview, #wikieditor-toolbar-table-preview2').filter('.sortable').get(0));});},dialog:{resizable:false,width:500,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());if(isNaN(rows)||isNaN(cols)||rows!=rowsVal||cols!=colsVal){alert(gM('wikieditor-toolbar-tool-table-invalidnumber'));return;}
131136 if(rows+header==0||cols==0){alert(gM('wikieditor-toolbar-tool-table-zero'));return;}
132137 if(rows*cols>1000){alert(gM('wikieditor-toolbar-tool-table-toomany',1000));return;}
133138 var headerText=gM('wikieditor-toolbar-tool-table-example-header');var normalText=gM('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;}
Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js
@@ -1464,17 +1464,37 @@
14651465 'insert-table': {
14661466 titleMsg: 'wikieditor-toolbar-tool-table-title',
14671467 id: 'wikieditor-toolbar-table-dialog',
1468 - // FIXME: All kinds of uglinesses and styling issues
1469 - // FIXME: Rows are identical so sorting has no effect
14701468 // FIXME: Localize 'x'?
14711469 html: '\
1472 - <fieldset><table><tr><td colspan="3">\
1473 - <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
1474 - <label for="wikieditor-toolbar-table-dimensions-header"\
1475 - rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
1476 - </td><td rowspan="4" class="wikieditor-toolbar-table-preview-wrapper" >\
 1470+ <fieldset><div class="wikieditor-toolbar-table-form">\
 1471+ <div class="wikieditor-toolbar-field-wrapper">\
 1472+ <input type="checkbox" id="wikieditor-toolbar-table-dimensions-header" checked />\
 1473+ <label for="wikieditor-toolbar-table-dimensions-header"\
 1474+ rel="wikieditor-toolbar-tool-table-dimensions-header"></label>\
 1475+ </div>\
 1476+ <div class="wikieditor-toolbar-field-wrapper">\
 1477+ <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
 1478+ <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
 1479+ </div>\
 1480+ <div class="wikieditor-toolbar-field-wrapper">\
 1481+ <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
 1482+ <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
 1483+ </div>\
 1484+ <div class="wikieditor-toolbar-table-dimension-fields">\
 1485+ <div class="wikieditor-toolbar-field-wrapper">\
 1486+ <label for="wikieditor-toolbar-table-dimensions-rows"\
 1487+ rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
 1488+ <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
 1489+ </div>\
 1490+ <div class="wikieditor-toolbar-field-wrapper">\
 1491+ <label for="wikieditor-toolbar-table-dimensions-columns"\
 1492+ rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
 1493+ <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
 1494+ </div>\
 1495+ </div>\
 1496+ </div></fieldset>\
 1497+ <div class="wikieditor-toolbar-table-preview-wrapper" >\
14771498 <span rel="wikieditor-toolbar-tool-table-example"></span>\
1478 - <div class="wikieditor-toolbar-table-preview-frame">\
14791499 <div class="wikieditor-toolbar-table-preview-content">\
14801500 <table id="wikieditor-toolbar-table-preview" class="wikieditor-toolbar-table-preview wikitable">\
14811501 <tr class="wikieditor-toolbar-table-preview-header">\
@@ -1500,24 +1520,7 @@
15011521 </tr>\
15021522 </table>\
15031523 </div>\
1504 - </div>\
1505 - </td></tr><tr><td colspan="3">\
1506 - <input type="checkbox" id="wikieditor-toolbar-table-wikitable" checked />\
1507 - <label for="wikieditor-toolbar-table-wikitable" rel="wikieditor-toolbar-tool-table-wikitable"></label>\
1508 - </td></tr><tr><td colspan="3">\
1509 - <input type="checkbox" id="wikieditor-toolbar-table-sortable" />\
1510 - <label for="wikieditor-toolbar-table-sortable" rel="wikieditor-toolbar-tool-table-sortable"></label>\
1511 - </td></tr><tr><td>\
1512 - <label for="wikieditor-toolbar-table-dimensions-rows"\
1513 - rel="wikieditor-toolbar-tool-table-dimensions-rows"></label><br />\
1514 - <input type="text" id="wikieditor-toolbar-table-dimensions-rows" size="4" />\
1515 - </td><td>\
1516 - <br />x\
1517 - </td><td>\
1518 - <label for="wikieditor-toolbar-table-dimensions-columns"\
1519 - rel="wikieditor-toolbar-tool-table-dimensions-columns"></label><br />\
1520 - <input type="text" id="wikieditor-toolbar-table-dimensions-columns" size="4" />\
1521 - </td></tr></table></fieldset>',
 1524+ </div>',
15221525 init: function() {
15231526 $j(this).find( '[rel]' ).each( function() {
15241527 $j(this).text( gM( $j(this).attr( 'rel' ) ) );
@@ -1569,6 +1572,7 @@
15701573 },
15711574 dialog: {
15721575 resizable: false,
 1576+ width: 500,
15731577 buttons: {
15741578 'wikieditor-toolbar-tool-table-insert': function() {
15751579 var rowsVal = $j( '#wikieditor-toolbar-table-dimensions-rows' ).val();

Follow-up revisions

RevisionCommit summaryAuthorDate
r61606Namespacing css for wikieditor dialogs in response to Mdale's comment on r613...adam21:12, 27 January 2010

Comments

#Comment by Mdale (talk | contribs)   18:23, 27 January 2010

I would request that in css updates: 61549, 61523, 61308, 61300 if possible the classes could be a bit more specific and try and avoid the "!important" usage. Also if we could check how it affects the add-media-wizard when we make these changes that would be good.

Status & tagging log