|
|
@@ -599,15 +599,14 @@ var EditorViewModel = (function() {
|
|
|
self.jobs = ko.observableArray(typeof snippet.jobs != "undefined" && snippet.jobs != null ? snippet.jobs : []);
|
|
|
|
|
|
self.ddlNotification = ko.observable();
|
|
|
- self.delayedDDLNotification = ko.pureComputed(self.ddlNotification);
|
|
|
+ self.delayedDDLNotification = ko.pureComputed(self.ddlNotification).extend({ rateLimit: { method: "notifyWhenChangesStop", timeout: 5000 } });
|
|
|
if (! vm.isNotificationManager()) {
|
|
|
- self.delayedDDLNotification.extend({ rateLimit: { method: "notifyWhenChangesStop", timeout: 5000 } });
|
|
|
+ window.setTimeout(function () {
|
|
|
+ self.delayedDDLNotification.subscribe(function (val) {
|
|
|
+ huePubSub.publish('assist.db.refresh', { sourceType: self.type() });
|
|
|
+ });
|
|
|
+ }, 0);
|
|
|
}
|
|
|
- window.setTimeout(function () {
|
|
|
- self.delayedDDLNotification.subscribe(function (val) {
|
|
|
- huePubSub.publish('assist.db.refresh', { sourceType: self.type() });
|
|
|
- });
|
|
|
- }, 0);
|
|
|
|
|
|
self.progress.subscribe(function (val) {
|
|
|
$(document).trigger("progress", {data: val, snippet: self});
|