summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-05-05 22:56:12 -0700
committerAaron Parecki <aaron@parecki.com>2016-05-05 22:56:12 -0700
commit1743621c4896b65cd9bd81a07341b48a7619bcf8 (patch)
tree0559fcdd9242868cfd32fb31bb47a7f5be403f53 /views
parent3cd68c5331b7808a970c67119cdf9a7389b92cdb (diff)
get rid of duplicate ctrl-s handlers
Diffstat (limited to 'views')
-rw-r--r--views/new-bookmark.php7
-rw-r--r--views/new-favorite.php7
-rw-r--r--views/new-post.php7
-rw-r--r--views/new-repost.php7
4 files changed, 0 insertions, 28 deletions
diff --git a/views/new-bookmark.php b/views/new-bookmark.php
index 4797bb3..ca2fd18 100644
--- a/views/new-bookmark.php
+++ b/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 = [];
diff --git a/views/new-favorite.php b/views/new-favorite.php
index 14af8e2..5ec4498 100644
--- a/views/new-favorite.php
+++ b/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 = [];
diff --git a/views/new-post.php b/views/new-post.php
index 6ae4a17..7c4d3cf 100644
--- a/views/new-post.php
+++ b/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
diff --git a/views/new-repost.php b/views/new-repost.php
index 1f8fcfc..a60b8ea 100644
--- a/views/new-repost.php
+++ b/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", {