mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
Fixed upload and edit buttons for profile and banner images
This commit is contained in:
parent
833ab7ca4c
commit
26e5d94c6a
@ -93,38 +93,6 @@ $(function() {
|
||||
})
|
||||
|
||||
|
||||
// show buttons at image rollover
|
||||
$('#profilefileupload').mouseover(function() {
|
||||
$('#profile-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// show buttons also at buttons rollover (better: prevent the mouseleave event)
|
||||
$('#profile-image-upload-buttons').mouseover(function() {
|
||||
$('#profile-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// hide buttons at image mouse leave
|
||||
$('#profilefileupload').mouseleave(function() {
|
||||
$('#profile-image-upload-buttons').hide();
|
||||
})
|
||||
|
||||
|
||||
// show buttons at image rollover
|
||||
$('#bannerfileupload, .img-profile-data').mouseover(function() {
|
||||
$('#banner-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// show buttons also at buttons rollover (better: prevent the mouseleave event)
|
||||
$('#banner-image-upload-buttons').mouseover(function() {
|
||||
$('#banner-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// hide buttons at image mouse leave
|
||||
$('#bannerfileupload, .img-profile-data').mouseleave(function() {
|
||||
$('#banner-image-upload-buttons').hide();
|
||||
})
|
||||
|
||||
|
||||
/**
|
||||
* Handle upload errors for profile and banner images
|
||||
*/
|
||||
@ -144,4 +112,35 @@ $(document).ready(function() {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// show buttons at image rollover
|
||||
$('#profilefileupload').mouseover(function() {
|
||||
$('#profile-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// show buttons also at buttons rollover (better: prevent the mouseleave event)
|
||||
$('#profile-image-upload-buttons').mouseover(function() {
|
||||
$('#profile-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// hide buttons at image mouse leave
|
||||
$('#profilefileupload').mouseleave(function() {
|
||||
$('#profile-image-upload-buttons').hide();
|
||||
})
|
||||
|
||||
|
||||
// show buttons at image rollover
|
||||
$('#bannerfileupload, .img-profile-data').mouseover(function() {
|
||||
$('#banner-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// show buttons also at buttons rollover (better: prevent the mouseleave event)
|
||||
$('#banner-image-upload-buttons').mouseover(function() {
|
||||
$('#banner-image-upload-buttons').show();
|
||||
})
|
||||
|
||||
// hide buttons at image mouse leave
|
||||
$('#bannerfileupload, .img-profile-data').mouseleave(function() {
|
||||
$('#banner-image-upload-buttons').hide();
|
||||
})
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user