Browse Source

get rid of duplicate ctrl-s handlers

pull/52/head
Aaron Parecki 8 years ago
parent
commit
1743621c48
4 changed files with 0 additions and 28 deletions
  1. +0
    -7
      views/new-bookmark.php
  2. +0
    -7
      views/new-favorite.php
  3. +0
    -7
      views/new-post.php
  4. +0
    -7
      views/new-repost.php

+ 0
- 7
views/new-bookmark.php View File

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

+ 0
- 7
views/new-favorite.php View File

@ -37,13 +37,6 @@ $(function(){
$(".footer, #bookmarklet").hide(); $(".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(){ $("#btn_post").click(function(){
var syndications = []; var syndications = [];

+ 0
- 7
views/new-post.php View File

@ -189,13 +189,6 @@ $(function(){
$("#note_in_reply_to").change(); $("#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(){ $("#btn_post").click(function(){
// Collect all the syndication buttons that are pressed // Collect all the syndication buttons that are pressed

+ 0
- 7
views/new-repost.php View File

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

Loading…
Cancel
Save