1jQuery.widget( 'gc.textField', $.gc.abstractField, { 2 3 build: function() { 4 this.input = $('<textarea/>'); 5 if ( this.field.id ) { 6 this.input.attr('id', 'field-input-' + this.field.id); 7 } 8 this.input.appendTo( this.inputBlock ); 9 }, 10 11 initEditor: function( settingsEl ) { 12 $.gc.abstractField.prototype.initEditor.call(this, settingsEl ); 13 14 this.placeholderInput = this.makeInputTextarea( 'placeholder', Yii.t( "common", "Placeholder" ) ) 15 this.colsInput = this.makeInputField( 'cols', Yii.t( "common", "Symbols (width)" ), 3 ) 16 this.rowsInput = this.makeInputField( 'rows', Yii.t( "common", "Rows" ), 3 ) 17 }, 18 19 getField: function() { 20 var result = $.gc.abstractField.prototype.getField.call(this); 21 result.settings = {}; 22 result.settings.placeholder = this.placeholderInput.val(); 23 result.settings.cols = this.colsInput.val(); 24 result.settings.rows = this.rowsInput.val(); 25 return result; 26 }, 27 28 rebuild: function() { 29 $.gc.abstractField.prototype.rebuild.call(this); 30 this.input.attr( 'placeholder', this.field.settings.placeholder ) 31 if ( this.field.settings.cols ) { 32 this.input.attr( 'cols', this.field.settings.cols ) 33 } 34 if ( this.field.settings.rows ) { 35 this.input.attr( 'rows', this.field.settings.rows ) 36 } 37 }, 38 39 getValue: function() { 40 return this.input.val(); 41 } 42} );
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.