Article previous html
Jump to navigation
Jump to search
| Line 318: | Line 318: | ||
// && will not work correctly ! | // && will not work correctly ! | ||
// if(month && year) | // if(month && year) | ||
| − | if( | + | |
| + | var month_year = false; | ||
| + | if( month ) { | ||
| + | if(year) { | ||
| + | month_year = true; | ||
| + | } | ||
| + | |||
| + | if(month_year) { | ||
pagename += obj_months[month] + ' ' + year + ' - ' + title; | pagename += obj_months[month] + ' ' + year + ' - ' + title; | ||
} else if(year) { | } else if(year) { | ||
Revision as of 08:19, 12 March 2020