Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -280,15 +280,20 @@ |
281 | 281 | $wgAjaxExportList[] = 'wfAjaxCollectionClear'; |
282 | 282 | |
283 | 283 | function wfAjaxCollectionGetPopupData( $title ) { |
| 284 | + global $wgScriptPath; |
| 285 | + |
284 | 286 | wfLoadExtensionMessages( 'CollectionCore' ); |
285 | 287 | $json = new Services_JSON(); |
286 | 288 | $result = array(); |
| 289 | + $imagePath = "$wgScriptPath/extensions/Collection/images"; |
287 | 290 | if ( CollectionSession::findArticle( $title ) == -1 ) { |
288 | 291 | $result['action'] = 'add'; |
289 | | - $result['text'] = wfMsg( 'coll-add_linked_article', $title ); |
| 292 | + $result['text'] = wfMsg( 'coll-add_linked_article' ); |
| 293 | + $result['img'] = "$imagePath/silk-add.png"; |
290 | 294 | } else { |
291 | 295 | $result['action'] = 'remove'; |
292 | | - $result['text'] = wfMsg( 'coll-remove_linked_article', $title ); |
| 296 | + $result['text'] = wfMsg( 'coll-remove_linked_article' ); |
| 297 | + $result['img'] = "$imagePath/silk-remove.png"; |
293 | 298 | } |
294 | 299 | $r = new AjaxResponse( $json->encode( $result ) ); |
295 | 300 | $r->setContentType( 'application/json' ); |
Index: trunk/extensions/Collection/Collection.hooks.php |
— | — | @@ -292,6 +292,7 @@ |
293 | 293 | background-color: #fea; |
294 | 294 | z-index: 9999; |
295 | 295 | display: inline; |
| 296 | + font-size: 10pt; |
296 | 297 | } |
297 | 298 | EOS |
298 | 299 | , false |
Index: trunk/extensions/Collection/CollectionCore.i18n.php |
— | — | @@ -36,8 +36,8 @@ |
37 | 37 | 'coll-disable' => 'disable', |
38 | 38 | 'coll-book_creator_disable' => 'Disable book creator', |
39 | 39 | 'coll-book_creator_disable_tooltip' => 'Stop using the book creator', |
40 | | - 'coll-add_linked_article' => 'Add page $1 to your book', |
41 | | - 'coll-remove_linked_article' => 'Remove page $1 from your book', |
| 40 | + 'coll-add_linked_article' => 'Add linked wiki page to your book', |
| 41 | + 'coll-remove_linked_article' => 'Remove linked wiki page from your book', |
42 | 42 | 'coll-add_category' => 'Add this category to your book', |
43 | 43 | 'coll-add_category_tooltip' => 'Add all wiki pages in this category to your book', |
44 | 44 | 'coll-add_this_page' => 'Add this page to your book', |
Index: trunk/extensions/Collection/js/bookcreator.js |
— | — | @@ -84,6 +84,7 @@ |
85 | 85 | visible = true; |
86 | 86 | addremove_link |
87 | 87 | .text(result.text) |
| 88 | + .prepend('<img src="' + result.img + '" alt=""> ') |
88 | 89 | .unbind('click') |
89 | 90 | .click(function(e) { addremove_article(result.action, title); }); |
90 | 91 | popup_div |