Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -52,6 +52,12 @@ |
53 | 53 | cancelButton.click( liquidThreads.cancelEdit ); |
54 | 54 | |
55 | 55 | $j(container).find('#wpTextbox1')[0].rows = 10; |
| 56 | + |
| 57 | + // Scroll to the textbox |
| 58 | + var targetOffset = $j(container).find('#wpTextbox1').offset().top; |
| 59 | + // Buffer at the top, roughly enough to see the heading and one line |
| 60 | + targetOffset -= 100; |
| 61 | + $j('html,body').animate({scrollTop: targetOffset}, 'slow'); |
56 | 62 | } ); |
57 | 63 | }, |
58 | 64 | |