diff --git a/resources/report/js/plugin.js b/resources/report/js/plugin.js index 4b07ca40..725b06e4 100644 --- a/resources/report/js/plugin.js +++ b/resources/report/js/plugin.js @@ -173,6 +173,15 @@ function Plugin(obj) { card.shadowRoot.querySelector('#editor .crc').textContent = this.crc; } + /* Fill in the editor input values. */ + if (this.userlist && !this.userlist.enabled) { + card.shadowRoot.querySelector('#enableEdits').checked = false; + } else { + card.shadowRoot.querySelector('#enableEdits').checked = true; + } + card.shadowRoot.querySelector('#globalPriority').value = this.globalPriority; + card.shadowRoot.querySelector('#priorityValue').value = this.modPriority; + /* Fill in editor table data. */ var tables = card.shadowRoot.getElementsByTagName('table'); for (var i = 0; i < tables.length; ++i) { diff --git a/resources/report/report.html b/resources/report/report.html index 473a56f6..10334c97 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -154,12 +154,12 @@