Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.dialogs.js |
— | — | @@ -76,30 +76,29 @@ |
77 | 77 | 'insert-link': { |
78 | 78 | titleMsg: 'edittoolbar-tool-link-title', |
79 | 79 | id: 'edittoolbar-link-dialog', |
80 | | - // TODO: break this line |
81 | 80 | html: '\ |
82 | 81 | <div id="edittoolbar-link-tabs">\ |
83 | 82 | <ul>\ |
84 | 83 | <li><a href="#edittoolbar-link-dialog-tab-int" rel="edittoolbar-tool-link-int"></a></li>\ |
85 | 84 | <li><a href="#edittoolbar-link-dialog-tab-ext" rel="edittoolbar-tool-link-ext"></a></li>\ |
86 | 85 | </ul>\ |
87 | | - <div id="edittoolbar-link-dialog-tab-int">\ |
88 | | - <form>\ |
89 | | - <label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label>\ |
| 86 | + <div id="edittoolbar-link-dialog-tab-int"><form><fieldset><table><tr>\ |
| 87 | + <td><label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label></td>\ |
| 88 | + <td>\ |
90 | 89 | <input type="text" id="edittoolbar-link-int-target" />\ |
91 | | - <div id="edittoolbar-link-int-target-status" style="display: inline;"></div><br />\ |
92 | | - <label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label>\ |
93 | | - <input type="text" id="edittoolbar-link-int-text" />\ |
94 | | - </form>\ |
95 | | - </div>\ |
96 | | - <div id="edittoolbar-link-dialog-tab-ext">\ |
97 | | - <form>\ |
98 | | - <label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label>\ |
99 | | - <input type="text" id="edittoolbar-link-ext-target" /><br />\ |
100 | | - <label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label>\ |
101 | | - <input type="text" id="edittoolbar-link-ext-text" />\ |
102 | | - </form>\ |
103 | | - </div>\ |
| 90 | + <div id="edittoolbar-link-int-target-status" style="display: inline;"></div>\ |
| 91 | + </td>\ |
| 92 | + </tr><tr>\ |
| 93 | + <td><label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label></td>\ |
| 94 | + <td><input type="text" id="edittoolbar-link-int-text" /></td>\ |
| 95 | + </table></fieldset></form></div>\ |
| 96 | + <div id="edittoolbar-link-dialog-tab-ext"><form><fieldset><table><tr>\ |
| 97 | + <td><label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label></td>\ |
| 98 | + <td><input type="text" id="edittoolbar-link-ext-target" /></td>\ |
| 99 | + </tr><tr>\ |
| 100 | + <td><label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label></td>\ |
| 101 | + <td><input type="text" id="edittoolbar-link-ext-text" /></td>\ |
| 102 | + </table></fieldset></form></div>\ |
104 | 103 | </div>', |
105 | 104 | init: function() { |
106 | 105 | $(this).find( '[rel]' ).each( function() { |
— | — | @@ -341,29 +340,21 @@ |
342 | 341 | titleMsg: 'edittoolbar-tool-table-title', |
343 | 342 | id: 'edittoolbar-table-dialog', |
344 | 343 | html: '\ |
345 | | - <form>\ |
346 | | - <fieldset>\ |
347 | | - <legend rel="edittoolbar-tool-table-dimensions"></legend>\ |
348 | | - <table>\ |
349 | | - <tr>\ |
350 | | - <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
351 | | - rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
352 | | - <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
353 | | - <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
354 | | - rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
355 | | - <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
356 | | - </tr>\ |
357 | | - <tr>\ |
358 | | - <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
359 | | - rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
360 | | - <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
361 | | - <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
362 | | - rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
363 | | - <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
364 | | - </tr>\ |
365 | | - </table>\ |
366 | | - </fieldset>\ |
367 | | - </form>', |
| 344 | + <form><fieldset><legend rel="edittoolbar-tool-table-dimensions"></legend><table><tr>\ |
| 345 | + <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
| 346 | + rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
| 347 | + <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
| 348 | + <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
| 349 | + rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
| 350 | + <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
| 351 | + </tr><tr>\ |
| 352 | + <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
| 353 | + rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
| 354 | + <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
| 355 | + <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
| 356 | + rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
| 357 | + <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
| 358 | + </tr></table></fieldset></form>', |
368 | 359 | init: function() { |
369 | 360 | $(this).find( '[rel]' ).each( function() { |
370 | 361 | $(this).text( gM( $(this).attr( 'rel' ) ) ); |
— | — | @@ -416,22 +407,23 @@ |
417 | 408 | 'search-and-replace': { |
418 | 409 | titleMsg: 'edittoolbar-tool-replace-title', |
419 | 410 | id: 'edittoolbar-replace-dialog', |
420 | | - // TODO: break this line |
421 | 411 | html: '\ |
422 | | - <form>\ |
423 | | - <fieldset>\ |
424 | | - <label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label>\ |
425 | | - <input type="text" id="edittoolbar-replace-search" /><br />\ |
426 | | - <label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label>\ |
427 | | - <input type="text" id="edittoolbar-replace-replace" /><br />\ |
428 | | - <input type="checkbox" id="edittoolbar-replace-case" />\ |
429 | | - <label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label><br />\ |
430 | | - <input type="checkbox" id="edittoolbar-replace-regex" />\ |
431 | | - <label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label><br />\ |
432 | | - <input type="checkbox" id="edittoolbar-replace-all" />\ |
433 | | - <label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label>\ |
434 | | - </fieldset>\ |
435 | | - </form>', |
| 412 | + <form><fieldset><table><tr>\ |
| 413 | + <td><label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label></td>\ |
| 414 | + <td><input type="text" id="edittoolbar-replace-search" /></td>\ |
| 415 | + </tr><tr>\ |
| 416 | + <td><label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label></td>\ |
| 417 | + <td><input type="text" id="edittoolbar-replace-replace" /></td>\ |
| 418 | + </tr></table><table><tr>\ |
| 419 | + <td><input type="checkbox" id="edittoolbar-replace-case" /></td>\ |
| 420 | + <td><label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label></td>\ |
| 421 | + </tr><tr>\ |
| 422 | + <td><input type="checkbox" id="edittoolbar-replace-regex" /></td>\ |
| 423 | + <td><label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label></td>\ |
| 424 | + </tr><tr>\ |
| 425 | + <td><input type="checkbox" id="edittoolbar-replace-all" /></td>\ |
| 426 | + <td><label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label></td>\ |
| 427 | + </tr></table></fieldset></form>', |
436 | 428 | init: function() { |
437 | 429 | $(this).find( '[rel]' ).each( function() { |
438 | 430 | $(this).text( gM( $(this).attr( 'rel' ) ) ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -1087,30 +1087,29 @@ |
1088 | 1088 | 'insert-link': { |
1089 | 1089 | titleMsg: 'edittoolbar-tool-link-title', |
1090 | 1090 | id: 'edittoolbar-link-dialog', |
1091 | | - // TODO: break this line |
1092 | 1091 | html: '\ |
1093 | 1092 | <div id="edittoolbar-link-tabs">\ |
1094 | 1093 | <ul>\ |
1095 | 1094 | <li><a href="#edittoolbar-link-dialog-tab-int" rel="edittoolbar-tool-link-int"></a></li>\ |
1096 | 1095 | <li><a href="#edittoolbar-link-dialog-tab-ext" rel="edittoolbar-tool-link-ext"></a></li>\ |
1097 | 1096 | </ul>\ |
1098 | | - <div id="edittoolbar-link-dialog-tab-int">\ |
1099 | | - <form>\ |
1100 | | - <label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label>\ |
| 1097 | + <div id="edittoolbar-link-dialog-tab-int"><form><fieldset><table><tr>\ |
| 1098 | + <td><label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label></td>\ |
| 1099 | + <td>\ |
1101 | 1100 | <input type="text" id="edittoolbar-link-int-target" />\ |
1102 | | - <div id="edittoolbar-link-int-target-status" style="display: inline;"></div><br />\ |
1103 | | - <label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label>\ |
1104 | | - <input type="text" id="edittoolbar-link-int-text" />\ |
1105 | | - </form>\ |
1106 | | - </div>\ |
1107 | | - <div id="edittoolbar-link-dialog-tab-ext">\ |
1108 | | - <form>\ |
1109 | | - <label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label>\ |
1110 | | - <input type="text" id="edittoolbar-link-ext-target" /><br />\ |
1111 | | - <label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label>\ |
1112 | | - <input type="text" id="edittoolbar-link-ext-text" />\ |
1113 | | - </form>\ |
1114 | | - </div>\ |
| 1101 | + <div id="edittoolbar-link-int-target-status" style="display: inline;"></div>\ |
| 1102 | + </td>\ |
| 1103 | + </tr><tr>\ |
| 1104 | + <td><label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label></td>\ |
| 1105 | + <td><input type="text" id="edittoolbar-link-int-text" /></td>\ |
| 1106 | + </table></fieldset></form></div>\ |
| 1107 | + <div id="edittoolbar-link-dialog-tab-ext"><form><fieldset><table><tr>\ |
| 1108 | + <td><label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label></td>\ |
| 1109 | + <td><input type="text" id="edittoolbar-link-ext-target" /></td>\ |
| 1110 | + </tr><tr>\ |
| 1111 | + <td><label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label></td>\ |
| 1112 | + <td><input type="text" id="edittoolbar-link-ext-text" /></td>\ |
| 1113 | + </table></fieldset></form></div>\ |
1115 | 1114 | </div>', |
1116 | 1115 | init: function() { |
1117 | 1116 | $(this).find( '[rel]' ).each( function() { |
— | — | @@ -1352,29 +1351,21 @@ |
1353 | 1352 | titleMsg: 'edittoolbar-tool-table-title', |
1354 | 1353 | id: 'edittoolbar-table-dialog', |
1355 | 1354 | html: '\ |
1356 | | - <form>\ |
1357 | | - <fieldset>\ |
1358 | | - <legend rel="edittoolbar-tool-table-dimensions"></legend>\ |
1359 | | - <table>\ |
1360 | | - <tr>\ |
1361 | | - <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
1362 | | - rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
1363 | | - <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
1364 | | - <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
1365 | | - rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
1366 | | - <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
1367 | | - </tr>\ |
1368 | | - <tr>\ |
1369 | | - <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
1370 | | - rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
1371 | | - <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
1372 | | - <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
1373 | | - rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
1374 | | - <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
1375 | | - </tr>\ |
1376 | | - </table>\ |
1377 | | - </fieldset>\ |
1378 | | - </form>', |
| 1355 | + <form><fieldset><legend rel="edittoolbar-tool-table-dimensions"></legend><table><tr>\ |
| 1356 | + <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
| 1357 | + rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
| 1358 | + <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
| 1359 | + <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
| 1360 | + rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
| 1361 | + <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
| 1362 | + </tr><tr>\ |
| 1363 | + <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
| 1364 | + rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
| 1365 | + <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
| 1366 | + <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
| 1367 | + rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
| 1368 | + <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
| 1369 | + </tr></table></fieldset></form>', |
1379 | 1370 | init: function() { |
1380 | 1371 | $(this).find( '[rel]' ).each( function() { |
1381 | 1372 | $(this).text( gM( $(this).attr( 'rel' ) ) ); |
— | — | @@ -1427,22 +1418,23 @@ |
1428 | 1419 | 'search-and-replace': { |
1429 | 1420 | titleMsg: 'edittoolbar-tool-replace-title', |
1430 | 1421 | id: 'edittoolbar-replace-dialog', |
1431 | | - // TODO: break this line |
1432 | 1422 | html: '\ |
1433 | | - <form>\ |
1434 | | - <fieldset>\ |
1435 | | - <label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label>\ |
1436 | | - <input type="text" id="edittoolbar-replace-search" /><br />\ |
1437 | | - <label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label>\ |
1438 | | - <input type="text" id="edittoolbar-replace-replace" /><br />\ |
1439 | | - <input type="checkbox" id="edittoolbar-replace-case" />\ |
1440 | | - <label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label><br />\ |
1441 | | - <input type="checkbox" id="edittoolbar-replace-regex" />\ |
1442 | | - <label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label><br />\ |
1443 | | - <input type="checkbox" id="edittoolbar-replace-all" />\ |
1444 | | - <label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label>\ |
1445 | | - </fieldset>\ |
1446 | | - </form>', |
| 1423 | + <form><fieldset><table><tr>\ |
| 1424 | + <td><label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label></td>\ |
| 1425 | + <td><input type="text" id="edittoolbar-replace-search" /></td>\ |
| 1426 | + </tr><tr>\ |
| 1427 | + <td><label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label></td>\ |
| 1428 | + <td><input type="text" id="edittoolbar-replace-replace" /></td>\ |
| 1429 | + </tr></table><table><tr>\ |
| 1430 | + <td><input type="checkbox" id="edittoolbar-replace-case" /></td>\ |
| 1431 | + <td><label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label></td>\ |
| 1432 | + </tr><tr>\ |
| 1433 | + <td><input type="checkbox" id="edittoolbar-replace-regex" /></td>\ |
| 1434 | + <td><label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label></td>\ |
| 1435 | + </tr><tr>\ |
| 1436 | + <td><input type="checkbox" id="edittoolbar-replace-all" /></td>\ |
| 1437 | + <td><label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label></td>\ |
| 1438 | + </tr></table></fieldset></form>', |
1447 | 1439 | init: function() { |
1448 | 1440 | $(this).find( '[rel]' ).each( function() { |
1449 | 1441 | $(this).text( gM( $(this).attr( 'rel' ) ) ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -115,23 +115,23 @@ |
116 | 116 | <li><a href="#edittoolbar-link-dialog-tab-int" rel="edittoolbar-tool-link-int"></a></li>\ |
117 | 117 | <li><a href="#edittoolbar-link-dialog-tab-ext" rel="edittoolbar-tool-link-ext"></a></li>\ |
118 | 118 | </ul>\ |
119 | | - <div id="edittoolbar-link-dialog-tab-int">\ |
120 | | - <form>\ |
121 | | - <label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label>\ |
| 119 | + <div id="edittoolbar-link-dialog-tab-int"><form><fieldset><table><tr>\ |
| 120 | + <td><label for="edittoolbar-link-int-target" rel="edittoolbar-tool-link-int-target"></label></td>\ |
| 121 | + <td>\ |
122 | 122 | <input type="text" id="edittoolbar-link-int-target" />\ |
123 | | - <div id="edittoolbar-link-int-target-status" style="display: inline;"></div><br />\ |
124 | | - <label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label>\ |
125 | | - <input type="text" id="edittoolbar-link-int-text" />\ |
126 | | - </form>\ |
127 | | - </div>\ |
128 | | - <div id="edittoolbar-link-dialog-tab-ext">\ |
129 | | - <form>\ |
130 | | - <label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label>\ |
131 | | - <input type="text" id="edittoolbar-link-ext-target" /><br />\ |
132 | | - <label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label>\ |
133 | | - <input type="text" id="edittoolbar-link-ext-text" />\ |
134 | | - </form>\ |
135 | | - </div>\ |
| 123 | + <div id="edittoolbar-link-int-target-status" style="display: inline;"></div>\ |
| 124 | + </td>\ |
| 125 | + </tr><tr>\ |
| 126 | + <td><label for="edittoolbar-link-int-text" rel="edittoolbar-tool-link-int-text"></label></td>\ |
| 127 | + <td><input type="text" id="edittoolbar-link-int-text" /></td>\ |
| 128 | + </table></fieldset></form></div>\ |
| 129 | + <div id="edittoolbar-link-dialog-tab-ext"><form><fieldset><table><tr>\ |
| 130 | + <td><label for="edittoolbar-link-ext-target" rel="edittoolbar-tool-link-ext-target"></label></td>\ |
| 131 | + <td><input type="text" id="edittoolbar-link-ext-target" /></td>\ |
| 132 | + </tr><tr>\ |
| 133 | + <td><label for="edittoolbar-link-ext-text" rel="edittoolbar-tool-link-ext-text"></label></td>\ |
| 134 | + <td><input type="text" id="edittoolbar-link-ext-text" /></td>\ |
| 135 | + </table></fieldset></form></div>\ |
136 | 136 | </div>',init:function(){$(this).find('[rel]').each(function(){$(this).text(gM($(this).attr('rel')));});$('#edittoolbar-link-tabs').tabs();$('#edittoolbar-link-int-target').bind('keypress paste',function(){if($('#edittoolbar-link-int-text').data('untouched')) |
137 | 137 | setTimeout(function(){$('#edittoolbar-link-int-text').val($('#edittoolbar-link-int-target').val());},0);});$('#edittoolbar-link-int-text').bind('keypress paste',function(){$(this).data('untouched',false);});$('#edittoolbar-link-ext-target').val('http://');var existsImg=$.wikiEditor.imgPath+'dialogs/'+'insert-link-exists.png';var notexistsImg=$.wikiEditor.imgPath+'dialogs/'+'insert-link-notexists.png';var invalidImg=$.wikiEditor.imgPath+'dialogs/'+'insert-link-invalid.png';var loadingImg=$.wikiEditor.imgPath+'loading.gif';var existsMsg=gM('edittoolbar-tool-link-int-target-status-exists');var notexistsMsg=gM('edittoolbar-tool-link-int-target-status-notexists');var invalidMsg=gM('edittoolbar-tool-link-int-target-status-invalid');var loadingMsg=gM('edittoolbar-tool-link-int-target-status-loading');$('#edittoolbar-link-int-target-status').append($('<img />').attr({'id':'edittoolbar-link-int-target-status-exists','src':existsImg,'alt':existsMsg,'title':existsMsg})).append($('<img />').attr({'id':'edittoolbar-link-int-target-status-notexists','src':notexistsImg,'alt':notexistsMsg,'title':notexistsMsg})).append($('<img />').attr({'id':'edittoolbar-link-int-target-status-invalid','src':invalidImg,'alt':invalidMsg,'title':invalidMsg})).append($('<img />').attr({'id':'edittoolbar-link-int-target-status-loading','src':loadingImg,'alt':loadingMsg,'title':loadingMsg})).data('cache',{}).children().hide();function updateExistence(target){function updateWidget(status){$('#edittoolbar-link-int-target-status').children().hide();$('#edittoolbar-link-int-target-status-'+status).show();} |
138 | 138 | var request=$('#edittoolbar-link-int-target-status').data('request');if(request) |
— | — | @@ -161,47 +161,41 @@ |
162 | 162 | $('#edittoolbar-link-ext-target').val(exttarget).change();if(tab!=-1) |
163 | 163 | $('#edittoolbar-link-tabs').tabs('select',tab);} |
164 | 164 | $('#edittoolbar-link-int-text').data('untouched',$('#edittoolbar-link-int-text').val()==$('#edittoolbar-link-int-target').val());}}},'insert-table':{titleMsg:'edittoolbar-tool-table-title',id:'edittoolbar-table-dialog',html:'\ |
165 | | - <form>\ |
166 | | - <fieldset>\ |
167 | | - <legend rel="edittoolbar-tool-table-dimensions"></legend>\ |
168 | | - <table>\ |
169 | | - <tr>\ |
170 | | - <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
171 | | - rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
172 | | - <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
173 | | - <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
174 | | - rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
175 | | - <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
176 | | - </tr>\ |
177 | | - <tr>\ |
178 | | - <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
179 | | - rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
180 | | - <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
181 | | - <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
182 | | - rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
183 | | - <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
184 | | - </tr>\ |
185 | | - </table>\ |
186 | | - </fieldset>\ |
187 | | - </form>',init:function(){$(this).find('[rel]').each(function(){$(this).text(gM($(this).attr('rel')));});},dialog:{width:350,buttons:{'edittoolbar-tool-table-insert':function(){var rows=parseInt($('#edittoolbar-table-dimensions-rows').val());var cols=parseInt($('#edittoolbar-table-dimensions-columns').val());var hrows=parseInt($('#edittoolbar-table-dimensions-headerrows').val());var hcols=parseInt($('#edittoolbar-table-dimensions-headercolumns').val());var table="{|\n";for(var r=0;r<rows;r++){table+="|-\n";for(var c=0;c<cols;c++){var isHeader=(r<hrows||c<hcols);var delim=isHeader?'!':'|';if(c>0) |
| 165 | + <form><fieldset><legend rel="edittoolbar-tool-table-dimensions"></legend><table><tr>\ |
| 166 | + <td class="label"><label for="edittoolbar-table-dimensions-columns"\ |
| 167 | + rel="edittoolbar-tool-table-dimensions-columns"></label></td>\ |
| 168 | + <td><input type="text" id="edittoolbar-table-dimensions-columns" size="2" /></td>\ |
| 169 | + <td class="label"><label for="edittoolbar-table-dimensions-rows"\ |
| 170 | + rel="edittoolbar-tool-table-dimensions-rows"></label></td>\ |
| 171 | + <td><input type="text" id="edittoolbar-table-dimensions-rows" size="2" /></td>\ |
| 172 | + </tr><tr>\ |
| 173 | + <td class="label"><label for="edittoolbar-table-dimensions-headercolumns"\ |
| 174 | + rel="edittoolbar-tool-table-dimensions-headercolumns"></label></td>\ |
| 175 | + <td><input type="text" id="edittoolbar-table-dimensions-headercolumns" size="2" /></td>\ |
| 176 | + <td class="label"><label for="edittoolbar-table-dimensions-headerrows"\ |
| 177 | + rel="edittoolbar-tool-table-dimensions-headerrows"></label></td>\ |
| 178 | + <td><input type="text" id="edittoolbar-table-dimensions-headerrows" size="2" /></td>\ |
| 179 | + </tr></table></fieldset></form>',init:function(){$(this).find('[rel]').each(function(){$(this).text(gM($(this).attr('rel')));});},dialog:{width:350,buttons:{'edittoolbar-tool-table-insert':function(){var rows=parseInt($('#edittoolbar-table-dimensions-rows').val());var cols=parseInt($('#edittoolbar-table-dimensions-columns').val());var hrows=parseInt($('#edittoolbar-table-dimensions-headerrows').val());var hcols=parseInt($('#edittoolbar-table-dimensions-headercolumns').val());var table="{|\n";for(var r=0;r<rows;r++){table+="|-\n";for(var c=0;c<cols;c++){var isHeader=(r<hrows||c<hcols);var delim=isHeader?'!':'|';if(c>0) |
188 | 180 | delim+=delim;table+=delim+' '+ |
189 | 181 | gM(isHeader?'edittoolbar-tool-table-example-header':'edittoolbar-tool-table-example',[r+1,c+1])+' ';} |
190 | 182 | table=table.substr(0,table.length-1)+"\n";} |
191 | 183 | table+="|}";$.wikiEditor.modules.toolbar.fn.doAction($(this).data('context'),{type:'encapsulate',options:{pre:table,ownline:true}},$(this));$(this).dialog('close');},'edittoolbar-tool-table-cancel':function(){$(this).dialog('close');}}}},'search-and-replace':{titleMsg:'edittoolbar-tool-replace-title',id:'edittoolbar-replace-dialog',html:'\ |
192 | | - <form>\ |
193 | | - <fieldset>\ |
194 | | - <label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label>\ |
195 | | - <input type="text" id="edittoolbar-replace-search" /><br />\ |
196 | | - <label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label>\ |
197 | | - <input type="text" id="edittoolbar-replace-replace" /><br />\ |
198 | | - <input type="checkbox" id="edittoolbar-replace-case" />\ |
199 | | - <label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label><br />\ |
200 | | - <input type="checkbox" id="edittoolbar-replace-regex" />\ |
201 | | - <label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label><br />\ |
202 | | - <input type="checkbox" id="edittoolbar-replace-all" />\ |
203 | | - <label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label>\ |
204 | | - </fieldset>\ |
205 | | - </form>',init:function(){$(this).find('[rel]').each(function(){$(this).text(gM($(this).attr('rel')));});},dialog:{width:350,buttons:{'edittoolbar-tool-replace-button':function(){var searchStr=$('#edittoolbar-replace-search').val();var replaceStr=$('#edittoolbar-replace-replace').val();var flags='';if(!$('#edittoolbar-replace-case').is(':checked')) |
| 184 | + <form><fieldset><table><tr>\ |
| 185 | + <td><label for="edittoolbar-replace-search" rel="edittoolbar-tool-replace-search"></label></td>\ |
| 186 | + <td><input type="text" id="edittoolbar-replace-search" /></td>\ |
| 187 | + </tr><tr>\ |
| 188 | + <td><label for="edittoolbar-replace-replace" rel="edittoolbar-tool-replace-replace"></label></td>\ |
| 189 | + <td><input type="text" id="edittoolbar-replace-replace" /></td>\ |
| 190 | + </tr></table><table><tr>\ |
| 191 | + <td><input type="checkbox" id="edittoolbar-replace-case" /></td>\ |
| 192 | + <td><label for="edittoolbar-replace-case" rel="edittoolbar-tool-replace-case"></label></td>\ |
| 193 | + </tr><tr>\ |
| 194 | + <td><input type="checkbox" id="edittoolbar-replace-regex" /></td>\ |
| 195 | + <td><label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label></td>\ |
| 196 | + </tr><tr>\ |
| 197 | + <td><input type="checkbox" id="edittoolbar-replace-all" /></td>\ |
| 198 | + <td><label for="edittoolbar-replace-all" rel="edittoolbar-tool-replace-all"></label></td>\ |
| 199 | + </tr></table></fieldset></form>',init:function(){$(this).find('[rel]').each(function(){$(this).text(gM($(this).attr('rel')));});},dialog:{width:350,buttons:{'edittoolbar-tool-replace-button':function(){var searchStr=$('#edittoolbar-replace-search').val();var replaceStr=$('#edittoolbar-replace-replace').val();var flags='';if(!$('#edittoolbar-replace-case').is(':checked')) |
206 | 200 | flags+='i';if($('#edittoolbar-replace-all').is(':checked')) |
207 | 201 | flags+='g';if(!$('#edittoolbar-replace-regex').is(':checked')) |
208 | 202 | searchStr=RegExp.escape(searchStr);var regex=new RegExp(searchStr,flags);var $textarea=$(this).data('context').$textarea;if(!$textarea.val().match(regex)) |