themouette / jquery-week-calendar

A weekly calendar plugin based on jquery and jquery-ui
http://groups.google.com/group/jquery-week-calendar
720 stars 253 forks source link

RemoveEvent in multi-user view. #167

Open tobiascapin opened 11 years ago

tobiascapin commented 11 years ago

When an event touchs multiple users and I call removeEvent() just the first event in dom is removed. The solution is very simple: remove the "return false" in each loop at row 399:

      self.element.find('.wc-cal-event').each(function() {
        if ($(this).data('calEvent').id === eventId) {
            $(this).remove();
            //  return false; <-- remove this
        }
      });