Author: lucaa
Date: 2007-12-11 17:24:12 +0100 (Tue, 11 Dec 2007)
New Revision: 6340
Modified:
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Config.java
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Watch.java
Log:
Restored the way reloading the article number was made (i.e. as a background
job, without displaying the loading dialog)
Modified:
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Config.java
===================================================================
---
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Config.java
2007-12-11 12:06:16 UTC (rev 6339)
+++
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Config.java
2007-12-11 16:24:12 UTC (rev 6340)
@@ -138,12 +138,11 @@
public void refreshArticleNumber() {
// Load the article counts
- watch.getDataManager().getArticleCount(new XWikiAsyncCallback(watch) {
+ watch.getDataManager().getArticleCount(new AsyncCallback() {
public void onFailure(Throwable throwable) {
// Silent error
}
public void onSuccess(Object result) {
- super.onSuccess(result);
// Update the article list with the current results
updateArticleNumbers((List) result);
watch.getUserInterface().refreshData("feedtree");
Modified:
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Watch.java
===================================================================
---
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Watch.java
2007-12-11 12:06:16 UTC (rev 6339)
+++
xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Watch.java
2007-12-11 16:24:12 UTC (rev 6340)
@@ -250,8 +250,6 @@
*/
public void refreshArticleList() {
userInterface.refreshData("articlelist");
- //refresh article number which will refresh the feedtree as well.
- config.refreshArticleNumber();
newArticlesMonitoring.stopBlinking();
}
@@ -291,6 +289,8 @@
getFilterStatus().setFeed(feed);
getFilterStatus().setGroup(null);
getFilterStatus().setStart(0);
+ //also refresh the tree, to set the current selected feed
+ refreshFeedTree();
refreshArticleList();
}
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications