mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Added hover state for blog-logo and blog-cover using existing ids
- blog-logo and blog-cover now have a hover state of cursor: pointer
This commit is contained in:
parent
27a78c82e4
commit
37d0cd420b
@ -22,7 +22,7 @@
|
||||
<div class="form-group">
|
||||
<label><strong>Blog Logo</strong></label>
|
||||
{{#if logo}}
|
||||
<a class="js-modal-logo"><img id="blog-logo" src="{{logo}}" alt="logo"></a>
|
||||
<a class="js-modal-logo" href="#"><img id="blog-logo" src="{{logo}}" alt="logo"></a>
|
||||
{{else}}
|
||||
<a class="button-add js-modal-logo" href="#">Upload Image</a>
|
||||
{{/if}}
|
||||
@ -32,7 +32,7 @@
|
||||
<div class="form-group">
|
||||
<label><strong>Blog Cover</strong></label>
|
||||
{{#if cover}}
|
||||
<a class="js-modal-cover"><img id="blog-cover" src="{{cover}}" alt="cover photo"></a>
|
||||
<a class="js-modal-cover" href="#"><img id="blog-cover" src="{{cover}}" alt="cover photo"></a>
|
||||
{{else}}
|
||||
<a class="button-add js-modal-cover" href="#">Upload Image</a>
|
||||
{{/if}}
|
||||
|
@ -197,11 +197,13 @@
|
||||
this.model.set({availableThemes: themes});
|
||||
}
|
||||
},
|
||||
showLogo: function () {
|
||||
showLogo: function (e) {
|
||||
e.preventDefault();
|
||||
var settings = this.model.toJSON();
|
||||
this.showUpload('#logo', 'logo', settings.logo);
|
||||
},
|
||||
showCover: function () {
|
||||
showCover: function (e) {
|
||||
e.preventDefault();
|
||||
var settings = this.model.toJSON();
|
||||
this.showUpload('#cover', 'cover', settings.icon);
|
||||
},
|
||||
@ -251,7 +253,8 @@
|
||||
'click .js-modal-cover': 'showCover',
|
||||
'click .js-modal-image': 'showImage'
|
||||
},
|
||||
showCover: function () {
|
||||
showCover: function (e) {
|
||||
e.preventDefault();
|
||||
var user = this.model.toJSON();
|
||||
this.showUpload('#user-cover', 'cover', user.cover);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user