From e4bc01ecd31c01c5b906c16ce89502955a6d0401 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Wed, 23 Mar 2016 23:56:36 +0500 Subject: [PATCH] rename openConversationClick() to handleClickOpenConversation() --- js/interface_common.js | 6 +++--- js/tmobile.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/interface_common.js b/js/interface_common.js index 975da7d..c99a6c3 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -795,7 +795,7 @@ function handleClickOpenProfileModal(event) { routeOnClick(event); } -function openConversationClick(event) { +function handleClickOpenConversation(event) { event.preventDefault(); event.stopPropagation(); @@ -2264,7 +2264,7 @@ function initInterfaceCommon() { $('.post-submit').on('click', postSubmit); $('.modal-propagate').on('click', retweetSubmit); $('.expanded-content .show-more').on('mouseup', - {feeder: '.module.post.original.open .module.post.original .post-data'}, openConversationClick) + {feeder: '.module.post.original.open .module.post.original .post-data'}, handleClickOpenConversation) .on('click', muteEvent) // to prevent post collapsing ; if ($.Options.unicodeConversion.val === 'disable') @@ -2485,7 +2485,7 @@ $(document).ready(function () { .append(twister.tmpl.shortenUri.clone(true)) ; twister.tmpl.postRtReference = extractTemplate('#template-post-rt-reference') - .on('mouseup', {feeder: '.post-rt-reference'}, openConversationClick) + .on('mouseup', {feeder: '.post-rt-reference'}, handleClickOpenConversation) .on('click', muteEvent) // to prevent post expanding or collapsing ; twister.tmpl.postRtBy = extractTemplate('#template-post-rt-by'); diff --git a/js/tmobile.js b/js/tmobile.js index 887df41..517b9d6 100644 --- a/js/tmobile.js +++ b/js/tmobile.js @@ -495,7 +495,7 @@ function handleAvatarFileSelectMobile(evt) { } } -function openConversationClick(event) { +function handleClickOpenConversation(event) { event.stopPropagation(); event.preventDefault();