projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c94f7cc
)
Mobile File: enable_file_upload toggle kann jetzt auch materialize
author
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 26 Mar 2021 18:21:57 +0000
(19:21 +0100)
committer
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000
(15:51 +0200)
js/kivi.File.js
patch
|
blob
|
history
diff --git
a/js/kivi.File.js
b/js/kivi.File.js
index
eeca325
..
bdd7acd
100644
(file)
--- 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() {