{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"%rails_admin/ra.datetimepicker.js; TI"
pathname; FI"i/Users/sferik/Projects/Ruby/gems/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js; TI"content_type; FI"application/javascript; FI"
mtime; Fl+ï”QI"length; Fi@I"digest; F"%f501bf1447e4b61babff6bd98f564c63I"source; FI"@/*
* 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 = $('');
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 = $('');
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);
; TI"dependency_digest; F"%e9015e8e391fa542db3201c282f18efbI"required_paths; F[I"i/Users/sferik/Projects/Ruby/gems/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js; TI"dependency_paths; F[{I" path; FI"i/Users/sferik/Projects/Ruby/gems/rails_admin/app/assets/javascripts/rails_admin/ra.datetimepicker.js; TI"
mtime; FI"2013-02-06T18:37:51+01:00; FI"digest; F"%fa46bf05f8b271c995ec0ffd66df00a2I"
_version; F"%f9a10b06158d64a75654a1ef72ec0ff4