Use select instead of an input for cds

This commit is contained in:
Blade Barringer
2015-09-06 09:36:29 -05:00
parent 085a785e4d
commit f1224bc6be
3 changed files with 25 additions and 53 deletions

View File

@@ -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 });