make sure header buttons have type="button" to avoid form submit

This commit is contained in:
Adam Shaw
2014-08-22 20:28:26 -07:00
parent 54cab0af6f
commit ebedd9de61
+2 -2
View File
@@ -107,8 +107,8 @@ function Header(calendar, options) {
tm + '-state-default'
];
button = $(
'<button class="' + classes.join(' ') + '">' +
button = $( // type="button" so that it doesn't submit a form
'<button type="button" class="' + classes.join(' ') + '">' +
innerHtml +
'</button>'
)