1jQuery.widget( 'gc.dateField', $.gc.stringField, { 2 3 build: function() { 4 var $input = $('<input type="text" autocomplete="off" />'); 5 if ( this.field.id ) { 6 $input.attr('id', 'field-input-' + this.field.id); 7 } 8 $input.appendTo(this.inputBlock); 9 10 var options = { 11 autoclose: true, 12 language: window.language, 13 weekStart: 1, 14 format: 'dd.mm.yyyy', 15 closeOnDateSelect: true 16 }; 17 18 if (this.field.settings.startDate) { 19 options.startDate = this.field.settings.startDate; 20 } 21 if (this.field.settings.endDate) { 22 options.endDate = this.field.settings.endDate; 23 } 24 25 $input.datepicker(options); 26 27 this.input = $input; 28 }, 29 30 initEditor: function( settingsEl ) { 31 $.gc.stringField.prototype.initEditor.call(this, settingsEl ); 32 }, 33 34 getValue: function() { 35 return this.input.val(); 36 } 37} );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.