Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
some newsletter front-end fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski committed Jun 28, 2013
1 parent b5d24f7 commit 2e0448e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion hearth/media/css/site.styl
Expand Up @@ -263,7 +263,6 @@ body {
height: 75px;
margin-top: 15px;
width: 30px;
right: 0;
}
}

Expand Down Expand Up @@ -485,6 +484,10 @@ body {
display: block;
}

.newsletter {
display: none;
}

@media $retina {
#footzilla {
background-image: url(../img/logos/footzilla-2x.png);
Expand Down
4 changes: 2 additions & 2 deletions hearth/media/js/newsletter.js
Expand Up @@ -13,8 +13,8 @@ define('newsletter',
// Init newsletter signup checking system.
function init() {
// Toggle the conditions below if you want to test on Desktop.
if (!user.logged_in()) return;
//if (!user.logged_in() || !caps.firefoxOS || langs.indexOf(navigator.language) == -1) return;
//if (!user.logged_in()) return;
if (!user.logged_in() || langs.indexOf(navigator.language) == -1) return;

var counter = +storage.getItem('newscounter');
if (counter == 4) return;
Expand Down
2 changes: 1 addition & 1 deletion hearth/templates/user/newsletter.html
Expand Up @@ -5,7 +5,7 @@ <h3>{{ _('Get Firefox Marketplace news') }}</h3>
</header>
<form class="news-signup-form">
<p>
<input type="email" id="email" name="email" value="{{ email }}">
<input type="email" id="email" name="email" value="{{ email }}" required>
<button class="button" type="submit">{{ _('Sign up') }}</button>
</p>
<p><a href="{{ url('privacy') }}">{{ _('Privacy Policy') }}</a></p>
Expand Down

0 comments on commit 2e0448e

Please sign in to comment.