o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1330741523.0705023: @value"'{I" class:EFI"ProcessedAsset;FI"logical_path;F"calendarize.jsI" pathname;F"M/home/girl/Semi/calendarize/app/assets/javascripts/calendarize.js.coffeeI"content_type;FI"application/javascript;FI" mtime;FI"2012-03-02T21:25:20-05:00;FI" length;Fi< I" digest;F"%f0f3dc89e6599757dc4f90a1d0aba87dI" source;FI"< (function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; this.DailyCalendar = (function() { function DailyCalendar(id, opts) { this.init = __bind(this.init, this); this.inner = $('#' + id); this.not_all_day = $('#not_all_day', this.inner); this.first_row = $('.row_content:first', this.not_all_day); this.options = { height: this.first_row.outerHeight(true), width: 200 }; $.extend(this.options, opts); this.init(); } DailyCalendar.prototype.init = function() { var _this = this; return $('.calendar_event', this.inner).each(function(index, element) { var e; e = $(element); e.width(_this.options['width']); e.height(_this.options['height'] * (parseInt(e.data('row-end')) - parseInt(e.data('row-start'))) - 1); console.log($('#row_content_' + e.data('row-start'), _this.not_all_day)); return e.position({ my: 'left top', at: 'left top', of: $('#row_content_' + e.data('row-start'), _this.not_all_day), offset: e.data('column') * (_this.options['width'] + 3) + ' 0', collision: 'none' }); }); }; return DailyCalendar; })(); this.WeeklyCalendar = (function() { function WeeklyCalendar(id, opts) { this.init = __bind(this.init, this); this.inner = $('#' + id); this.options = { height: 60 }; $.extend(this.options, opts); this.init(); } WeeklyCalendar.prototype.init = function() { var _this = this; $('.row_unit', this.inner).each(function(index, element) { var e; e = $(element); return e.height(e.data('events-count') * _this.options['height']); }); return $('.calendar_event', this.inner).each(function(index, element) { var cell, e; e = $(element); cell = $('.row_' + e.data('row') + '.column_' + e.data('column'), _this.inner); e.width(cell.outerWidth(true)); e.height(_this.options['height']); return e.position({ my: 'left top', at: 'left top', of: $('.row_' + e.data('row') + '.column_' + e.data('column'), _this.inner), offset: '0 ' + e.data('index') * _this.options['height'], collision: 'none' }); }); }; return WeeklyCalendar; })(); $(document).ready(function() { var daily_calendars, weekly_calendars, _this = this; daily_calendars = []; $('.daily_calendar').each(function(index, element) { return daily_calendars << new DailyCalendar(element.id); }); weekly_calendars = []; return $('.weekly_calendar').each(function(index, element) { return weekly_calendars << new WeeklyCalendar(element.id); }); }); }).call(this); ;TI"dependency_digest;F"%5e2e0c073d4ef206c12df845c6a47d2bI"required_paths;F["M/home/girl/Semi/calendarize/app/assets/javascripts/calendarize.js.coffeeI"dependency_paths;F[{I" path;F"M/home/girl/Semi/calendarize/app/assets/javascripts/calendarize.js.coffeeI" mtime;FI"2012-03-02T21:25:20-05:00;FI" digest;F"%0e8349d4ecf524a0194571f519a98b29I" _version;F"%aa7d0db7619379e13b08335dee027df2