Fixed the display of the send button for firefox issue #90235

This commit is contained in:
Alexandr Antonov 2023-02-17 12:22:41 +03:00
parent b50d7dc02d
commit 40b9db383d

View File

@ -251,7 +251,10 @@ var RedmineHelpdeskWidget = {
script2 = document.createElement('script');
script2.type = 'text/javascript';
script2.src = this.base_url + '/helpdesk_widget/script.js';
setTimeout(function () {
document.head.appendChild(script2);
}, 500);
config_script = document.createElement('script');
config_script.innerHTML = "var RedmineHelpdeskIframe = {configuration: "+ JSON.stringify(this.configuration) +"}";
@ -320,6 +323,7 @@ var RedmineHelpdeskWidget = {
submit_div = document.createElement('div');
submit_div.id = 'submit_button';
submit_div.className = 'submit_button';
submit_div.style.display = 'none';
submit_div2 = document.createElement('div');
submit_div2.id = 'submit_button2';