Make "new message" open the compose window.

(imported from commit d63f4915f884dfa2bc11653d17782e5ee4c6191e)
This commit is contained in:
Luke Faraone 2012-09-11 10:54:25 -04:00
parent de0255d651
commit 1da8c16367
3 changed files with 1 additions and 25 deletions

View File

@ -62,7 +62,7 @@ var people_list = {{ people }};
<li><a href="">Search</a></li>
<li><a href="#">Invite a friend</a></li>
<br>
<a href="#" class="btn btn-large btn-block">New Message</a>
<a href="#" class="btn btn-large btn-block button-slide">New Message</a>
</ul>
</div><!--/.well -->
</div><!--/span-->
@ -151,7 +151,6 @@ var people_list = {{ people }};
</div><!--/row-->
<a href="#" class="button-slide">Compose</a>
<div class="row-fluid" id="connection-error">
<div class="span12">

View File

@ -56,7 +56,6 @@ $(function () {
.text('Sending')
.stop(true).fadeTo(0,1);
$('.zephyr_compose').slideToggle('fast');
$(".button-slide").show();
buttons.attr('disabled', 'disabled');
buttons.blur();
@ -207,7 +206,6 @@ function process_hotkey(code) {
case 82: // 'r': respond to zephyr
$('.zephyr_compose').slideToggle('fast');
$(".button-slide").hide();
parent = get_selected_zephyr_row();
zephyr_class = parent.find("span.zephyr_class").text();
zephyr_huddle = parent.find("span.zephyr_huddle_recipient").text();
@ -273,7 +271,6 @@ function process_key_in_input(code) {
// User hit Escape key
$('input, textarea, button').blur();
$('.zephyr_compose').slideToggle('fast');
$(".button-slide").show();
return process_hotkey;
}
return false;

View File

@ -100,26 +100,6 @@ div.zephyr_compose {
background: white;
width: 52.8%;
}
a.button-slide {
display: block;
width: 420px;
padding: 2px;
margin: 0 auto;
background-color: white;
font-size: 14px;
font-weight: bold;
text-align: center;
text-decoration: none;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.75);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.75);
box-shadow: 0 1px 5px rgba(0,0,0,0.75);
position: absolute;
bottom: 0px;
left: 40%;
}
/* Like .nav-tabs > li > a */
#send-status {