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

Version Path
spontaneous-0.2.0.alpha7 application/js/field_types/date_field.js
spontaneous-0.2.0.alpha6 application/js/field_types/date_field.js
spontaneous-0.2.0.alpha5 application/js/field_types/date_field.js
spontaneous-0.2.0.alpha4 application/js/field_types/date_field.js
spontaneous-0.2.0.alpha3 application/js/field_types/date_field.js