Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: BUG: Javascript not setting error classes correctly
Pages: [1]   Go Down
  Print  
Author Topic: BUG: Javascript not setting error classes correctly  (Read 2228 times)
0 Members and 2 Guests are viewing this topic.
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« on: March 08, 2011, 22:21:45 »

I think I've found a typo that is preventing the jcomments.js JcommentsForm.error()) method from setting the error class on invalid input elements. 

Basically the method should only have 1 argument "n" instead of "m" and "n".  I've also made it so the "error" class is added rather than assigned to prevent custom CSS classes from being overwritten.

Patch attached...

Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: April 19, 2011, 04:35:55 »

You're fully right! Thank you very much. I'll apply this patch to current development version.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: BUG: Javascript not setting error classes correctly
 
Jump to: