-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- **Commit 1:** Modifying the histograms interval to support decimals * Original sha: da04e10 * Authored by = <[email protected]> on 2016-10-05T20:46:52Z **Commit 2:** Removing the input-whole-number, no longer used. * Original sha: cccb370 * Authored by = <[email protected]> on 2016-10-06T17:29:03Z
- Loading branch information
1 parent
e5b1121
commit 2172489
Showing
7 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,6 @@ | |
class="form-control" | ||
name="interval" | ||
min="0" | ||
input-whole-number | ||
input-number | ||
> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import uiModules from 'ui/modules'; | ||
let module = uiModules.get('kibana'); | ||
|
||
module.directive('inputNumber', function () { | ||
return { | ||
restrict: 'A', | ||
require: 'ngModel', | ||
link: function ($scope, $elem, attrs, ngModel) { | ||
ngModel.$parsers.push(checkNumber); | ||
ngModel.$formatters.push(checkNumber); | ||
|
||
function checkNumber(value) { | ||
ngModel.$setValidity('number', !isNaN(parseFloat(value))); | ||
return value; | ||
} | ||
} | ||
}; | ||
}); |
This file was deleted.
Oops, something went wrong.