From cbb950faefa2cc48f70643971ccc1038df28258d Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Wed, 27 Aug 2014 14:13:56 +0100 Subject: [PATCH] Fixed broken message dialog init. --- resources/report/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/report/js/custom.js b/resources/report/js/custom.js index 06b9cd2b..81bc1a45 100644 --- a/resources/report/js/custom.js +++ b/resources/report/js/custom.js @@ -702,7 +702,7 @@ var messageDialogProto = Object.create(HTMLDialogElement.prototype, { if (type == 'error' || type == 'info') { this.getElementsByClassName('accept')[0].textContent = 'OK'; - this.getElementsByClassName('cancel')[0].style.display = 'hidden'; + this.getElementsByClassName('cancel')[0].classList.toggle('hidden', true); } HTMLDialogElement.prototype.showModal.call(this);