Commit 859c4987 by Kim Peace

Fixed to reset form value after it submitted

parent 8a3fd7c2
...@@ -228,10 +228,14 @@ $('#videoUploadButton').on('click', function() { ...@@ -228,10 +228,14 @@ $('#videoUploadButton').on('click', function() {
$('#imageInputTag').on('change', function() { $('#imageInputTag').on('change', function() {
$('#image-form').submit(); $('#image-form').submit();
// reset the value of form
$('#imageInputTag').val("");
}); });
$('#videoInputTag').on('change', function() { $('#videoInputTag').on('change', function() {
$('#video-form').submit(); $('#video-form').submit();
// reset the value of form
$('#videoInputTag').val("");
}); });
$('#image-form').on('submit', function(e) { $('#image-form').on('submit', function(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment