"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/assets/javascripts/discourse/widgets/search-menu-controls.js.es6" between
discourse-2.2.0.tar.gz and discourse-2.2.1.tar.gz

About: Discourse is a "next-generation" forum platform for community discussions.

search-menu-controls.js.es6  (discourse-2.2.0):search-menu-controls.js.es6  (discourse-2.2.1)
skipping to change at line 22 skipping to change at line 22
}, },
searchAutocompleteAfterComplete() { searchAutocompleteAfterComplete() {
this.state.afterAutocomplete = true; this.state.afterAutocomplete = true;
}, },
buildAttributes(attrs) { buildAttributes(attrs) {
return { return {
type: "text", type: "text",
value: attrs.value || "", value: attrs.value || "",
autocomplete: "off",
placeholder: attrs.contextEnabled ? "" : I18n.t("search.title") placeholder: attrs.contextEnabled ? "" : I18n.t("search.title")
}; };
}, },
keyUp(e) { keyUp(e) {
if (e.which === 13) { if (e.which === 13) {
if (this.state.afterAutocomplete) { if (this.state.afterAutocomplete) {
this.state.afterAutocomplete = false; this.state.afterAutocomplete = false;
} else { } else {
return this.sendWidgetAction("fullSearch"); return this.sendWidgetAction("fullSearch");
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)