zendframework / zend-developer-tools

Module for developer and debug tools for working with the ZF2 MVC layer.
BSD 3-Clause "New" or "Revised" License
324 stars 130 forks source link

TypeError: toggleTrigger is null toggleTrigger.innerHTML = "◄"; #155

Open sjanjic opened 10 years ago

sjanjic commented 10 years ago

Firebug show this error on this function:

        self.show = function() {
            slide(0);

            toggleTrigger.innerHTML = "◄";
            toggleTrigger.setAttribute("title", "Hide Toolbar");
            hidden = false;

            cookie.set(cookieKeyHidden, 0);
        };

and there is no icon to close toolbar

Ocramius commented 10 years ago

What's the error?

sjanjic commented 10 years ago

In javascript, firebug report error

Ocramius commented 10 years ago

Yes, but what error?

sjanjic commented 10 years ago

TypeError: toggleTrigger is null

toggleTrigger.innerHTML = "◄";

Ocramius commented 10 years ago

What does this look like in your page?

sjanjic commented 10 years ago

How to test it?

Ocramius commented 10 years ago

Just run that command in the console - I suppose the HTML on your page may be broken

sjanjic commented 10 years ago

It shows a element with 'zdf-toolbar-toggle' id but it's hidden

sjanjic commented 10 years ago

<a href="javascript:void(0);" class="zdf-toolbar-hide-button" id="zdf-toolbar-toggle"></a>

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at https://github.com/laminas/laminas-developer-tools/issues/13.