• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Can't minimize Jass tags

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
The image click event listener is referring to a <pre> while in fact the element it is trying to refer to is a <div>.

PHP:
var pre = this.parentNode.parentNode.getElementsByTagName('pre')[0];

Should be

PHP:
var pre = this.parentNode.parentNode.getElementsByTagName('div')[1]; // And probably name it div?
 
Status
Not open for further replies.
Top