Skip to content

Commit

Permalink
[FIX] remove duplicate ids from ajax params
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaai committed Apr 8, 2014
1 parent f9059de commit 25e959c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -56,7 +56,7 @@ class window.App.ContractsIndexController extends Spine.Controller
return {done: (c)=>c()} unless ids.length
App.User.ajaxFetch
data: $.param
ids: ids
ids: _.uniq(ids)
all: true
.done (data)=>
users = (App.User.find datum.id for datum in data)
Expand All @@ -70,7 +70,7 @@ class window.App.ContractsIndexController extends Spine.Controller
_(ids).each_slice 300, (slice)=>
App.Purpose.ajaxFetch
data: $.param
purpose_ids: slice
purpose_ids: _.uniq(slice)
.done done

render: (target, data, page)=>
Expand Down

0 comments on commit 25e959c

Please sign in to comment.