1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-06-26 05:14:55 +00:00

Merge changes

This commit is contained in:
Starbeamrainbowlabs 2016-12-06 19:33:27 +00:00
commit ad0768000b
3 changed files with 7 additions and 3 deletions

4
build/index.php Executable file → Normal file
View file

@ -2636,12 +2636,14 @@ window.addEventListener("load", function(event) {
} }
// Add the new suggestions to the datalist // Add the new suggestions to the datalist
var optionsFrag = document.createDocumentFragment();
suggestions.forEach(function(suggestion) { suggestions.forEach(function(suggestion) {
var suggestionElement = document.createElement("option"); var suggestionElement = document.createElement("option");
suggestionElement.value = suggestion.pagename; suggestionElement.value = suggestion.pagename;
suggestionElement.dataset.distance = suggestion.distance; suggestionElement.dataset.distance = suggestion.distance;
dataList.appendChild(suggestionElement); optionsFrag.appendChild(suggestionElement);
}); });
dataList.appendChild(optionsFrag);
}); });
}); });
}); });

View file

@ -77,7 +77,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.", "description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
"id": "feature-search", "id": "feature-search",
"lastupdate": 1479648436, "lastupdate": 1481051853,
"optional": false "optional": false
}, },
{ {

View file

@ -287,12 +287,14 @@ window.addEventListener("load", function(event) {
} }
// Add the new suggestions to the datalist // Add the new suggestions to the datalist
var optionsFrag = document.createDocumentFragment();
suggestions.forEach(function(suggestion) { suggestions.forEach(function(suggestion) {
var suggestionElement = document.createElement("option"); var suggestionElement = document.createElement("option");
suggestionElement.value = suggestion.pagename; suggestionElement.value = suggestion.pagename;
suggestionElement.dataset.distance = suggestion.distance; suggestionElement.dataset.distance = suggestion.distance;
dataList.appendChild(suggestionElement); optionsFrag.appendChild(suggestionElement);
}); });
dataList.appendChild(optionsFrag);
}); });
}); });
}); });