o: ActiveSupport::Cache::Entry :@expires_in0:@compressedF:@value" {"content_type"application/javascript" class"ProcessedAsset"dependency_digest"%462feb6e8627a61c93f88133f343a760" mtime"2012-04-28T20:21:50-05:00" _version"%9f3b95dd7ea3030dc35985c0a8020862"dependency_paths[{" mtime"2012-04-28T20:21:50-05:00"digest"%d70bb9ff6243d1cb91686c75212dd496" path"[/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js"digest"%ab62563e8b458fb326d004a4e1ed653e"required_paths["[/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js" pathname"[/Users/njones/Code/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js"logical_path"%rails_admin/ra.datetimepicker.js"lengthi@"source"@/* * RailsAdmin date/time picker @VERSION * * License * * http://www.railsadmin.org * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.datepicker.js * jquery.ui.timepicker.js (http://plugins.jquery.com/project/timepicker-by-fgelinas) */ (function($) { $.widget("ra.datetimepicker", { options: { showDate: true, showTime: true, datepicker: {}, timepicker: {} }, _create: function() { var widget = this; this.element.hide(); if (this.options.showTime) { this.timepicker = $('<input class="TIMEPICKER" type="text" value="' + this.options.timepicker.value + '" />'); this.timepicker.css("width", "60px"); this.timepicker.insertAfter(this.element); this.timepicker.bind("change", function() { widget._onChange(); }); this.timepicker.timepicker(this.options.timepicker); } if (this.options.showDate) { this.datepicker = $('<input type="text" value="' + this.options.datepicker.value + '" />'); this.datepicker.css("margin-right", "10px"); this.datepicker.insertAfter(this.element); this.datepicker.bind("change", function() { widget._onChange(); }); this.datepicker.datepicker(this.options.datepicker); } }, _onChange: function() { var value = []; if (this.options.showDate) { value.push(this.datepicker.val()); } if (this.options.showTime) { value.push(this.timepicker.val()); } this.element.val(value.join(" ")); } }); })(jQuery); :@created_atf1335716315.6923029�N�