mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Create information area for bug reports or errors to the Support Team (#6876)
* initial commit for system information bug report data * add javascript to copy to clipboard * add javascript to copy to clipboard * Update copy_to_clipboard.js * Update system.php * Update app_languages.php Add other languages * move function file to resources/functions directory * use the array returned from system_information function * Update app_languages.php * update path locations * remove require files * Merge origin/create_json_page_for_bug_report into create_json_page_for_bug_report
This commit is contained in:
12
app/system/resources/javascript/copy_to_clipboard.js
Normal file
12
app/system/resources/javascript/copy_to_clipboard.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function copy_to_clipboard() {
|
||||
const span_id = document.getElementById("system_information");
|
||||
const text_to_copy = span_id.innerText;
|
||||
|
||||
navigator.clipboard.writeText(text_to_copy)
|
||||
.then(function() {
|
||||
console.log('Text successfully copied to clipboard');
|
||||
})
|
||||
.catch(function(err) {
|
||||
console.error('Unable to copy text to clipboard', err);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user