Commit 310812bf by Kim Peace

Merge branch 'fix/#43010_image_upload_on_chat_room' into 'develop'

#43010 Fixed to reset form value after it submitted

See merge request !160
parents 8a3fd7c2 859c4987
...@@ -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