mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #751 from cobbspur/hover
Added hover state for blog-logo and blog-cover using existing ids
This commit is contained in:
commit
5128e1ce62
2 changed files with 8 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><strong>Blog Logo</strong></label>
|
<label><strong>Blog Logo</strong></label>
|
||||||
{{#if logo}}
|
{{#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}}
|
{{else}}
|
||||||
<a class="button-add js-modal-logo" href="#">Upload Image</a>
|
<a class="button-add js-modal-logo" href="#">Upload Image</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><strong>Blog Cover</strong></label>
|
<label><strong>Blog Cover</strong></label>
|
||||||
{{#if cover}}
|
{{#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}}
|
{{else}}
|
||||||
<a class="button-add js-modal-cover" href="#">Upload Image</a>
|
<a class="button-add js-modal-cover" href="#">Upload Image</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -197,11 +197,13 @@
|
||||||
this.model.set({availableThemes: themes});
|
this.model.set({availableThemes: themes});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showLogo: function () {
|
showLogo: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
var settings = this.model.toJSON();
|
var settings = this.model.toJSON();
|
||||||
this.showUpload('#logo', 'logo', settings.logo);
|
this.showUpload('#logo', 'logo', settings.logo);
|
||||||
},
|
},
|
||||||
showCover: function () {
|
showCover: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
var settings = this.model.toJSON();
|
var settings = this.model.toJSON();
|
||||||
this.showUpload('#cover', 'cover', settings.icon);
|
this.showUpload('#cover', 'cover', settings.icon);
|
||||||
},
|
},
|
||||||
|
@ -251,7 +253,8 @@
|
||||||
'click .js-modal-cover': 'showCover',
|
'click .js-modal-cover': 'showCover',
|
||||||
'click .js-modal-image': 'showImage'
|
'click .js-modal-image': 'showImage'
|
||||||
},
|
},
|
||||||
showCover: function () {
|
showCover: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
var user = this.model.toJSON();
|
var user = this.model.toJSON();
|
||||||
this.showUpload('#user-cover', 'cover', user.cover);
|
this.showUpload('#user-cover', 'cover', user.cover);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue