Sha256: ce90556fb4912fdb4fb94b8f7450800ff451902f99e1ca17f40e984116b6327a

Contents?: true

Size: 666 Bytes

Versions: 19

Compression:

Stored size: 666 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
  $('##{dom_id(@task)}').effect("shake", { duration:250, distance: 6 });
  $('#task_name').focus();
  $('#task_submit').enable();

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/tasks/update.js.haml
fat_free_crm-0.15.2 app/views/tasks/update.js.haml
fat_free_crm-0.16.4 app/views/tasks/update.js.haml
fat_free_crm-0.14.1 app/views/tasks/update.js.haml
fat_free_crm-0.15.1 app/views/tasks/update.js.haml
fat_free_crm-0.16.3 app/views/tasks/update.js.haml
fat_free_crm-0.16.2 app/views/tasks/update.js.haml
fat_free_crm-0.16.1 app/views/tasks/update.js.haml
fat_free_crm-0.16.0 app/views/tasks/update.js.haml
fat_free_crm-0.15.0 app/views/tasks/update.js.haml
fat_free_crm-0.15.0.beta.2 app/views/tasks/update.js.haml
fat_free_crm-0.15.0.beta app/views/tasks/update.js.haml
fat_free_crm-0.14.0 app/views/tasks/update.js.haml
reduced_fat_crm-0.15.0.beta app/views/tasks/update.js.haml
reduced_fat_crm-0.14.0 app/views/tasks/update.js.haml
fat_free_crm-0.13.6 app/views/tasks/update.js.haml
fat_free_crm-0.13.5 app/views/tasks/update.js.haml
fat_free_crm-0.13.4 app/views/tasks/update.js.haml
fat_free_crm-0.13.3 app/views/tasks/update.js.haml