1jQuery.widget( 'gc.fileField', $.gc.abstractField, { 2 3 build: function() { 4 $input = $('<input type="hidden"/>'); 5 if ( this.field.id ) { 6 $input.attr('id', 'field-input-' + this.field.id); 7 } 8 $input.appendTo( this.labelEl ); 9 10 $input.fileWidget({showButtonOnStart:true}); 11 12 13 this.input = $input; 14 }, 15 afterInit: function() { 16 this.input.fileWidget( 'showUploader' ); 17 }, 18 19 20 initEditor: function( settingsEl ) { 21 $.gc.abstractField.prototype.initEditor.call(this, settingsEl ); 22 }, 23 24 getValue: function() { 25 return this.input.val(); 26 }, 27 valueChanged: function( showFileWidgetIfNull ) { 28 this.input.fileWidget( 'showPreview', showFileWidgetIfNull ) 29 30 } 31} );
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.