Support keyboard input in date/time picker
This commit is contained in:
committed by
Sebastiaan Janssen
parent
014eba971e
commit
bd8e344736
@@ -77,6 +77,11 @@ function dateTimePickerController($scope, notificationsService, assetsService, a
|
||||
setDate(date);
|
||||
setDatePickerVal();
|
||||
};
|
||||
|
||||
$scope.inputChanged = function() {
|
||||
setDate($scope.model.datetimePickerValue);
|
||||
setDatePickerVal();
|
||||
}
|
||||
|
||||
//here we declare a special method which will be called whenever the value has changed from the server
|
||||
//this is instead of doing a watch on the model.value = faster
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
id="{{model.alias}}"
|
||||
type="text"
|
||||
ng-model="model.datetimePickerValue"
|
||||
ng-blur="inputChanged()"
|
||||
ng-required="model.validation.mandatory"
|
||||
val-server="value"
|
||||
class="datepickerinput">
|
||||
|
||||
Reference in New Issue
Block a user