Merge pull request #899 from Zankaria/ajax-reset-embed

ajax.js: reset the embed field on submit
This commit is contained in:
Lorenzo Yario 2025-02-14 13:25:09 -06:00 committed by GitHub
commit 2d1c261cd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ $(window).ready(function() {
$(form).find('input[type="submit"]').val(submit_txt);
$(form).find('input[type="submit"]').removeAttr('disabled');
$(form).find('input[name="subject"],input[name="file_url"],\
textarea[name="body"],input[type="file"]').val('').change();
textarea[name="body"],input[type="file"],input[name="embed"]').val('').change();
},
cache: false,
contentType: false,