Sha256: 3f62658af5dc521ac7d3ba7d354a62411626e5fecbdc45419971aeebd2da496b
Contents?: true
Size: 1005 Bytes
Versions: 23
Compression:
Stored size: 1005 Bytes
Contents
- self.rendered?(__FILE__) do :plain // #{__FILE__} $(document).ready(function() { $('div.month > table > thead > tr > td.left > a.previous').live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:-1}); }); $('div.month > table > thead > tr > td.right > a.next').live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:1}); }); $('div.month > table > tbody > tr > td > a.day').live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::ChangedEvent', source_id:$(this).parents('div.month').attr('id'), date:$(this).attr('date')}); }); }); = yield
Version data entries
23 entries across 23 versions & 1 rubygems