Skip to content

Commit

Permalink
moved referenced parameter update to an async timer operation and sho…
Browse files Browse the repository at this point in the history
…w loading message whenever it happens , see JENKINS-34487
  • Loading branch information
feoff3 committed May 18, 2016
1 parent 2a27224 commit 52d9542
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -419,9 +419,13 @@ var UnoChoice = UnoChoice || (function($) {
e.stopImmediatePropagation();
} else {
console.log('Cascading changes from parameter ' + _self.paramName + '...');
//jQuery(".behavior-loading").show();
//jQuery(_self.cascadeParameter.getParameterElement).loading(true);
_self.cascadeParameter.update();
//_self.cascadeParameter.loading(true);
jQuery(".behavior-loading").show();
// start updating in separate async function so browser will be able to repaint and show 'loading' animation , see JENKINS-34487
setTimeout(function () {
_self.cascadeParameter.update();
jQuery(".behavior-loading").hide();
}, 0);
}
});
cascadeParameter.getReferencedParameters().push(this);
Expand Down

0 comments on commit 52d9542

Please sign in to comment.