Commit 8c9d92886abd0ffb2e6249fb293c505d3fb5b490

Fix bug where when you're writing an update and you press 'g', scrolling things happen.
  
6565 }
6666}
6767
68function bind_key() {
69 $(window).bind('keypress', function (e) {
70 if (e.which == 103) {
71 scroll_to();
72 }
73 });
74}
75
76function unbind_key() {
77 $(window).unbind('keypress');
78}
79
6880$(document).ready(
6981 function() {
7082 jQuery.fn.fadeToggle = function(speed, easing, callback) {
7183 return this.animate({opacity: 'toggle'}, speed, easing, callback);
7284 }
7385
74 $(window).bind('keypress', function (e) {
75 if (e.which == 103) {
76 scroll_to();
77 }
78 });
86 bind_key();
7987
8088 $('.domw_reply_to').openDOMWindow(
8189 {
130130 update_destination("identica");
131131 update_in_reply_to("");
132132 $(".post").fadeToggle("fast");
133 bind_key();
133134 },
134135 error: function(xhr, textStatus, errorThrown) {
135136 alert("Failure: " + xhr.responseText);
176176 clear_textentry();
177177 if ( $(".post").is(":visible") ) {
178178 $(".post").fadeToggle("fast");
179 bind_key();
179180 } else {
181 unbind_key();
180182 $(".post").fadeToggle("fast")
181183 $("#post_textarea").focus();
182184 }