return;
}
- updateSelectionWhenReponseIsReceived = waitingForFilteringReponse;
- if (!waitingForFilteringReponse) {
+ updateSelectionWhenReponseIsReceived = waitingForFilteringResponse;
+ if (!waitingForFilteringResponse) {
doPostFilterSelectedItemAction();
}
}
private String selectedOptionKey;
- private boolean waitingForFilteringReponse = false;
+ private boolean waitingForFilteringResponse = false;
private boolean updateSelectionWhenReponseIsReceived = false;
private boolean tabPressedWhenPopupOpen = false;
private boolean initDone = false;
}
}
- waitingForFilteringReponse = true;
+ waitingForFilteringResponse = true;
client.updateVariable(paintableId, "filter", filter, false);
client.updateVariable(paintableId, "page", page, true);
lastFilter = filter;
lastNewItemString = null;
currentSuggestions.clear();
- if (!waitingForFilteringReponse) {
+ if (!waitingForFilteringResponse) {
/*
* Clear the current suggestions as the server response always
* includes the new ones. Exception is when filtering, then we need
optionUidl);
currentSuggestions.add(suggestion);
if (optionUidl.hasAttribute("selected")) {
- if (!waitingForFilteringReponse || popupOpenerClicked) {
+ if (!waitingForFilteringResponse || popupOpenerClicked) {
String newSelectedOptionKey = Integer.toString(suggestion
.getOptionKey());
if (!newSelectedOptionKey.equals(selectedOptionKey)
captions += Util.escapeHTML(suggestion.getReplacementString());
}
- if ((!waitingForFilteringReponse || popupOpenerClicked)
+ if ((!waitingForFilteringResponse || popupOpenerClicked)
&& uidl.hasVariable("selected")
&& uidl.getStringArrayVariable("selected").length == 0) {
// select nulled
- if (!waitingForFilteringReponse || !popupOpenerClicked) {
+ if (!waitingForFilteringResponse || !popupOpenerClicked) {
if (!focused) {
/*
* client.updateComponent overwrites all styles so we must
selectedOptionKey = null;
}
- if (waitingForFilteringReponse
+ if (waitingForFilteringResponse
&& lastFilter.toLowerCase().equals(
uidl.getStringVariable("filter"))) {
suggestionPopup.showSuggestions(currentSuggestions, currentPage,
totalMatches);
- waitingForFilteringReponse = false;
+ waitingForFilteringResponse = false;
if (!popupOpenerClicked
&& selectPopupItemWhenResponseIsReceived != Select.NONE) {
// we're paging w/ arrows
int keyCode = event.getNativeKeyCode();
debug("key down: " + keyCode);
- if (waitingForFilteringReponse
+ if (waitingForFilteringResponse
&& navigationKeyCodes.contains(keyCode)) {
/*
* Keyboard navigation events should not be handled while we are