zend-developer-tools icon indicating copy to clipboard operation
zend-developer-tools copied to clipboard

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

Open sjanjic opened this issue 11 years ago • 10 comments

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

sjanjic avatar Jun 23 '14 15:06 sjanjic

What's the error?

Ocramius avatar Jun 23 '14 15:06 Ocramius

In javascript, firebug report error

sjanjic avatar Jun 23 '14 15:06 sjanjic

Yes, but what error?

Ocramius avatar Jun 23 '14 15:06 Ocramius

TypeError: toggleTrigger is null

toggleTrigger.innerHTML = "◄";

sjanjic avatar Jun 23 '14 15:06 sjanjic

What does this look like in your page?

Ocramius avatar Jun 23 '14 15:06 Ocramius

How to test it?

sjanjic avatar Jun 23 '14 16:06 sjanjic

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

Ocramius avatar Jun 23 '14 16:06 Ocramius

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

sjanjic avatar Jun 23 '14 16:06 sjanjic

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

sjanjic avatar Jun 23 '14 16:06 sjanjic

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.

weierophinney avatar Dec 31 '19 22:12 weierophinney