From 1c44cfb8116576d0bec69c6bb3f52c033f696391 Mon Sep 17 00:00:00 2001 From: Renato De Donato Date: Mon, 14 Dec 2015 18:09:19 +0100 Subject: [PATCH] datalet selection bug fix --- controllets/datalet-selection-controllet/datalet-selection-controllet.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/controllets/datalet-selection-controllet/datalet-selection-controllet.html b/controllets/datalet-selection-controllet/datalet-selection-controllet.html index 1f6d0f4..1057212 100755 --- a/controllets/datalet-selection-controllet/datalet-selection-controllet.html +++ b/controllets/datalet-selection-controllet/datalet-selection-controllet.html @@ -560,11 +560,17 @@ ComponentService.deep_url = this.deepUrl; ComponentService.getComponent(dataletParams); + console.log(this.params); + //300??? - if(this.$.datalet_selection_datalet_placeholder.children[1]) - this.async(function(){this.$.datalet_selection_datalet_placeholder.children[1].behavior.setParameters(this.params)}, 300); - this.async(function(){this.$.add_button.removeAttribute("disabled");}, 300); + this.async(function(){ + if(this.$.datalet_selection_datalet_placeholder.children[1]) + this.$.datalet_selection_datalet_placeholder.children[1].behavior.setParameters(this.params); + this.$.add_button.removeAttribute("disabled"); + }, 300); + +// this.async(function(){this.$.add_button.removeAttribute("disabled");}, 300); // this.$.add_button.removeAttribute("disabled"); }, -- libgit2 0.21.4