mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-17 12:15:47 +02:00
Fix Follow dialog closing when clicking any but the first Follow button
This commit is contained in:
parent
3187f97592
commit
7c9b4382ca
@ -1240,15 +1240,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("uiShowFollowFromOptions", function(){
|
$(document).on("uiShowFollowFromOptions", function(){
|
||||||
let event = $._data($(".js-component", ".js-modal-inner")[0], "events").click[0];
|
$(".js-component", ".js-modal-inner").each(function(){
|
||||||
let handler = event.handler;
|
let event = $._data(this, "events").click[0];
|
||||||
let context = handler.context;
|
let handler = event.handler;
|
||||||
|
let context = handler.context;
|
||||||
event.handler = function(){
|
|
||||||
overrideState();
|
event.handler = function(){
|
||||||
handler.apply(this, arguments);
|
overrideState();
|
||||||
restoreState(context, "stopSubsequentFollows");
|
handler.apply(this, arguments);
|
||||||
};
|
restoreState(context, "stopSubsequentFollows");
|
||||||
|
};
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user