Sha256: 59511e1c4d9aa1a25d12b01c1c4737b6d23abb0487cb4befa4a17e3b1b15991d

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

// use to give the preview of details for an event below a calendar
var updateEventDescription = function(event, jsEvent) {
  $("#event_quick_description").empty();
  $("#event_quick_description").append(
    $("<h3/>").append(
      $('<a/>', { text : event.title, href : event.url })
    )
  ).append(event.details);
  $("#event_quick_description").show();
}


jQuery(function($) {
  $('ul.events').attach(Collapsible);
  $('a.show_hide_link').attach(ShowHideLink);
  $('a.view_events').attach(EventView);
  $('div.links').attach(MagicButtons);

  /* I'm taking these zooms out - fonts that change size are a first class
   * ticket to getting slapped by our graphic designer
   * - Jason 
   *  $('div.links').attach(QuickZoom);
   *  $('div.event').attach(QuickZoom);
   *  $('ul.events').attach(QuickZoom);
   */
  $('div.links').attach(ecDynamicForm, {
    formElement: $('#link_dynamic_form')
  });
});

/*
http://www.learningjquery.com/2007/08/clearing-form-data
*/
$.fn.clearForm = function() {
  return this.each(function() {
    var type = this.type, tag = this.tagName.toLowerCase();
    if (tag == 'form')
      return $(':input',this).clearForm();
    if (type == 'text' || type == 'password' || tag == 'textarea')
      this.value = '';
    else if (type == 'checkbox' || type == 'radio')
      this.checked = false;
    else if (tag == 'select')
      this.selectedIndex = -1;
  });
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.11 public/javascripts/event_calendar/event_calendar.js
event_calendar_engine-0.2.10 public/javascripts/event_calendar/event_calendar.js
event_calendar_engine-0.2.8 public/javascripts/event_calendar/event_calendar.js