Index: trunk/extensions/LiquidThreads/lqt.css |
— | — | @@ -414,6 +414,13 @@ |
415 | 415 | margin-left: 8px; |
416 | 416 | } |
417 | 417 | |
| 418 | +.lqt-command-quote a { |
| 419 | + background-image: url(icons/quote.png); |
| 420 | + margin-left: 8px; |
| 421 | + padding-left: 26px; |
| 422 | + background-position: left center !important; |
| 423 | +} |
| 424 | + |
418 | 425 | .lqt-command-link a { |
419 | 426 | background-image: url(icons/link.png) !important; |
420 | 427 | padding-left: 26px; |
— | — | @@ -431,8 +438,6 @@ |
432 | 439 | float: left; |
433 | 440 | } |
434 | 441 | |
435 | | - |
436 | | - |
437 | 442 | .lqt-command { |
438 | 443 | margin-top: 8px; |
439 | 444 | padding: 0; |
Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | // Get the post node |
139 | 139 | // Keep walking up until we hit the thread node. |
140 | 140 | var thread = $j(this).closest('.lqt_thread'); |
141 | | - var post = thread.find('.lqt_post'); |
| 141 | + var post = $j(thread.find('.lqt_post')[0]); |
142 | 142 | |
143 | 143 | var text = liquidThreads.getSelection(); |
144 | 144 | |
— | — | @@ -165,11 +165,12 @@ |
166 | 166 | }, |
167 | 167 | |
168 | 168 | 'showQuoteButtons' : function() { |
169 | | - var elems = $j('.lqt-thread-toolbar-rhs'); |
| 169 | + var elems = $j('.lqt-thread-toolbar-commands'); |
170 | 170 | |
171 | 171 | elems.each( function(i) { |
172 | | - var quoteButton = $j('<span/>' ); |
173 | | - quoteButton.className = 'lqt-header-quote'; |
| 172 | + var quoteButton = $j('<li/>' ); |
| 173 | + quoteButton.addClass('lqt-command'); |
| 174 | + quoteButton.addClass('lqt-command-quote'); |
174 | 175 | |
175 | 176 | var link = $j('<a href="#"/>'); |
176 | 177 | link.append( wgLqtMessages['lqt-quote'] ); |
— | — | @@ -177,7 +178,6 @@ |
178 | 179 | |
179 | 180 | quoteButton.click( liquidThreads.doQuote ); |
180 | 181 | |
181 | | - $j(this).prepend( ' | ' ); |
182 | 182 | $j(this).prepend( quoteButton ); |
183 | 183 | } ); |
184 | 184 | }, |
— | — | @@ -240,7 +240,7 @@ |
241 | 241 | } ); |
242 | 242 | |
243 | 243 | // Update the new thread link |
244 | | - var newThreadLink = $j('a.lqt_start_discussion'); |
| 244 | + var newThreadLink = $j('.lqt_start_discussion a'); |
245 | 245 | |
246 | 246 | if (newThreadLink) { |
247 | 247 | newThreadLink.click( liquidThreads.handleNewLink ); |