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

Version Path
spontaneous-0.2.0.beta10 application/js/field/date.js
spontaneous-0.2.0.beta9 application/js/field/date.js
spontaneous-0.2.0.beta8 application/js/field/date.js
spontaneous-0.2.0.beta7 application/js/field/date.js
spontaneous-0.2.0.beta6 application/js/field/date.js