I think if anywhere, this should go in cel-cookie.js. starred.js is for
javascript specific to the page that displays favorited locations.

On Tue, Jul 23, 2013 at 4:36 PM, Bennet Huber <notifications@github.com>wrote:

> In python/ecep/portal/static/js/cel/common.js:
>
> > @@ -110,7 +110,16 @@ function($, L, Response, Handlebars) {
> >          });
> >      } else {
> >          $('.geolocation-button').hide();
> > -    };
> > +    }
> > +
> > +    // Add save to cookie functionality for any "star this Location" button on the page
> > +    $('.button-add-starred').bind('click', function(e) {
>
> I'm not sure this belongs here at all, the rest of the logic dealing with
> favorites is defined in starred.js . If we create a separate module for
> favorite logic, that would be a good place to put this.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/smartchicago/chicago-early-learning/pull/198/files#r5356182>
> .
>