From 4b795cc7192cd2d1720e9b06e13b7c90abf8d9d8 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Wed, 30 Mar 2011 13:16:26 -0700 Subject: [PATCH] Stop bad call to users/update --- public/javascripts/aspect-filters.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/javascripts/aspect-filters.js b/public/javascripts/aspect-filters.js index 53f1de66b..89b74a9cb 100644 --- a/public/javascripts/aspect-filters.js +++ b/public/javascripts/aspect-filters.js @@ -105,11 +105,11 @@ $(document).ready(function(){ return baseURL; } - function performAspectUpdate(home){ + function performAspectUpdate(){ // update the open aspects in the user updateURL = "/user"; updateURL += '?'; - if(home == 'home'){ + if(selectedGUIDS.length == 0){ updateURL += 'user[a_ids][]=home'; } else { for(i=0; i < selectedGUIDS.length; i++){ @@ -125,7 +125,7 @@ $(document).ready(function(){ } if($("a.home_selector").parent().hasClass("selected")){ - performAspectUpdate("home"); + performAspectUpdate(); } function performAjax(newURL) {