mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-23 01:55:01 +00:00
Merge changes
This commit is contained in:
commit
ad0768000b
3 changed files with 7 additions and 3 deletions
4
build/index.php
Executable file → Normal file
4
build/index.php
Executable file → Normal file
|
@ -2636,12 +2636,14 @@ window.addEventListener("load", function(event) {
|
|||
}
|
||||
|
||||
// Add the new suggestions to the datalist
|
||||
var optionsFrag = document.createDocumentFragment();
|
||||
suggestions.forEach(function(suggestion) {
|
||||
var suggestionElement = document.createElement("option");
|
||||
suggestionElement.value = suggestion.pagename;
|
||||
suggestionElement.dataset.distance = suggestion.distance;
|
||||
dataList.appendChild(suggestionElement);
|
||||
optionsFrag.appendChild(suggestionElement);
|
||||
});
|
||||
dataList.appendChild(optionsFrag);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
"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.",
|
||||
"id": "feature-search",
|
||||
"lastupdate": 1479648436,
|
||||
"lastupdate": 1481051853,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -287,12 +287,14 @@ window.addEventListener("load", function(event) {
|
|||
}
|
||||
|
||||
// Add the new suggestions to the datalist
|
||||
var optionsFrag = document.createDocumentFragment();
|
||||
suggestions.forEach(function(suggestion) {
|
||||
var suggestionElement = document.createElement("option");
|
||||
suggestionElement.value = suggestion.pagename;
|
||||
suggestionElement.dataset.distance = suggestion.distance;
|
||||
dataList.appendChild(suggestionElement);
|
||||
optionsFrag.appendChild(suggestionElement);
|
||||
});
|
||||
dataList.appendChild(optionsFrag);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue