forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
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: 189c60d45010eb843dc573863aaf0fb85fbaefc6 [formerly da04e10] * Authored by = <[email protected]> on 2016-10-05T20:46:52Z **Commit 2:** Removing the input-whole-number, no longer used. * Original sha: 6217f3d8bf453f8431f90f5f5b3acc4defaf6ad6 [formerly cccb370] * Authored by = <[email protected]> on 2016-10-06T17:29:03Z Former-commit-id: 2172489
- Loading branch information
1 parent
ef60553
commit d25851e
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.