Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | 'change the subject of this thread: $1', |
261 | 261 | 'lqt-ajax-invalid-subject' => 'The subject you specified was invalid, probably ' . |
262 | 262 | 'because it was too long.', |
263 | | - 'lqt-ajax-no-subject' => 'You must specify a subject.', |
| 263 | + 'lqt-ajax-no-subject' => 'You must specify a subject for the new thread.', |
264 | 264 | 'lqt-save-subject-error-unknown' => 'An unknown error occurred when attempting ' . |
265 | 265 | 'to set the subject of this thread. Please try to do this by clicking "edit" on the top post.', |
266 | 266 | 'lqt-cancel-subject-edit' => 'Cancel', |
— | — | @@ -273,7 +273,7 @@ |
274 | 274 | 'lqt-drag-save' => 'Confirm', |
275 | 275 | 'lqt-drag-title' => 'Confirm drag', |
276 | 276 | 'lqt-drag-reason' => 'Reason:', |
277 | | - 'lqt-drag-subject' => 'Subject for new thread:', |
| 277 | + 'lqt-drag-subject' => 'Subject for new thread (mandatory):', |
278 | 278 | 'lqt-edit-signature' => '(edit signature)', |
279 | 279 | 'lqt-preview-signature' => '(preview)', |
280 | 280 | |
Index: trunk/extensions/LiquidThreads/lqt.css |
— | — | @@ -467,7 +467,8 @@ |
468 | 468 | border: 1px solid #3333ff !important; |
469 | 469 | background: yellow; |
470 | 470 | text-align: center; |
471 | | - color: #999999; |
| 471 | + color: #444444; |
| 472 | + font-weight: bold !important; |
472 | 473 | } |
473 | 474 | |
474 | 475 | .lqt-drop-zone.lqt-drop-zone-active { |
— | — | @@ -479,7 +480,6 @@ |
480 | 481 | border: 1px solid #3333ff !important; |
481 | 482 | color: #3333ff !important; |
482 | 483 | background: #00ff7f; |
483 | | - font-weight: bold !important; |
484 | 484 | } |
485 | 485 | |
486 | 486 | .lqt-new-messages { |
Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -1516,9 +1516,18 @@ |
1517 | 1517 | apiRequest.sortkey = newSortkey; |
1518 | 1518 | } |
1519 | 1519 | |
1520 | | - liquidThreads.apiRequest( apiRequest, doneCallback ); |
| 1520 | + if ( params.subject.length == "" ) { |
1521 | 1521 | |
| 1522 | + $j( '.mw-ajax-loader' ).remove(); // remove spinner |
| 1523 | + alert( mediaWiki.msg( 'lqt-ajax-no-subject' ) ); |
| 1524 | + // here we should prompt the user again to enter a new subject |
1522 | 1525 | |
| 1526 | + } else { |
| 1527 | + |
| 1528 | + liquidThreads.apiRequest( apiRequest, doneCallback ); |
| 1529 | + } |
| 1530 | + |
| 1531 | + |
1523 | 1532 | } else if (newSortkey != 'none' ) { |
1524 | 1533 | var apiRequest = |
1525 | 1534 | { |