Commit 002396fb authored by Nikolay Gromov's avatar Nikolay Gromov

Бургер: вернул смену бургера на крест только если было действие

parent f94af4d3
......@@ -14,8 +14,8 @@ ready(function(){
function showBurgerTarget() {
var targetId = this.getAttribute('data-target-id');
var targetClassToggle = this.getAttribute('data-target-class-toggle');
this.classList.toggle('burger--close');
if (targetId && targetClassToggle) {
this.classList.toggle('burger--close');
document.getElementById(targetId).classList.toggle(targetClassToggle);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment