Skip to content

Commit

Permalink
fix: explicitly disable search panes
Browse files Browse the repository at this point in the history
This presumably isn’t necessary – it should be
refactored out.
  • Loading branch information
andylolz committed May 16, 2024
1 parent 9e934c5 commit f8131c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions output/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
}
return '<a href="https://twitter.com/i/birdwatch/t/' + row['tweet_id'] + '" target="_blank">' + luxon.DateTime.fromISO(data).toFormat('d MMM yyyy') + '</a>';
},
searchable: false
searchable: false,
searchPanes: {
show: false
}
},
{
data: 'shown', defaultContent: '', render: function (data, type, row, meta) {
Expand Down Expand Up @@ -75,6 +78,9 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
}
content = row['tweet'] ? row['tweet'] : '';
return '<blockquote class="twitter-tweet">' + content + '<a href="https://twitter.com/_/status/' + data + '"></a></blockquote>';
},
searchPanes: {
show: false
}
},
{
Expand Down Expand Up @@ -115,8 +121,11 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
data: 'tweet',
searchable: true,
visible: false,
defaultContent: ''
}
defaultContent: '',
searchPanes: {
show: false
}
},
],
drawCallback: function (settings) {
twttr.widgets.load();
Expand Down

0 comments on commit f8131c9

Please sign in to comment.