Code of Conduct
Is there an existing issue for this?
GLPI Version
11.0.5
Plugin version
2.10.1
Bug description
`//delay the execution (ajax requestcomplete event fired before dom loading)
setTimeout( function () {
if ($("#cloneandlink_ticket").length > 0) { return; }
var duplicate_html = "<button id='cloneandlink_ticket' class='btn btn-sm btn-ghost-secondary ms-auto'"+
"title='{$locale_cloneandlink}'>" + __s("Clone") +
"";
$("#linked_tickets-heading .accordion-button")
.append(duplicate_html);
addOnclick();
}, 100);`
BY
`//delay the execution (ajax requestcomplete event fired before dom loading)
setTimeout( function () {
if ($("#cloneandlink_ticket").length > 0) { return; }
var duplicate_html = "<button id='cloneandlink_ticket' class='btn btn-sm btn-ghost-secondary ms-auto'"+
"title='{$locale_cloneandlink}'>" +'{$locale_cloneandlink}' +
"";
$("#linked_tickets-heading .accordion-button")
.append(duplicate_html);
addOnclick();
}, 100);`
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
Code of Conduct
Is there an existing issue for this?
GLPI Version
11.0.5
Plugin version
2.10.1
Bug description
`//delay the execution (ajax requestcomplete event fired before dom loading)
setTimeout( function () {
if ($("#cloneandlink_ticket").length > 0) { return; }
var duplicate_html = "<button id='cloneandlink_ticket' class='btn btn-sm btn-ghost-secondary ms-auto'"+
"title='{$locale_cloneandlink}'>" + __s("Clone") +
"";
BY
`//delay the execution (ajax requestcomplete event fired before dom loading)
setTimeout( function () {
if ($("#cloneandlink_ticket").length > 0) { return; }
var duplicate_html = "<button id='cloneandlink_ticket' class='btn btn-sm btn-ghost-secondary ms-auto'"+
"title='{$locale_cloneandlink}'>" +'{$locale_cloneandlink}' +
"";
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response