Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Add feature to reset syllabus-number form #2

Merged
merged 2 commits into from Sep 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/js/openOkadaiSyllabus.js
Expand Up @@ -20,6 +20,7 @@ function openOkadaiSyllabus(num1){
var url = make_url(classno, num1);
console.log(url);
window.open(url);
document.classno-form.reset()
return false;
}

Expand Down Expand Up @@ -67,4 +68,4 @@ function make_url(classno, lang_mode){
url += lang;

return url;
}
}
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -68,7 +68,7 @@ <h4 id="errmsg"></h4>
<hr>
<div class="row centered">
<div class="col-lg-6 col-lg-offset-3">
<form class="form-inline" role="form" onsubmit="return openOkadaiSyllabus(1)">
<form class="form-inline" name="classno-form" role="form" onsubmit="return openOkadaiSyllabus(1)">
<!--
<form class="form-inline" role="form" onsubmit="return openOkadaiSyllabus(2)">
-->
Expand Down