I have a report that is making use of subreports. one the first subreport are several <select> and <datetimepickers> which show one after the other as a choice is made in each. When all are set then a second subreport is generated. I am having an issue on change of this select:
Select::create(array(
"name"=>"payperiod",
"dataStore"=>$this->dataStore("payperiods"),
"defaultOption"=>array("--"=>null),
"dataBind"=>array(
"text"=>"PER_TXT",
"value"=>"PER_VAL",
),
"clientEvents"=>array(
"change"=>"function(){
if(reportOpen == 1){ subReport.update('Payroll',{ }); reportOpen = 0; $('#runreport').attr('disabled',false);}
var dts = $('#payperiod').val().split('|');
subReport.update('StoreSelecting',{
'payperiod':$('#payperiod').val(),
'startdt':dts[0].split('-').join('/'),
'enddt':dts[1].split('-').join('/'),
'store':$('#store').val(),
});
}",
),
"attributes"=>array(
"class"=>"form-control",
)
));
It works as expected but in the browser console I am getting the error listed in the subject of this post. I cannot for the life of me figure out what this error is telling me as everything seems to be working fine. I do not see any duplicate scripts loaded. Also I am using the amazing theme. any help would be greatly appreciated!