Sha256: 8d1de74ff614886a617125e22b80943394a2df8f9b570584634cddbd1092017a
Contents?: true
Size: 578 Bytes
Versions: 5
Compression:
Stored size: 578 Bytes
Contents
// console.log('Loading DateField...') Spontaneous.FieldTypes.DateField = (function($, S) { var dom = S.Dom; var DateField = new JS.Class(Spontaneous.FieldTypes.StringField, { 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