Enhanced Theme: Fixed JS error in Chrome.

This commit is contained in:
Nate Jones 2014-08-02 11:23:15 +00:00
parent a11f2e9ef9
commit f9fdb28a6f
1 changed files with 2 additions and 1 deletions

View File

@ -990,7 +990,8 @@ legend {
</script>
<script language="JavaScript" type="text/javascript">
function display_message(msg, mood = 'default') {
function display_message(msg, mood) {
mood = typeof mood !== 'undefined' ? mood : 'default';
if (msg != '') {
// insert temp div to get width w/o scroll bar
var helper_div = $('<div />');