Browse Source

more accurate postExpandFunction() click binding

readme-update
Simon Grim 9 years ago
parent
commit
8bb4216ac8
  1. 6
      js/interface_common.js

6
js/interface_common.js

@ -1981,9 +1981,9 @@ function initInterfaceCommon() {
$('.post-propagate').on('click', reTwistPopup); $('.post-propagate').on('click', reTwistPopup);
$('.userMenu-config').clickoutside(closeThis.bind($('.config-menu'))); $('.userMenu-config').clickoutside(closeThis.bind($('.config-menu')));
$('.userMenu-config-dropdown').on('click', dropDownMenu); $('.userMenu-config-dropdown').on('click', dropDownMenu);
$('.module.post').on('click', function(e) { $('#post-template.module.post').on('click', function(event) {
if (e.button === 0 && window.getSelection() == 0) if (event.button === 0 && window.getSelection() == 0)
postExpandFunction(e,$(this)); postExpandFunction(event, $(this));
}); });
$('.post-area-new') $('.post-area-new')
.on('click', function(e) {composeNewPost(e, $(this));}) .on('click', function(e) {composeNewPost(e, $(this));})

Loading…
Cancel
Save