Browse Source

get rid of duplicate ctrl-s handlers

pull/52/head
Aaron Parecki 9 years ago
parent
commit
1743621c48
  1. 7
      views/new-bookmark.php
  2. 7
      views/new-favorite.php
  3. 7
      views/new-post.php
  4. 7
      views/new-repost.php

7
views/new-bookmark.php

@ -62,13 +62,6 @@
<script>
$(function(){
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
var syndications = [];

7
views/new-favorite.php

@ -37,13 +37,6 @@ $(function(){
$(".footer, #bookmarklet").hide();
}
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
var syndications = [];

7
views/new-post.php

@ -189,13 +189,6 @@ $(function(){
$("#note_in_reply_to").change();
}
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
// Collect all the syndication buttons that are pressed

7
views/new-repost.php

@ -26,13 +26,6 @@
<script>
$(function(){
// ctrl-s to save
$(window).on('keydown', function(e){
if(e.keyCode == 83 && e.ctrlKey){
$("#btn_post").click();
}
});
$("#btn_post").click(function(){
$.post("/repost", {

Loading…
Cancel
Save