Commit a4820694 authored by Francesco Lucchi's avatar Francesco Lucchi
Browse files

Fix options for data refresh

parent 5f487888
......@@ -266,7 +266,7 @@ angular.module("cockpitModule").service("cockpitModule_widgetServices",function(
var height = angular.element(element)[0].parentElement.offsetHeight;
if(data == undefined) {
if(nature == "fullExpand"){
$rootScope.$broadcast("WIDGET_EVENT"+config.id,"REFRESH",{element:element,width:width,height:height,data:null,nature:nature});
$rootScope.$broadcast("WIDGET_EVENT"+config.id,"REFRESH",{element:element,width:width,height:height,data:null,nature:nature,options:options});
}else{
if (config && config.dataset && config.dataset.dsId){
......@@ -330,7 +330,7 @@ angular.module("cockpitModule").service("cockpitModule_widgetServices",function(
}
if(dsRecords == null){
$rootScope.$broadcast("WIDGET_EVENT"+config.id,"REFRESH",{element:element,width:width,height:height,data:undefined,nature:nature});
$rootScope.$broadcast("WIDGET_EVENT"+config.id,"REFRESH",{element:element,width:width,height:height,data:undefined,nature:nature,options:options});
}else{
/*
author: rselakov, Radmila Selakovic,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment