Sha256: 0e77328bcda6264fcab1771bcef8f643ca9311d10db045c057e19cf25f7559bb

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

- if @task.errors.empty?

  - if !called_from_index_page?
    -# If it's not Tasks tab then we just reload appropriate
    -# partial with the new task, and update recent items.
    = replace_content(@task)
    $('#recently').replaceWith('#{ j render(partial: "shared/recently") }');
  - else
    - if @task.assigned_to != @task_before_update.assigned_to
      = reassign(@task)
    - elsif @task.bucket != @task_before_update.bucket
      = reschedule(@task)
    - else
      = replace_content(@task, @task.bucket)

- else # Errors
  $('#task_name').focus();
  $('#task_submit').enable();

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/tasks/update.js.haml
fat_free_crm-0.22.0 app/views/tasks/update.js.haml
fat_free_crm-0.21.0 app/views/tasks/update.js.haml
fat_free_crm-0.20.1 app/views/tasks/update.js.haml
fat_free_crm-0.20.0 app/views/tasks/update.js.haml