From 34bff6fec4c7cc6bd0d3296c859248c45b6eecbc Mon Sep 17 00:00:00 2001 From: Zacharie Date: Tue, 1 Sep 2020 13:52:12 +0200 Subject: [PATCH] Change buttons behaviour on add photo page (change buttonLike to buttonGradient and vice versa) --- admin/themes/clear/theme.css | 8 ++++---- admin/themes/default/template/photos_add_direct.tpl | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/themes/clear/theme.css b/admin/themes/clear/theme.css index ecf07a680..923b15040 100644 --- a/admin/themes/clear/theme.css +++ b/admin/themes/clear/theme.css @@ -300,10 +300,10 @@ UL.thumbnails li.rank-of-image {background-color: #ddd;} font-size:14px; } -.buttonLike:disabled, input[type="submit"]:disabled, input[type="button"]:disabled, input[type="reset"]:disabled { - background-color: #ECECEC; - color: #D5D5D5; - cursor:not-allowed; +.buttonLike:disabled, .buttonGradient:disabled, input[type="submit"]:disabled, input[type="button"]:disabled, input[type="reset"]:disabled { + background: #ECECEC !important; + color: #D5D5D5 !important; + cursor: not-allowed; } #formCreateAlbum input[name="virtual_name"] {border: 1px solid #D5D5D5; transition: all 125ms ease-out;} diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 490ee3094..0af861bd9 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -134,6 +134,7 @@ jQuery(document).ready(function(){ QueueChanged : function(up) { jQuery('#addFiles').addClass("addFilesButtonChanged"); jQuery('#startUpload').prop('disabled', up.files.length == 0); + jQuery("#addFiles").removeClass('buttonGradient').addClass('buttonLike'); if (up.files.length > 0) { jQuery('.plupload_filelist_footer').show(); @@ -341,7 +342,7 @@ jQuery(document).ready(function(){ - +