From 6be4798bbce5122ed209ef508b34a533ac737c22 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Tue, 22 Dec 2015 15:16:36 -0700 Subject: [PATCH] Utilize the knowledge of whether a dictionary is complete or not on when viewing. --- js/publicView.js | 5 +++++ view/index.php | 1 + 2 files changed, 6 insertions(+) diff --git a/js/publicView.js b/js/publicView.js index 2db1afc..9304f4a 100644 --- a/js/publicView.js +++ b/js/publicView.js @@ -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 = "Note: This dictionary is not yet complete and is likely to change."; + } var dictionaryDescriptionArea = document.getElementById("dictionaryDescription"); dictionaryDescriptionArea.innerHTML = marked(htmlEntitiesParse(publicDictionary.description)); diff --git a/view/index.php b/view/index.php index 58b0055..b321e32 100644 --- a/view/index.php +++ b/view/index.php @@ -73,6 +73,7 @@ catch (PDOException $ex) {}

+
Hide Description