diff --git a/src/scripts/tutti/10_tasks.js b/src/scripts/tutti/10_tasks.js index 2526d5c..9f71a02 100644 --- a/src/scripts/tutti/10_tasks.js +++ b/src/scripts/tutti/10_tasks.js @@ -173,10 +173,10 @@ function task_create(shot_id, project_url, task_type) }); } -function attract_form_save(form_id, item_id, item_save_url, options={}) +function attract_form_save(form_id, item_id, item_save_url, options) { // Mandatory option. - if (typeof options.type === 'undefined') { + if (typeof options === 'undefined' || typeof options.type === 'undefined') { throw new ReferenceError('attract_form_save(): options.type is mandatory.'); } @@ -332,4 +332,3 @@ $(function() { } }); }); -