assets/js/devtools.js in appscms-tools-theme-3.4.5 vs assets/js/devtools.js in appscms-tools-theme-3.4.6

- old
+ new

@@ -10,13 +10,11 @@ let outputcopyButton = document.querySelector("#outputcopy"); let deleteEditorInputTxt = document.querySelector(".input_editor_bar .cross_icon"); let deleteEditorOuputTxt = document.querySelector(".output_editor_bar .cross_icon"); const siteName = file_upload.dataset.sitename let selectedFile -$(function () { - $('[data-toggle="tooltip"]').tooltip() -}) + upload_div_inner.onclick = function () { document.querySelector("#file_upload").click(); }; file_upload.onchange = function (e) { var input = e.target.files[0]; @@ -45,29 +43,17 @@ el.value = input_editor.getValue(); document.body.appendChild(el); el.select(); document.execCommand("copy"); e.target.setAttribute('data-original-title', 'Copied !') - const tooltip = new bootstrap.Tooltip(e.target); - tooltip.show() - setTimeout(() => { - e.target.setAttribute('data-original-title', 'Copy !') - tooltip.hide() - }, 800) }) outputcopyButton.addEventListener("click", (e) => { const el = document.createElement("textarea"); el.value = output_editor.getValue(); document.body.appendChild(el); el.select(); document.execCommand("copy"); e.target.setAttribute('data-original-title', 'Copied !') - const tooltip = new bootstrap.Tooltip(e.target); - tooltip.show() - setTimeout(() => { - e.target.setAttribute('data-original-title', 'Copy !') - tooltip.hide() - }, 800) }) } function file_saving_decision(flag) { if (flag == 1) { if (input_editor.getValue == "" || input_editor.getValue == undefined) { \ No newline at end of file