Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/herald/PathTypeahead.js
| Show All 11 Lines | |||||
| JX.install('PathTypeahead', { | JX.install('PathTypeahead', { | ||||
| construct : function(config) { | construct : function(config) { | ||||
| this._repositorySelect = config.repo_select; | this._repositorySelect = config.repo_select; | ||||
| this._hardpoint = config.hardpoint; | this._hardpoint = config.hardpoint; | ||||
| this._input = config.path_input; | this._input = config.path_input; | ||||
| this._completeURI = config.completeURI; | this._completeURI = config.completeURI; | ||||
| this._validateURI = config.validateURI; | this._validateURI = config.validateURI; | ||||
| this._errorDisplay = config.error_display; | this._errorDisplay = config.error_display; | ||||
| this._textInputValues = {}; | |||||
| /* | |||||
| * Default values to preload the typeahead with, for extremely common | |||||
| * cases. | |||||
| */ | |||||
| this._textInputValues = config.repositoryDefaultPaths; | |||||
| this._initializeDatasource(); | this._initializeDatasource(); | ||||
| this._initializeTypeahead(this._input); | this._initializeTypeahead(this._input); | ||||
| }, | }, | ||||
| members : { | members : { | ||||
| /* | /* | ||||
| * DOM <select> elem for choosing the repository of a path. | * DOM <select> elem for choosing the repository of a path. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines | |||||