Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2024-02-06 18:25:19 +00:00
commit f0139c5e41

View file

@ -131,14 +131,15 @@
$(":submit").attr("disabled", "disabled"); $(":submit").attr("disabled", "disabled");
$("[name='status_id']").on('select2:select', function (e) { //The line below needs to be here because in mobile view the status_id select2 forgets its select2 so this makes it function properly.
if (e.params.data.id != ""){ $("[name='status_id']").select2();
console.log(e.params.data.id); $("[name='status_id']").on('select2:select', function (e) {
$(":submit").removeAttr("disabled"); if (e.params.data.id != "") {
} console.log(e.params.data.id);
else { $(":submit").removeAttr("disabled");
$(":submit").attr("disabled", "disabled"); } else {
} $(":submit").attr("disabled", "disabled");
}); }
});
</script> </script>
@stop @stop