Topic: [javascript bug +fix] front accounting 2.2.8
i think i've found bug,on javascript function,prevent normal operation.
first,
frontaccount\includes\ui\ui_view.inc
line 1102 - 1103
replace code:
table += \"<td><a class='\"+css_class+\"' href=\\\'javascript:setCCDate(\"+currentYear+\",\"+currentMonth+\",\"+dayOfMonth+\")\\\'>\"+dayOfMonth+\"</a></td>\";
dayOfMonth++;
second,
javascript compressor malfunction(?), using file xajaxCompress.php from xajaxproject.org
temporary,disable js_compress function in:
frontaccount\includes\main.inc
function cache_js_file($fpath, $text)
{
global $go_debug;
//disable javascript compress
//if(!$go_debug) $text = js_compress($text);
$file = fopen($fpath, 'w');
if (!$file) return false;
if (!fwrite($file, $text)) return false;
return fclose($file);
}