Commit f4e185a9d714eb6b4c2fcb1720a9f48cf9ff1f85

Authored by mwasiluk
2 parents e09a3d19 ff028a33

Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS

controllets/dataset-table-controllet/dataset-table-controllet.html
... ... @@ -389,7 +389,7 @@
389 389 _onDownloadInfoClick: function(e){
390 390 $.ajax({
391 391 url: ODE.ajax_coocreation_get_dataset_docs,
392   - data: {room_id : e.target.parentElement.room_id, version : e.target.parentElement.version},
  392 + data: {room_id : e.target.parentElement.attributes["room_id"].value, version : e.target.parentElement.attributes["version"].value},
393 393 dataType: "text",
394 394 success: function(e){
395 395 var fileName = "dataset";
... ... @@ -414,7 +414,7 @@
414 414  
415 415 $.ajax({
416 416 url: ODE.ajax_coocreation_get_dataset,
417   - data: {room_id : e.target.parentElement.room_id, version : e.target.parentElement.version},
  417 + data: {room_id : e.target.parentElement.attributes["room_id"].value, version : e.target.parentElement.attributes["version"].value},
418 418 dataType: "json",
419 419 success: function(e){
420 420 var arrData = e;
... ... @@ -470,7 +470,7 @@
470 470  
471 471 $.ajax({
472 472 url: ODE.ajax_coocreation_get_dataset,
473   - data: {room_id : e.target.parentElement.room_id, version : e.target.parentElement.version},
  473 + data: {room_id : e.target.parentElement.attributes["room_id"].value, version : e.target.parentElement.attributes["version"].value},
474 474 dataType: "json",
475 475 success: function(e){
476 476 t.$.data_table_controllet.setData(e);
... ...
datalets/base-datalet/base-datalet.html
... ... @@ -254,6 +254,10 @@ Example :
254 254 // this.$.domain.textContent = url;
255 255 // },
256 256  
  257 + removeLoader: function() {
  258 + this.$.base_datalet_imgWaitDatalet.style.display = "none";
  259 + },
  260 +
257 261 hideFooter: function() {
258 262 this.$.base_datalet_container.innerHTML = "";
259 263 this.$.base_datalet_container.style.margin = 0;
... ...
datalets/base-datalet/static/js/WorkcycleBehavior.js
... ... @@ -79,6 +79,15 @@ var WorkcycleBehavior = {
79 79 },
80 80  
81 81 /**
  82 + * Build the object/s for presentation layer.
  83 + *
  84 + * @method presentData
  85 + */
  86 + redraw: function(){
  87 +
  88 + },
  89 +
  90 + /**
82 91 * This method represents the entire datalet workcycle.
83 92 *
84 93 * @method runWorkcycle
... ... @@ -87,11 +96,13 @@ var WorkcycleBehavior = {
87 96 this.selectData();
88 97 this.filterData();
89 98 this.transformData();
  99 +
90 100 var that = this;
91 101 this._component.async(function () {
92 102 that.presentData();
93   - $("img[src$='spin.svg']").remove();
94   - }, 100);
  103 + $(that._component).find("base-datalet")[0].removeLoader();
  104 + that.redraw();
  105 + }, 300);
95 106 },
96 107  
97 108 /**
... ... @@ -107,10 +118,12 @@ var WorkcycleBehavior = {
107 118 }else{
108 119 this.data = this._component.data;
109 120 this.transformData();
  121 +
110 122 var that = this;
111 123 this._component.async(function () {
112 124 that.presentData();
113   - $("img[src$='spin.svg']").remove();
  125 + $(that._component).find("base-datalet")[0].removeLoader();
  126 + that.redraw();
114 127 }, 100);
115 128 }
116 129 }
... ...
datalets/highcharts-datalet/highcharts-datalet.html
... ... @@ -122,6 +122,10 @@ Example :
122 122 this.properties.series.value = series;
123 123 }
124 124  
  125 + },
  126 +
  127 + redraw: function () {
  128 + $(this._component.$.charts.$.container).highcharts().reflow();
125 129 }
126 130  
127 131 };
... ...