sNews Forum

sNews 1.6 (previous version) => Patches/fixes => Topic started by: piXelatedEmpire on December 13, 2007, 12:14:03 am

Title: [PATCH] Javascript error
Post by: piXelatedEmpire on December 13, 2007, 12:14:03 am
As per this bug report (http://snewscms.com/forum/index.php?topic=6468.0).  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.'>';