Просмотр исходного кода

fix(singlestat): fixed minor editor blur issue on decimal option that did not cause update of rendered value, fixes #5004

Torkel Ödegaard 9 лет назад
Родитель
Сommit
c82d5f86ac
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      public/app/plugins/panel/singlestat/editor.html

+ 2 - 4
public/app/plugins/panel/singlestat/editor.html

@@ -67,12 +67,10 @@
 					dropdown-typeahead="ctrl.unitFormats"
 					dropdown-typeahead-on-select="ctrl.setUnitFormat($subItem)">
 				</li>
-				<li class="tight-form-item">
-					Decimals
-				</li>
+				<li class="tight-form-item">Decimals</li>
 				<li>
 					<input type="number" class="input-small tight-form-input last" placeholder="auto" bs-tooltip="'Override automatic decimal precision for legend and tooltips'" data-placement="right"
-					ng-model="ctrl.panel.decimals" ng-change="ctrl.render()" ng-model-onblur>
+					ng-model="ctrl.panel.decimals" ng-change="ctrl.refresh()" ng-model-onblur>
 				</li>
 			</ul>
 			<div class="clearfix"></div>