|
@@ -80,11 +80,11 @@ function (angular, _, kbn) {
|
|
|
|
|
|
|
|
if (_.isArray(variable.current.value)) {
|
|
if (_.isArray(variable.current.value)) {
|
|
|
variable.current.text = variable.current.value.join(' + ');
|
|
variable.current.text = variable.current.value.join(' + ');
|
|
|
- this.selectOptionsForCurrentValue(variable);
|
|
|
|
|
|
|
+ self.selectOptionsForCurrentValue(variable);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
templateSrv.updateTemplateData();
|
|
templateSrv.updateTemplateData();
|
|
|
- return this.updateOptionsInChildVariables(variable);
|
|
|
|
|
|
|
+ return self.updateOptionsInChildVariables(variable);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.variableUpdated = function(variable) {
|
|
this.variableUpdated = function(variable) {
|
|
@@ -148,7 +148,7 @@ function (angular, _, kbn) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (_.isArray(variable.current.value)) {
|
|
if (_.isArray(variable.current.value)) {
|
|
|
- this.selectOptionsForCurrentValue(variable);
|
|
|
|
|
|
|
+ self.selectOptionsForCurrentValue(variable);
|
|
|
} else {
|
|
} else {
|
|
|
var currentOption = _.findWhere(variable.options, { text: variable.current.text });
|
|
var currentOption = _.findWhere(variable.options, { text: variable.current.text });
|
|
|
if (currentOption) {
|
|
if (currentOption) {
|