Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
maxwell 2011-01-07 16:15:25 -08:00
commit 3641470399
2 changed files with 1 additions and 15 deletions

View file

@ -24,6 +24,7 @@ var Stream = {
$stream.delegate("textarea.comment_box", "keydown", function(e){
if (e.keyCode === 13) {
if(!e.shiftKey) {
$(this).blur();
$(this).closest("form").submit();
}
}

View file

@ -33,10 +33,6 @@ var View = {
$(this.gettingStarted.selector)
.live("click", this.gettingStarted.click);
/* Submitting the status message form when the user hits enter */
$(this.publisher.selector)
.keydown(this.publisher.keydown);
/* User menu */
$(this.userMenu.selector)
.click(this.userMenu.click);
@ -126,17 +122,6 @@ var View = {
selector: ".new_request"
},
publisher: {
keydown: function(e) {
if(e.keyCode === 13) {
if(!e.shiftKey) {
$(this).closest("form").submit();
}
}
},
selector: "#publisher textarea"
},
search: {
blur: function() {
$(this).removeClass("active");