mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixes #67, decimal inputs for function parameters (like scale)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<div ng-switch-when="int">
|
||||
<input
|
||||
type="number"
|
||||
placeholder="seconds"
|
||||
step="any"
|
||||
focus-me="true"
|
||||
class="input-mini"
|
||||
ng-change="functionParamsChanged(func)" ng-model-onblur
|
||||
|
||||
@@ -172,7 +172,7 @@ define([
|
||||
|
||||
return {
|
||||
type: 'number',
|
||||
value: parseInt(this.consumeToken().value, 10)
|
||||
value: parseFloat(this.consumeToken().value)
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ define([
|
||||
|
||||
it('should return function categories', function() {
|
||||
var catIndex = gfunc.getCategories();
|
||||
expect(catIndex.Special.length).to.equal(8);
|
||||
expect(catIndex.Special.length).to.be.greaterThan(8);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user