PageSourceSearch

https://7101.ru/nassets/7bc22803/checkbox.js?v=1765633899

js 7101.ru collected 2026-09-26 17:08:43 UTC 572 bytes, 21 lines download raw bytes

1jQuery.widget( 'gc.checkboxField', $.gc.abstractField, {
2
3	build: function() {
4		$input = $('<input type="checkbox"/>');
5        if ( this.field.id ) {
6            $input.attr('id', 'field-input-' + this.field.id);
7        }
8		this.labelEl.find('.required-sign').detach();//.appendTo( this.labelEl.find('.label-value') )
9		$input.prependTo( this.labelEl );
10
11		this.input = $input;
12	},
13
14	initEditor: function( settingsEl ) {
15		$.gc.abstractField.prototype.initEditor.call(this, settingsEl );
16	},
17
18	getValue: function() {
19		return this.input.prop('checked') ? 1 : 0;
20	}
21} );

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.