|
@@ -416,9 +416,9 @@ define([
|
|
|
|
|
|
refreshData: function () {
|
|
|
if (lang.exists("params.Wuid", this)) {
|
|
|
- this.refreshGraphFromWU(this.wu, this.graphName);
|
|
|
+ this.loadGraphFromWu(this.wu, this.graphName, true);
|
|
|
} else if (lang.exists("params.QueryId", this)) {
|
|
|
- this.refreshGraphFromQuery(this.targetQuery, this.queryId, this.graphName);
|
|
|
+ this.loadGraphFromQuery(this.targetQuery, this.queryId, this.graphName);
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -477,7 +477,7 @@ define([
|
|
|
this.loadEdges();
|
|
|
},
|
|
|
|
|
|
- loadGraphFromWu: function (wu, graphName) {
|
|
|
+ loadGraphFromWu: function (wu, graphName, refresh) {
|
|
|
var deferred = new Deferred();
|
|
|
this.overview.setMessage(this.i18n.FetchingData);
|
|
|
this.main.setMessage(this.i18n.FetchingData);
|
|
@@ -489,7 +489,7 @@ define([
|
|
|
context.local.setMessage("");
|
|
|
context.loadGraphFromXGMML(xgmml, svg);
|
|
|
deferred.resolve();
|
|
|
- });
|
|
|
+ }, refresh);
|
|
|
return deferred.promise;
|
|
|
},
|
|
|
|