You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Project Designer throws a JavaScript error on load (getStyle('td_sample')) #431
Found on the dev-6.0.0 branch (local, at 9bd3a1e0) during the lib/ cleanup. It may be on master too: the same code is there.
modules/projectdesigner/index.php L591 runs getStyle('td_sample', 'background-color', 'backgroundColor') on page load. No element with id td_sample exists any more, so getComputedStyle(null) throws "Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'". original_bgc stays undefined for the row-highlight code that uses it.
Fix: remove the call (and original_bgc) if row highlighting no longer needs it, or guard getStyle() (modules/projectdesigner/index.js L123) against a missing element and fall back to a fixed colour.
Activity
Project Designer: no getStyle('td_sample') error on load