Skip to content

Commit 098f42f

Browse files
Merge pull request hoodiehq#187 from hoodiehq/better-messages-in-slack-signup
Added better messages to the slack signup, better hover styles
2 parents bc5e61e + 7d6ac29 commit 098f42f

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

chat/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ <h2>Send and receive the same messages on IRC and Slack.</h2>
4444
<p>
4545
<form id="slack-integration">
4646
<input id="mail-for-slack" type="email" placeholder="[email protected]" autofocus="true" required />
47-
<br />
4847
<input type="submit" id="submit-slack" value="Get your Invite" />
48+
<div class="message"></div>
4949
</form>
5050
</p>
5151

@@ -78,11 +78,11 @@ <h2>These are the guidelines:</h2>
7878
data: JSON.stringify({ email: email.val() })
7979
})
8080
.fail(function (res) {
81-
alert((res.responseJSON && res.responseJSON.msg) || 'Server error.')
81+
$('#slack-integration .message').text((res.responseJSON && res.responseJSON.msg) || 'Sorry, there was a server error.');
8282
})
8383
.done(function (data) {
8484
email.val('')
85-
alert('WOOT. Check your email!')
85+
$('#slack-integration .message').text('Woot! Check your email!');
8686
})
8787
.always(function () {
8888
btn.prop('disabled', false)

dist/prod/hoodie.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)