Utilize the knowledge of whether a dictionary is complete or not on when viewing.
This commit is contained in:
parent
2176488109
commit
6be4798bbc
|
@ -42,6 +42,11 @@ function ShowPublicDictionary() {
|
|||
|
||||
var dictionaryByArea = document.getElementById("dictionaryBy");
|
||||
dictionaryByArea.innerHTML = "created by " + htmlEntitiesParse(publicDictionary.createdBy);
|
||||
|
||||
var dictionaryIncompleteArea = document.getElementById("incompleteNotice");
|
||||
if (!publicDictionary.settings.isComplete) {
|
||||
dictionaryIncompleteArea.innerHTML = "<em>Note: This dictionary is not yet complete and is likely to change.</em>";
|
||||
}
|
||||
|
||||
var dictionaryDescriptionArea = document.getElementById("dictionaryDescription");
|
||||
dictionaryDescriptionArea.innerHTML = marked(htmlEntitiesParse(publicDictionary.description));
|
||||
|
|
|
@ -73,6 +73,7 @@ catch (PDOException $ex) {}
|
|||
<div id="dictionaryContainer">
|
||||
<h1 id="dictionaryName"></h1>
|
||||
<h4 id="dictionaryBy"></h4>
|
||||
<div id="incompleteNotice"></div>
|
||||
|
||||
<span id="descriptionToggle" class="clickable" onclick="ToggleDescription();">Hide Description</span>
|
||||
<div id="dictionaryDescription" style="display:block;"></div>
|
||||
|
|
Loading…
Reference in New Issue