kopia lustrzana https://github.com/wagtail/wagtail
Do not use trigger since this.form is a DOM Element and not a jQuery element
rodzic
9fbb99217a
commit
dbc83738d8
|
@ -12,7 +12,7 @@
|
|||
|
||||
$(function() {
|
||||
$('#collection_chooser_collection_id').on('change', function() {
|
||||
this.form.trigger('submit');
|
||||
this.form.submit();
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
$(function() {
|
||||
$('#collection_chooser_collection_id').on('change', function() {
|
||||
this.form.trigger('submit');
|
||||
this.form.submit();
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
|
Ładowanie…
Reference in New Issue