View Full Version : #$%& Ajax in-line moderation!


darnoldy
21st September 2006, 06:34 PM
folks-

<rant>
Okay, so I'm doing a major remodel on the forumdisplay template...and I broke the inline moderation. Well, stuff breaks, nbd, right?

One of the things I did was convert the thread listing from a table to a list--which to my way of thinking is more semantically correct (you may choose to disagree).

This is what broke the highlighting! The script doesn't just look for an object with the correct ID, it specifically looks for TDs with the ID---grrrrr!

Back to the coding board!

</rant>

Disjunto
21st September 2006, 11:00 PM
we've had this problem before, it selects the table but just doesn't highlight.... which is a simple CSS entry away from being fixed :D iirc

Sephiroth
25th September 2006, 02:21 PM
Hmm.. I don't know much javascript myself, but maybe it's possible to modify the javascript files themselves to look for the <li> instead of the <td>.. I dunno.. Just wanted to spread my 2¢. :D

darnoldy
25th September 2006, 07:44 PM
maybe it's possible to modify the javascript files themselves to look for the <li> instead of the <td>.I considered that...but that external .js file is likely to be changed at every subversion upgrade! It seemed like, in the long run, it would be easier to maintain a template change than a script change.