Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -114,14 +114,10 @@ |
115 | 115 | |
116 | 116 | var finishShow = function() { |
117 | 117 | // Scroll to the textbox |
118 | | - var targetOffset = $j(container).find('#wpTextbox1').offset().top; |
| 118 | + var targetOffset = $j(container).offset().top; |
119 | 119 | var windowHeight = $j(window).height(); |
120 | 120 | var editBoxHeight = $j(container).height(); |
121 | 121 | |
122 | | - if (!targetOffset) { |
123 | | - targetOffset = $j(container).offset().top; |
124 | | - } |
125 | | - |
126 | 122 | var scrollOffset = targetOffset - windowHeight + editBoxHeight; |
127 | 123 | |
128 | 124 | $j('html,body').animate({scrollTop: scrollOffset}, 'slow'); |