Skip to content

Commit e422ed1

Browse files
committed
add feedback for submitting form
1 parent 3db911e commit e422ed1

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/popup/popup.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ document.addEventListener('DOMContentLoaded', () => {
66
ev.preventDefault();
77
const policyFileUrl = new FormData(policyFileForm).get('policyFile')
88
loadPolicy(policyFileUrl)
9+
.then(e => {
10+
var animateIn = document.getElementById("notification");
11+
animateIn.className = "show";
12+
setTimeout(function(){
13+
animateIn.className = animateIn.className.replace("show", "");
14+
}, 3000);
15+
e.preventDefault();
16+
})
917
})
1018
})
11-
12-
// $("#policyFileForm").submit(function(e) {
13-
// var animateIn = document.getElementById("notification");
14-
// animateIn.className = "show";
15-
// setTimeout(function(){
16-
// animateIn.className = animateIn.className.replace("show", "");
17-
// }, 3000);
18-
// e.preventDefault();
19-
// });

0 commit comments

Comments
 (0)