Change buttons behaviour on add photo page (change buttonLike to buttonGradient and vice versa)

This commit is contained in:
Zacharie
2020-09-01 13:52:12 +02:00
parent 5841e2d34c
commit 34bff6fec4
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -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;}
@@ -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(){
</div>
</div>
<button id="startUpload" class="buttonLike icon-upload" disabled>{'Start Upload'|translate}</button>
<button id="startUpload" class="buttonGradient icon-upload" disabled>{'Start Upload'|translate}</button>
</form>