r65569 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65568‎ | r65569 | r65570 >
Date:10:49, 27 April 2010
Author:jojo
Status:ok
Tags:
Comment:
fix: save changes from suggest tool, too
Modified paths:
  • /trunk/extensions/Collection/Collection.php (modified) (history)
  • /trunk/extensions/Collection/js/suggest.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.php
@@ -40,7 +40,7 @@
4141 # Configuration:
4242
4343 /** Bump the version number every time you change any of the JavaScript files */
44 -$wgCollectionStyleVersion = 7;
 44+$wgCollectionStyleVersion = 8;
4545
4646 /** URL of mw-serve render server */
4747 $wgCollectionMWServeURL = 'http://tools.pediapress.com/mw-serve/';
@@ -357,6 +357,7 @@
358358 htmlspecialchars( $article ),
359359 $undoLink
360360 );
 361+ $result['collection'] = CollectionSession::getCollection();
361362 $r = new AjaxResponse( $json->encode( $result ) );
362363 $r->setContentType( 'application/json' );
363364 return $r;
Index: trunk/extensions/Collection/js/suggest.js
@@ -18,6 +18,7 @@
1919 'rs': 'wfAjaxCollectionSuggest' + func,
2020 'rsargs[]': args
2121 }, function(result) {
 22+ wfCollectionSave(result.collection);
2223 if (func == 'undo') {
2324 set_status(false);
2425 } else {

Status & tagging log