Commit 0a8b9bad by Torkel Ödegaard

Fixes #67, decimal inputs for function parameters (like scale)

parent bd4b75f5
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div ng-switch-when="int"> <div ng-switch-when="int">
<input <input
type="number" type="number"
placeholder="seconds" step="any"
focus-me="true" focus-me="true"
class="input-mini" class="input-mini"
ng-change="functionParamsChanged(func)" ng-model-onblur ng-change="functionParamsChanged(func)" ng-model-onblur
......
...@@ -172,7 +172,7 @@ define([ ...@@ -172,7 +172,7 @@ define([
return { return {
type: 'number', type: 'number',
value: parseInt(this.consumeToken().value, 10) value: parseFloat(this.consumeToken().value)
}; };
}, },
......
...@@ -60,7 +60,7 @@ define([ ...@@ -60,7 +60,7 @@ define([
it('should return function categories', function() { it('should return function categories', function() {
var catIndex = gfunc.getCategories(); var catIndex = gfunc.getCategories();
expect(catIndex.Special.length).to.equal(8); expect(catIndex.Special.length).to.be.greaterThan(8);
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment