summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript/wizard/suggestions.js
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/javascript/wizard/suggestions.js')
-rw-r--r--usr/local/www/javascript/wizard/suggestions.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/usr/local/www/javascript/wizard/suggestions.js b/usr/local/www/javascript/wizard/suggestions.js
deleted file mode 100644
index 4d1e127..0000000
--- a/usr/local/www/javascript/wizard/suggestions.js
+++ /dev/null
@@ -1,33 +0,0 @@
-
-/**
- * Provides suggestions for state names (USA).
- * @class
- * @scope public
- */
-function StateSuggestions(text) {
- this.states = text;
-}
-
-/**
- * Request suggestions for the given autosuggest control.
- * @scope protected
- * @param oAutoSuggestControl The autosuggest control to provide suggestions for.
- */
-StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*:AutoSuggestControl*/,
- bTypeAhead /*:boolean*/) {
- var aSuggestions = [];
- var sTextboxValue = oAutoSuggestControl.textbox.value;
-
- if (sTextboxValue.length > 0){
-
- //search for matching states
- for (var i=0; i < this.states.length; i++) {
- if (this.states[i].toLowerCase().indexOf(sTextboxValue.toLowerCase()) == 0) {
- aSuggestions.push(this.states[i]);
- }
- }
- }
-
- //provide suggestions to the control
- oAutoSuggestControl.autosuggest(aSuggestions, bTypeAhead);
-};
OpenPOWER on IntegriCloud