Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit c59a8aa

Browse files
committed
Fix BackgroundTaskManager initialisation, and make sure to read the node_diff message.
1 parent c671c55 commit c59a8aa

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/src/plugins/gui.ajax/res/js/es6/model/BackgroundTasksManager.es6

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@ class BackgroundTasksManager extends Observable {
101101
if(type != 'SUCCESS'){
102102
this.interruptOnError(childs[i].firstChild.nodeValue);
103103
}
104-
}
105-
else if(childs[i].nodeName == "trigger_bg_action"){
104+
} else if(childs[i].nodeName == 'nodes_diff') {
105+
var dm = this.actionManager.getDataModel();
106+
if(dm.getAjxpNodeProvider().parseAjxpNodesDiffs){
107+
dm.getAjxpNodeProvider().parseAjxpNodesDiffs(childs[i], dm, !window.currentLightBox);
108+
}
109+
} else if(childs[i].nodeName == "trigger_bg_action"){
106110
var name = childs[i].getAttribute("name");
107111
var messageId = childs[i].getAttribute("messageId");
108112
delay = parseInt(childs[i].getAttribute("delay"));

core/src/plugins/gui.ajax/res/js/es6/model/Controller.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Controller extends Observable{
118118

119119
getBackgroundTasksManager(){
120120
if(!Controller._bgManager){
121-
Controller._bgManager = new BackgroundTasksManager();
121+
Controller._bgManager = new BackgroundTasksManager(this);
122122
}
123123
return Controller._bgManager;
124124
}

0 commit comments

Comments
 (0)