The Future of post.js?
During my adventures through the old and new templates I eventually developed a lot of hate for a file by the innocent name of post.js
. As I understand, it was mainly just carried over from CNPROG. Well, I'm sure these guys had their reasons, but two things bother me:
- AskBot uses JQuery, post.js however could be written much more efficiently exploiting all of jQuery's features.
- More importantly: requirements on the site's structure are hard coded into
post.js
, for example it wants me to use aspan
with classdelete-icon
for the delete comment element, but ana
tag withedit
class for the edit comment action. Where's the consistency in that? It is for example currently impossible to place the comment-button outside the area where the actual comments are displayed, as the javascript will examine the context of the button to find out where to display the widget.
What's your opinion on post.js?
Edit: Separated possible solution into an answer to facilitate discussion.
Comments