1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-10 08:34:06 +02:00

Close modal dialogs with the back mouse button

Closes 
This commit is contained in:
chylex 2016-06-26 21:59:10 +02:00
parent d955713335
commit 7bdbfe937c

View File

@ -423,9 +423,14 @@
//
window.TDGF_onMouseClickExtra = function(button){
if (button === 1){ // back button
var modal = $("#open-modal");
if (highlightedColumnEle && highlightedColumnEle.closest(".js-column").is(".is-shifted-1")){
highlightedColumnEle.find(".js-column-back").first().click();
}
else if (modal.is(":visible")){
modal.find("a[rel=dismiss]").click();
}
else{
$(".js-column-back").click();
}