mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 19:14:14 +00:00
more accurate postExpandFunction() click binding
This commit is contained in:
parent
7614201d85
commit
8bb4216ac8
@ -1981,9 +1981,9 @@ function initInterfaceCommon() {
|
||||
$('.post-propagate').on('click', reTwistPopup);
|
||||
$('.userMenu-config').clickoutside(closeThis.bind($('.config-menu')));
|
||||
$('.userMenu-config-dropdown').on('click', dropDownMenu);
|
||||
$('.module.post').on('click', function(e) {
|
||||
if (e.button === 0 && window.getSelection() == 0)
|
||||
postExpandFunction(e,$(this));
|
||||
$('#post-template.module.post').on('click', function(event) {
|
||||
if (event.button === 0 && window.getSelection() == 0)
|
||||
postExpandFunction(event, $(this));
|
||||
});
|
||||
$('.post-area-new')
|
||||
.on('click', function(e) {composeNewPost(e, $(this));})
|
||||
|
Loading…
x
Reference in New Issue
Block a user