Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | # Configuration: |
42 | 42 | |
43 | 43 | /** Bump the version number every time you change any of the JavaScript files */ |
44 | | -$wgCollectionStyleVersion = 7; |
| 44 | +$wgCollectionStyleVersion = 8; |
45 | 45 | |
46 | 46 | /** URL of mw-serve render server */ |
47 | 47 | $wgCollectionMWServeURL = 'http://tools.pediapress.com/mw-serve/'; |
— | — | @@ -357,6 +357,7 @@ |
358 | 358 | htmlspecialchars( $article ), |
359 | 359 | $undoLink |
360 | 360 | ); |
| 361 | + $result['collection'] = CollectionSession::getCollection(); |
361 | 362 | $r = new AjaxResponse( $json->encode( $result ) ); |
362 | 363 | $r->setContentType( 'application/json' ); |
363 | 364 | return $r; |
Index: trunk/extensions/Collection/js/suggest.js |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | 'rs': 'wfAjaxCollectionSuggest' + func, |
20 | 20 | 'rsargs[]': args |
21 | 21 | }, function(result) { |
| 22 | + wfCollectionSave(result.collection); |
22 | 23 | if (func == 'undo') { |
23 | 24 | set_status(false); |
24 | 25 | } else { |