From: Sven Schöling Date: Fri, 26 Mar 2021 18:21:57 +0000 (+0100) Subject: Mobile File: enable_file_upload toggle kann jetzt auch materialize X-Git-Tag: kivitendo-mebil_0.1-0~9^2~90 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0959c4afa29a4bab16f405e016f06d18fb4ecb23;p=kivitendo-erp.git Mobile File: enable_file_upload toggle kann jetzt auch materialize --- 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() {