changeset 48:22da6fc3596c

fixed trim bug.
author Atul Varma <avarma@mozilla.com>
date Sat, 26 Jun 2010 18:21:17 -0700
parents b938cbfa69c2
children dd7ed8307cd5
files static-files/index.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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(