# HG changeset patch # User Atul Varma # Date 1277601677 25200 # Node ID 22da6fc3596ca2e0e6b72b993e3d519d77c7b398 # Parent b938cbfa69c29de54e62c12d8f70218db06431e9 fixed trim bug. diff -r b938cbfa69c2 -r 22da6fc3596c static-files/index.js --- a/static-files/index.js Sat Jun 26 18:13:37 2010 -0700 +++ b/static-files/index.js Sat Jun 26 18:21:17 2010 -0700 @@ -186,7 +186,7 @@ }); $("#usr_interests input").each( function() { - var label = $(this.parentNode).text().trim(); + var label = $.trim($(this.parentNode).text()); this.checked = (userInfo.interests.indexOf(label) != -1); }); @@ -306,7 +306,7 @@ $("#usr_interests input").each( function() { if (this.checked) - contents.interests.push($(this.parentNode).text().trim()); + contents.interests.push($.trim($(this.parentNode).text())); }); jQuery.postJSON(