Index: trunk/extensions/Collection/collection/collection.js |
— | — | @@ -249,7 +249,7 @@ |
250 | 250 | hookEventOnElement('click', function() { self.collection.sort(); }, $('sortLink')); |
251 | 251 | |
252 | 252 | this.downloadButton = $('downloadButton'); |
253 | | - |
| 253 | + this.ppList = $('ppList'); |
254 | 254 | this.titleInput = $('titleInput'); |
255 | 255 | |
256 | 256 | hookEventOnElement(['keyup', 'change'], function() { |
— | — | @@ -313,6 +313,9 @@ |
314 | 314 | disabled = 'disabled'; |
315 | 315 | } |
316 | 316 | this.downloadButton.disabled = disabled; |
| 317 | + forEach(this.ppList.getElementsByTagName('input'), function(i, button) { |
| 318 | + button.disabled = disabled; |
| 319 | + }); |
317 | 320 | var saveButton = $('saveButton'); |
318 | 321 | if (!saveButton) { |
319 | 322 | return; |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -850,9 +850,12 @@ |
851 | 851 | $orderLabel = wfMsgHtml( 'coll-order_from_pp', $partnerName ); |
852 | 852 | $aboutLabel = wfMsgHtml( 'coll-about_pp', $partnerName ); |
853 | 853 | $html .= <<<EOS |
854 | | -<li> |
855 | | - <a href="$posturl" class="pp_post_link"><img src="$logoURL" alt="$partnerName"/> <strong>$orderLabel</strong></a> – |
856 | | - <a href="$url" target="_blank">$aboutLabel</a> |
| 854 | +<li id="ppList"> |
| 855 | + <form action="$posturl" method="GET"> |
| 856 | + <a href="$url" target="_blank"><img src="$logoURL" alt="$partnerName"/></a> |
| 857 | + <input type="submit" value="$orderLabel"/> |
| 858 | + <a href="$url" target="_blank">$aboutLabel</a> |
| 859 | + </form> |
857 | 860 | </li> |
858 | 861 | EOS |
859 | 862 | ; |