mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
make sure header buttons have type="button" to avoid form submit
This commit is contained in:
+2
-2
@@ -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>'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user