[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages

This commit is contained in:
Maxime Steinhausser 2017-07-18 19:41:39 +02:00
parent 0bd1f09152
commit 295fda9a31

View File

@ -512,6 +512,7 @@
var altContent = toggle.getAttribute('data-toggle-alt-content');
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;
});
}
/* Prevents from disallowing clicks on links inside toggles */
var toggleLinks = document.querySelectorAll('.sf-toggle a');
@ -521,7 +522,6 @@
});
}
}
}
};
})();