Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 5180:f95650727b1c
got the indent wrong in the last change for templating.py
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 28 Jan 2017 21:15:49 -0500 |
| parents | e8b3d3a14563 |
| children | 496f30da72f8 dc657fbbc790 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Sat Jan 28 20:58:19 2017 -0500 +++ b/roundup/cgi/templating.py Sat Jan 28 21:15:49 2017 -0500 @@ -3083,9 +3083,9 @@ for week in calendar.monthcalendar(display.year, display.month): res.append(' <tr>') for day in week: - link = "javascript:form[field].value = '%d-%02d-%02d'; " \ - "if ('createEvent' in document) { var evt = document.createEvent('HTMLEvents'); evt.initEvent('change', true, true); form[field].dispatchEvent(evt); } else { form[field].fireEvent('onchange'); }" \ - "window.close ();"%(display.year, display.month, day) + link = "javascript:form[field].value = '%d-%02d-%02d'; " \ + "if ('createEvent' in document) { var evt = document.createEvent('HTMLEvents'); evt.initEvent('change', true, true); form[field].dispatchEvent(evt); } else { form[field].fireEvent('onchange'); }" \ + "window.close ();"%(display.year, display.month, day) if (day == curr_date.day and display.month == curr_date.month and display.year == curr_date.year): # highlight
