PDA

View Full Version : Discount Coupon Codes



michael_s
04-18-2009, 01:00 AM
The following fix corrects the javascript error when editing Discount Coupons. The javascript function affected is the SetFocus() function used to set focus on the first form field when the page is loaded.

in admin/includes/general.js
around line 11 find:

(field.elements[i].type != "submit") ) {

replace with:

(field.elements[i].type != "submit") &&
(field.elements[i].disabled != true) ) {

This will ignore disabled fields. The error is caused by trying to set focus on the first form field which is disabled.

More... (http://addons.oscommerce.com/info/4269)