mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-21 15:15:48 +02:00
Update reply-account plugin to fix a search column issue due to a TweetDeck update
This commit is contained in:
parent
4c59526e39
commit
4de31453fd
Resources/Plugins/reply-account
@ -8,7 +8,7 @@ Custom reply account
|
||||
chylex
|
||||
|
||||
[version]
|
||||
1.2
|
||||
1.2.1
|
||||
|
||||
[website]
|
||||
https://tweetduck.chylex.com
|
||||
|
@ -22,10 +22,19 @@ enabled(){
|
||||
var section = data.element.closest("section.column");
|
||||
|
||||
var column = TD.controller.columnManager.get(section.attr("data-column"));
|
||||
var header = $("h1.column-title", section);
|
||||
var header = $(".column-title", section);
|
||||
var title = header.children(".column-head-title");
|
||||
|
||||
var columnTitle = header.children(".column-head-title").text();
|
||||
var columnAccount = header.children(".attribution").text();
|
||||
var columnTitle, columnAccount;
|
||||
|
||||
if (title.length){
|
||||
columnTitle = title.text();
|
||||
columnAccount = header.children(".attribution").text();
|
||||
}
|
||||
else{
|
||||
columnTitle = header.children(".column-title-edit-box").val();
|
||||
columnAccount = "";
|
||||
}
|
||||
|
||||
try{
|
||||
query = configuration.customSelector(column.getColumnType(), columnTitle, columnAccount, column);
|
||||
@ -134,4 +143,4 @@ disabled(){
|
||||
$(document).off("uiInlineComposeTweet", this.uiComposeTweetEvent);
|
||||
$(document).off("uiDockedComposeTweet", this.uiComposeTweetEvent);
|
||||
$(document).off("click", ".js-account-list .js-account-item", this.onSelectedAccountChanged);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user