forked from leftypol/leftypol
Merge branch '68-embed-field-is-not-reset-after-submitting-post' into 'config'
Resolve "Embed field is not reset after submitting post" Closes #68 See merge request leftypol/leftypol!31
This commit is contained in:
commit
3a44b68c41
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,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,
|
||||
|
@ -123,7 +123,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();
|
||||
} else {
|
||||
alert(_('An unknown error occured when posting!'));
|
||||
$(form).find('input[type="submit"]').val(submit_txt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue