PageSourceSearch

https://www.scotlandsmusic.com/SmCoreResources/js/Controls/SearchField.js

js scotlandsmusic.com collected 2026-10-02 12:16:42 UTC 1,701 bytes, 1 lines download raw bytes

1(function(a){window.Type.registerNamespace("Smarthouse.Web.UI");window.Type.registerNamespace("ScotlandsMusic.Core.Web.UI.Header");var c=ScotlandsMusic.Core.Web.UI.Header;var b=c.SearchField=function(d){b.initializeBase(this,[d]);this._searchUrl=null;this._searchTerm=null;this._initialSearchTerm=null;this._button=null};b.prototype={get_searchUrl:function(){return this._searchUrl},set_searchUrl:function(d){this._searchUrl=d},get_searchTerm:function(){return this._searchTerm},set_searchTerm:function(d){this._searchTerm=d},get_initialSearchTerm:function(){return this._initialSearchTerm},set_initialSearchTerm:function(d){this._initialSearchTerm=d},get_button:function(){return this._button},set_button:function(d){this._button=d},initialize:function(){b.callBaseMethod(this,"initialize");window.Sys.Application.add_load(this._initializeDelegate=Function.createDelegate(this,this._initialize))},_initialize:function(){window.Sys.Application.remove_load(this._initializeDelegate);delete this._initializeDelegate;a(this.get_button()).click(Function.createDelegate(this,function(d){this._goToSearch();d.preventDefault()}))},_goToSearch:function(){if(a(this.get_searchTerm()).val()!==this.get_initialSearchTerm()){window.location.href=this.get_searchUrl()+"/"+encodeURI(a(this.get_searchTerm()).val().trim())}},dispose:function(){if(this._initializeDelegate!=null){window.Sys.Application.remove_load(this._initializeDelegate);delete this._initializeDelegate}b.callBaseMethod(this,"dispose")},_noop:function(){}};b.registerClass("ScotlandsMusic.Core.Web.UI.Header.SearchField",Smarthouse.Web.UI.ClientScriptControl);if(typeof(window.Sys)!=="undefined"){window.Sys.Application.notifyScriptLoaded()}})($);

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.