mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Use select instead of an input for cds
This commit is contained in:
@@ -66,12 +66,6 @@ habitrpg.controller('SettingsCtrl',
|
||||
|
||||
$scope.openDayStartModal = function(dayStart) {
|
||||
$scope.dayStart = +dayStart;
|
||||
var flooredDayStart = Math.floor($scope.dayStart);
|
||||
|
||||
if ($scope.dayStart !== flooredDayStart || $scope.dayStart < 0 || $scope.dayStart > 24 ) {
|
||||
return alert(window.env.t('enterNumber'));
|
||||
}
|
||||
|
||||
$scope.nextCron = _calculateNextCron();
|
||||
|
||||
$rootScope.openModal('change-day-start', { scope: $scope });
|
||||
|
||||
Reference in New Issue
Block a user