Sha256: b41aa868533b20759925a9b5c67a1aa901a449c8e141e13bd0feae0e074d8ba0

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

display_notice(page)
if @work && @work.errors.empty?
  page.replace "work_#{@work.id}_task_description", ''
  page.replace "work_#{@work.id}", :partial => 'row', :object => @work, :locals => {:next_row_id => nil}
  page["work_#{@work.id}_#{@next_field}"].select
  page["work_#{@work.id}_#{@next_field}"].focus
else
  @work.errors.each do |error|
    page["work_#{@work.id}_#{error[0]}"].addClassName('fieldWithErrors')
  end
end
if @day_total
  page.replace_html "hours_total", "#{t @day_total}"
end

if @new_work && @new_work.started_at
  page["work_start_time"].value = @new_work.started_at.strftime('%H:%M')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backlog-0.37.2 app/views/works/update_row.rjs
backlog-0.37.1 app/views/works/update_row.rjs
backlog-0.36.2 app/views/works/update_row.rjs