mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
Re-dump autoloader and composer.lock
This commit is contained in:
@@ -413,11 +413,7 @@
|
||||
renderAjaxRequests: renderAjaxRequests,
|
||||
|
||||
getSfwdt: function(token) {
|
||||
if (!this.sfwdt) {
|
||||
this.sfwdt = document.getElementById('sfwdt' + token);
|
||||
}
|
||||
|
||||
return this.sfwdt;
|
||||
return document.getElementById('sfwdt' + token);
|
||||
},
|
||||
|
||||
load: function(selector, url, onSuccess, onError, options) {
|
||||
@@ -542,11 +538,16 @@
|
||||
'sfwdt' + token,
|
||||
'{{ url("_wdt", { "token": "xxxxxx" })|escape('js') }}'.replace(/xxxxxx/, newToken),
|
||||
function(xhr, el) {
|
||||
var toolbarContent = document.getElementById('sfToolbarMainContent-' + newToken);
|
||||
|
||||
/* Do nothing in the edge case where the toolbar has already been replaced with a new one */
|
||||
if (!document.getElementById('sfToolbarMainContent-' + newToken)) {
|
||||
if (!toolbarContent) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Replace the ID, it has to match the new token */
|
||||
toolbarContent.parentElement.id = 'sfwdt' + newToken;
|
||||
|
||||
/* Evaluate in global scope scripts embedded inside the toolbar */
|
||||
var i, scripts = [].slice.call(el.querySelectorAll('script'));
|
||||
for (i = 0; i < scripts.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user