contao/import — Issue #3625: Contao-2.11.beta: js error in Opera console on Site structure page
Author: DyaGa
Created: 2011-11-29 21:53:56+00:00
State: open
Labels: backend, Defect

When opening `Site structure` or `File manager` pages in backend there is an JS error occurs in Opera console (Chrome and FireFox has no errors).

```
Uncaught exception: TypeError: 'parent.hasClass' is not a function
Error thrown at line 12, column 24957 in () in http://contao-211/system/scripts/72bd483276bc.js:
a[b].hasClass("mandatory")?$("ctrl_"+a[b].id).checked=[checked](a[b].hasClass("tl_listing"))&&(parent=a[b].getFirst("li").getNext("li"))&&parent.hasClass("parent")&&parent.setStyle("display","none")
called from line 12, column 47191 in () in http://contao-211/system/scripts/72bd483276bc.js:
Backend.styleFormFields(),Backend.hideTreeBody(),Backend.blink.periodical(600),$$("textarea.monospace").each(function(a){Backend.toggleWrap(a)}),Backend.collapsePalettes(),Backend.addInteractiveHelp(),Backend.addColorPicker()
called from line 2, column 122354 in (a) in http://contao-211/system/scripts/72bd483276bc.js:
c?a.delay(c,this,b):a.apply(this,b)
called via Function.prototype.apply() from line 2, column 5002 in (a) in http://contao-211/system/scripts/72bd483276bc.js:
return c.apply(a,f.call(arguments,1))
called via Function.prototype.apply() from line 2, column 8686 in (a, b) in http://contao-211/system/scripts/72bd483276bc.js:
return Array.forEach(this,a,b),this
called from line 2, column 122190 in (a, b, c) in http://contao-211/system/scripts/72bd483276bc.js:
return

![](d||)d[a]?this:(b=Array.from(b),d[a].keys.each(function(a){c?a.delay(c,this,b):a.apply(this,b)},this),this)
called from line 2, column 171091 in () in http://contao-211/system/scripts/72bd483276bc.js:
Browser.loaded=c=!0,b.removeListener("DOMContentLoaded",i).removeListener("readystatechange",j),b.fireEvent("domready"),a.fireEvent("domready")
```

--- _Originally created on November 12th, 2011, at 06:01pm (ID 3625)_