From 0959c4afa29a4bab16f405e016f06d18fb4ecb23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 26 Mar 2021 19:21:57 +0100 Subject: [PATCH] Mobile File: enable_file_upload toggle kann jetzt auch materialize --- js/kivi.File.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/kivi.File.js b/js/kivi.File.js index eeca3258c..bdd7acd36 100644 --- a/js/kivi.File.js +++ b/js/kivi.File.js @@ -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() { -- 2.20.1