1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Remove hash after the url when clicking Meta Data

Removes that hash appended to the URL when clicking Meta Data in post settings.

Closes #4386

When clicking 'Meta Data' the click event appends a # to the URL. I replaced the a with a button element so that won't happen anymore. The button has a type attribute because it will try and submit the form without it. Added text-align: left to the navlist button because the button centers it's content by default.
This commit is contained in:
Jilles Soeters 2014-11-05 13:38:07 +00:00
parent 43d81b0a7e
commit e2765c8b31
3 changed files with 7 additions and 3 deletions

View file

@ -43,6 +43,10 @@
border-bottom: 1px solid #E0DFD7;
}
button {
text-align: left;
}
a {
color: $darkgrey;
}

View file

@ -29,7 +29,7 @@
}}
<div class="nav-item user-menu" data-href="#">
<div class="nav-item user-menu">
{{#gh-dropdown-button dropdownName="user-menu" tagName="div" classNames="nav-label clearfix"}}
{{#if session.user.image}}
<div class="image"><img {{bind-attr src=session.user.image alt=userImageAlt}} /></div>

View file

@ -42,10 +42,10 @@
<ul class="nav-list nav-list-block">
{{#gh-tab tagName="li" classNames="nav-list-item"}}
<a href="#">
<button type="button">
<b>Meta Data</b>
<span>Extra content for SEO and social media.</span>
</a>
</button>
{{/gh-tab}}
</ul>