Sha256: 4f45434fb8963681b7e99f51b1edc560ee824d4265a4316b0b10d96e85a89f96
Contents?: true
Size: 558 Bytes
Versions: 5
Compression:
Stored size: 558 Bytes
Contents
// console.log('Loading DateField...') Spontaneous.Field.Date = (function($, S) { var dom = S.Dom; var DateField = new JS.Class(Spontaneous.Field.String, { input: function() { var input = this.callSuper(); input.datepicker({ 'dateFormat': 'DD, d MM yy' }); return input; }, dateFormat: function() { // var rubyFormat = this.type.date_format, // parts = rubyFormat.split("%").map(function(d) { return d.split(/(\\s+)/); }); // console.log(parts) return this.type.date_format; } }); return DateField; })(jQuery, Spontaneous);
Version data entries
5 entries across 5 versions & 1 rubygems