瀏覽代碼

Change xaxis min and max form input types to number

Sofia Papagiannaki 6 年之前
父節點
當前提交
96e1804d55
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/app/plugins/panel/graph/axes_editor.html

+ 2 - 2
public/app/plugins/panel/graph/axes_editor.html

@@ -70,11 +70,11 @@
 		<div class="gf-form-inline" ng-if="ctrl.panel.xaxis.mode === 'histogram'">
 			<div class="gf-form">
 				<label class="gf-form-label width-6">X-Min</label>
-				<input type="text" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.min" ng-change="ctrl.render()" ng-model-onblur>
+				<input type="number" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.min" ng-change="ctrl.render()" ng-model-onblur>
 			</div>
 			<div class="gf-form">
 				<label class="gf-form-label width-6">X-Max</label>
-				<input type="text" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.max" ng-change="ctrl.render()" ng-model-onblur>
+				<input type="number" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.max" ng-change="ctrl.render()" ng-model-onblur>
 			</div>
 		</div>