mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-25 17:34:06 +02:00
parent
44ccaa0d26
commit
5557f79fe7
@ -371,7 +371,7 @@
|
|||||||
$TD.clickUploadImage(Math.floor(buttonPos.left),Math.floor(buttonPos.top));
|
$TD.clickUploadImage(Math.floor(buttonPos.left),Math.floor(buttonPos.top));
|
||||||
};
|
};
|
||||||
|
|
||||||
$(".js-app").delegate(".js-compose-text","paste",function(){
|
$(".js-app").delegate(".js-compose-text,.js-reply-tweetbox","paste",function(){
|
||||||
lastPasteElement = $(this);
|
lastPasteElement = $(this);
|
||||||
$TD.tryPasteImage();
|
$TD.tryPasteImage();
|
||||||
});
|
});
|
||||||
@ -381,7 +381,7 @@
|
|||||||
var parent = lastPasteElement.parent();
|
var parent = lastPasteElement.parent();
|
||||||
|
|
||||||
if (parent.siblings(".js-add-image-button").length === 0){
|
if (parent.siblings(".js-add-image-button").length === 0){
|
||||||
var pop = parent.closest(".js-inline-reply").find(".js-inline-compose-pop");
|
var pop = parent.closest(".js-inline-reply,.rpl").find(".js-inline-compose-pop,.js-reply-popout");
|
||||||
|
|
||||||
if (pop.length === 0){
|
if (pop.length === 0){
|
||||||
lastPasteElement = null;
|
lastPasteElement = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user