Mobile File: enable_file_upload toggle kann jetzt auch materialize
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 26 Mar 2021 18:21:57 +0000 (19:21 +0100)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
js/kivi.File.js

index eeca325..bdd7acd 100644 (file)
@@ -99,7 +99,9 @@ namespace('kivi.File', function(ns) {
   }
 
   ns.allow_upload_submit = function() {
-      $('#upload_selected_button').prop('disabled',$('#upload_files').val() === '');
+      const disable = $('#upload_files').val() === '';
+      $('#upload_selected_button').prop('disabled', disable)
+                                  .toggleClass('disabled', disable);
   }
 
   ns.upload_status_dialog = function() {