stable
Jesús Espino 2014-09-19 12:23:45 +02:00
parent 99c28a4c40
commit e0db76ac20
3 changed files with 3 additions and 14 deletions

View File

@ -91,15 +91,6 @@ DateSelectorDirective =->
$el.picker.setDate(selectedDate) if selectedDate?
})
if $attrs.greaterThan
$scope.$watch $attrs.greaterThan, (val) ->
$el.picker.setMinDate(moment(val))
if $attrs.lessThan
$scope.$watch $attrs.lessThan, (val) ->
$el.picker.setMaxDate(moment(val))
$scope.$watch $attrs.ngModel, (val) ->
$el.picker.setDate(val) if val?

View File

@ -184,7 +184,7 @@ class ConfirmService extends taiga.Service
if @.tsem
cancelTimeout(@.tsem)
time = if type == 'error' then 3500 else 1500
time = if type == 'error' or type == 'light-error' then 3500 else 1500
@.tsem = timeout time, =>
body.find(selector)

View File

@ -10,12 +10,10 @@ form
fieldset.dates
div
input.date-start(type="text", name="estimated_start", placeholder="Estimated Start",
ng-model="sprint.estimated_start", data-required="true", tg-date-selector,
less-than="sprint.estimated_finish")
ng-model="sprint.estimated_start", data-required="true", tg-date-selector)
div
input.date-end(type="text", name="estimated_finish", placeholder="Estimated End",
ng-model="sprint.estimated_finish", data-required="true", tg-date-selector
greater-than="sprint.estimated_start")
ng-model="sprint.estimated_finish", data-required="true", tg-date-selector)
a.button.button-green(href="", title="Save")
span Create