Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php |
— | — | @@ -271,6 +271,7 @@ |
272 | 272 | 'lqt-drag-setsortkey' => "Adjust post's position on the page", |
273 | 273 | 'lqt-drag-bump' => 'Move post to top of discussion page', |
274 | 274 | 'lqt-drag-save' => 'Confirm', |
| 275 | + 'lqt-drag-title' => 'Confirm Drag', |
275 | 276 | 'lqt-drag-reason' => 'Reason:', |
276 | 277 | 'lqt-drag-subject' => 'Subject for new thread:', |
277 | 278 | 'lqt-edit-signature' => '(edit signature)', |
Index: trunk/extensions/LiquidThreads/lqt.css |
— | — | @@ -485,7 +485,9 @@ |
486 | 486 | top: 15px; |
487 | 487 | height: 32px; |
488 | 488 | } |
489 | | - |
| 489 | +.TalkpagePager_nav { |
| 490 | + margin: 30px auto 10px; |
| 491 | +} |
490 | 492 | /* Float Clearing - If you confused, http://www.positioniseverything.net/easyclearing.html */ |
491 | 493 | .lqt_thread_heading:after |
492 | 494 | { |
Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -594,6 +594,7 @@ |
595 | 595 | 'setupThread' : function(threadContainer) { |
596 | 596 | var prefixLength = "lqt_thread_id_".length; |
597 | 597 | // add the interruption class if it needs it |
| 598 | + // Fixme - misses a lot of cases |
598 | 599 | $parentWrapper = $j( threadContainer ) |
599 | 600 | .closest( '.lqt-thread-wrapper' ).parent().closest( '.lqt-thread-wrapper' ); |
600 | 601 | if( $parentWrapper.next( '.lqt-thread-wrapper' ).length > 0 ) { |
— | — | @@ -817,7 +818,6 @@ |
818 | 819 | $j('body').prepend(dialog); |
819 | 820 | |
820 | 821 | var dialogOptions = { |
821 | | - 'AutoOpen' : true, |
822 | 822 | 'width' : 600 |
823 | 823 | }; |
824 | 824 | |
— | — | @@ -878,29 +878,12 @@ |
879 | 879 | }; |
880 | 880 | |
881 | 881 | var newCallback = function( data ) { |
882 | | - // Grab the thread ID |
883 | | - var newThreadID = data.threadaction.thread['thread-id']; |
884 | | - var html = data.threadaction.thread['html']; |
885 | | - |
886 | | - var newThread = $j(html); |
887 | | - |
888 | | - if ( $j('.lqt_toc').length ) { |
889 | | - $j( '.lqt-thread-wrapper' ).prepend( newThread ); |
890 | | - } else { |
891 | | - $j('.lqt-no-threads').replaceWith( newThread ); |
892 | | - } |
893 | | - |
894 | | - $j(newThread).find( '.lqt-post-wrapper').each( |
895 | | - function() { |
896 | | - // Set up thread. |
897 | | - liquidThreads.setupThread( $j(this) ); |
898 | | - |
899 | | - targetOffset = $j(this).offset().top; |
900 | | - $j('html,body').animate( |
901 | | - {scrollTop: targetOffset}, |
902 | | - 'slow'); |
903 | | - } |
904 | | - ); |
| 882 | + var $newThread = $j( data.threadaction.thread['html'] ); |
| 883 | + $j( '.lqt-threads' ).prepend( $newThread ); |
| 884 | + // remove the no threads message if it's on the page |
| 885 | + $j('.lqt-no-threads').remove(); |
| 886 | + liquidThreads.setupThread( $newThread.find( '.lqt-post-wrapper' ) ); |
| 887 | + $j( 'html,body' ).animate( { scrollTop: $newThread.offset().top }, 'slow' ); |
905 | 888 | }; |
906 | 889 | |
907 | 890 | var editCallback = function( data ) { |
— | — | @@ -1293,11 +1276,15 @@ |
1294 | 1277 | confirmDialog.append(actionSummary); |
1295 | 1278 | |
1296 | 1279 | // Summary prompt |
1297 | | - var summaryPrompt = $j('<p/>').text( wgLqtMessages['lqt-drag-reason'] ); |
| 1280 | + var summaryWrapper = $j('<p/>'); |
| 1281 | + var summaryPrompt = $j('<label for="reason" />').text( wgLqtMessages['lqt-drag-reason'] ); |
1298 | 1282 | var summaryField = $j('<input type="text" size="45"/>'); |
1299 | | - summaryField.addClass( 'lqt-drag-confirm-reason' ).attr('name', 'reason'); |
1300 | | - summaryPrompt.append( summaryField ); |
1301 | | - confirmDialog.append( summaryPrompt ); |
| 1283 | + summaryField.addClass( 'lqt-drag-confirm-reason' ) |
| 1284 | + .attr( 'name', 'reason' ) |
| 1285 | + .attr( 'id', 'reason' ); |
| 1286 | + summaryWrapper.append( summaryPrompt ); |
| 1287 | + summaryWrapper.append( summaryField ); |
| 1288 | + confirmDialog.append( summaryWrapper ); |
1302 | 1289 | |
1303 | 1290 | if ( typeof params.reason != 'undefined' ) { |
1304 | 1291 | summaryField.val(params.reason); |
— | — | @@ -1349,8 +1336,8 @@ |
1350 | 1337 | liquidThreads.submitDragDrop( thread, params, |
1351 | 1338 | successCallback ); |
1352 | 1339 | }; |
1353 | | - confirmDialog.dialog( { 'AutoOpen' : true, 'buttons' : buttons, |
1354 | | - 'modal' : true } ); |
| 1340 | + confirmDialog.dialog( { 'title': wgLqtMessages['lqt-drag-title'], |
| 1341 | + 'buttons' : buttons, 'modal' : true, 'width': 550 } ); |
1355 | 1342 | }, |
1356 | 1343 | |
1357 | 1344 | 'submitDragDrop' : function( thread, params, callback ) { |