Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [PATCH] Javascript error  (Read 3171 times)

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
[PATCH] Javascript error
« on: December 13, 2007, 12:14:03 AM »

As per this bug report.  Thanks to bakercad for the quick fix:

Here's the solution:

in the form_articles() function:

FIND THIS:
Quote
echo ':</label><br /><select name="define_category" id="cat" onchange="dependancy();">';

REPLACE IT WITH THIS:
Quote
$dependancy = $contents == 'extra_new' ? 'onchange="dependancy();"' : '';
echo ':</label><br /><select name="define_category" id="cat" '.$dependancy.'>';
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future