-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.js
26 lines (25 loc) · 792 Bytes
/
events.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
window.onload = function () {
var loginform = document.getElementById('formitself');
var formsubmit = document.getElementById('formsubmit');
//formsubmit.addEventListener('click', loginForm.submit());
/*
formitself.onsubmit = function () {
window.location.reload();
location.href = 'index.php';
return false;
}
*/
var quipform = document.getElementById('quipform');
var submitquip = document.getElementById('submitquip');
/*
if ( submitquip ) {
submitquip.addEventListener('click', quipform.submit());
}
*/
if (quipform) {
quipform.onsubmit = function () {
var userid = document.getElementById('useridhidden').innerHTML;
postquip(userid);
}
}
}