diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-10-08 08:59:01 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-10-08 08:59:01 +0900 |
commit | c608af4babe140626877be08535af095ff633c00 (patch) | |
tree | ff43842ba3fc408b98f6717b6422c0698e76d843 /sphinx/themes/basic/static/websupport.js | |
parent | 34709d3080111dc2da0ad68f04960a87fe167fa2 (diff) | |
download | sphinx-git-c608af4babe140626877be08535af095ff633c00.tar.gz |
Update jQuery from 1.8.3 to 1.11.1. This change includes two migrations for jQuery. Closes #1438.
Diffstat (limited to 'sphinx/themes/basic/static/websupport.js')
-rw-r--r-- | sphinx/themes/basic/static/websupport.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sphinx/themes/basic/static/websupport.js b/sphinx/themes/basic/static/websupport.js index 9932afb99..79ed10e28 100644 --- a/sphinx/themes/basic/static/websupport.js +++ b/sphinx/themes/basic/static/websupport.js @@ -50,51 +50,51 @@ } function initEvents() { - $('a.comment-close').live("click", function(event) { + $(document).on("click", 'a.comment-close', function(event) { event.preventDefault(); hide($(this).attr('id').substring(2)); }); - $('a.vote').live("click", function(event) { + $(document).on("click", 'a.vote', function(event) { event.preventDefault(); handleVote($(this)); }); - $('a.reply').live("click", function(event) { + $(document).on("click", 'a.reply', function(event) { event.preventDefault(); openReply($(this).attr('id').substring(2)); }); - $('a.close-reply').live("click", function(event) { + $(document).on("click", 'a.close-reply', function(event) { event.preventDefault(); closeReply($(this).attr('id').substring(2)); }); - $('a.sort-option').live("click", function(event) { + $(document).on("click", 'a.sort-option', function(event) { event.preventDefault(); handleReSort($(this)); }); - $('a.show-proposal').live("click", function(event) { + $(document).on("click", 'a.show-proposal', function(event) { event.preventDefault(); showProposal($(this).attr('id').substring(2)); }); - $('a.hide-proposal').live("click", function(event) { + $(document).on("click", 'a.hide-proposal', function(event) { event.preventDefault(); hideProposal($(this).attr('id').substring(2)); }); - $('a.show-propose-change').live("click", function(event) { + $(document).on("click", 'a.show-propose-change', function(event) { event.preventDefault(); showProposeChange($(this).attr('id').substring(2)); }); - $('a.hide-propose-change').live("click", function(event) { + $(document).on("click", 'a.hide-propose-change', function(event) { event.preventDefault(); hideProposeChange($(this).attr('id').substring(2)); }); - $('a.accept-comment').live("click", function(event) { + $(document).on("click", 'a.accept-comment', function(event) { event.preventDefault(); acceptComment($(this).attr('id').substring(2)); }); - $('a.delete-comment').live("click", function(event) { + $(document).on("click", 'a.delete-comment', function(event) { event.preventDefault(); deleteComment($(this).attr('id').substring(2)); }); - $('a.comment-markup').live("click", function(event) { + $(document).on("click", 'a.comment-markup', function(event) { event.preventDefault(); toggleCommentMarkupBox($(this).attr('id').substring(2)); }); |