mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Change buttons behaviour on add photo page (change buttonLike to buttonGradient and vice versa)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user