PageSourceSearch

https://social.condomob.net/lib/selectFilter/selectFilter.js?v=20231201

js condomob.net collected 2026-09-24 10:40:18 UTC 991 bytes, 28 lines download raw bytes

1var selectFilter = {
2	apply: function(id){
3		var fnCreate = function( e ) {
4			var input;
5			var listbox = $( "#"+id+"-listbox" );
6			var form = listbox.jqmData( "filter-form" );
7			var listview = $( e.target );
8
9			if ( !form ) {
10				input = $( "<input data-type='search'></input>" );
11				form = $( "<form></form>" ).append( input );
12				input.textinput();
13				$( "#"+id+"-listbox" ).prepend( form ).jqmData( "filter-form", form );
14			}
15
16			listview.filterable({ input: input });
17		}; 
18		
19		var fnPageHide = function( e ) {
20			var form = $( "#"+id+"-listbox" ).jqmData( "filter-form" );
21			var placeInDialog = ( e.type === "pagebeforeshow" );
22			var destination = placeInDialog ? $( e.target ).find( ".ui-content" ) : $( "#"+id+"-listbox" );
23			form.find( "input" ).textinput( "option", "inset", !placeInDialog ).end().prependTo( destination );
24		};
25		
26		$.mobile.document.on( "listviewcreate", ("#"+id+"-menu"), fnCreate).on( "pagebeforeshow pagehide", "#"+id+"-dialog", fnPageHide);
27	}
28};

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.