Update 0BDFDB.plugin.js
This commit is contained in:
parent
6b9cc15a80
commit
0ff2580b64
|
@ -3115,7 +3115,7 @@ module.exports = (_ => {
|
||||||
BDFDB.ChannelUtils.rerenderAll = function (instant) {
|
BDFDB.ChannelUtils.rerenderAll = function (instant) {
|
||||||
BDFDB.TimeUtils.clear(BDFDB.ChannelUtils.rerenderAll.timeout);
|
BDFDB.TimeUtils.clear(BDFDB.ChannelUtils.rerenderAll.timeout);
|
||||||
BDFDB.ChannelUtils.rerenderAll.timeout = BDFDB.TimeUtils.timeout(_ => {
|
BDFDB.ChannelUtils.rerenderAll.timeout = BDFDB.TimeUtils.timeout(_ => {
|
||||||
let ChannelsIns = BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.guildchannels), {name: "Channels", unlimited: true});
|
let ChannelsIns = BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.guildchannels), {name: "ChannelsList", unlimited: true});
|
||||||
let ChannelsPrototype = BDFDB.ObjectUtils.get(ChannelsIns, `${BDFDB.ReactUtils.instanceKey}.type.prototype`);
|
let ChannelsPrototype = BDFDB.ObjectUtils.get(ChannelsIns, `${BDFDB.ReactUtils.instanceKey}.type.prototype`);
|
||||||
if (ChannelsIns && ChannelsPrototype) {
|
if (ChannelsIns && ChannelsPrototype) {
|
||||||
BDFDB.PatchUtils.patch({name: "BDFDB ChannelUtils"}, ChannelsPrototype, "render", {after: e => {
|
BDFDB.PatchUtils.patch({name: "BDFDB ChannelUtils"}, ChannelsPrototype, "render", {after: e => {
|
||||||
|
@ -6525,7 +6525,7 @@ module.exports = (_ => {
|
||||||
currentPage: this.state.offset + 1,
|
currentPage: this.state.offset + 1,
|
||||||
pageSize: this.props.amount,
|
pageSize: this.props.amount,
|
||||||
maxVisiblePages: this.props.maxVisiblePages,
|
maxVisiblePages: this.props.maxVisiblePages,
|
||||||
onPageChange: page => this.handleJump(isNaN(parseInt(page)) ? -1 : page - 1)
|
onPageChange: page => {this.handleJump(isNaN(parseInt(page)) ? -1 : page - 1);}
|
||||||
}),
|
}),
|
||||||
this.props.jump && BDFDB.ReactUtils.createElement(Internal.LibraryComponents.TextInput, {
|
this.props.jump && BDFDB.ReactUtils.createElement(Internal.LibraryComponents.TextInput, {
|
||||||
type: "number",
|
type: "number",
|
||||||
|
|
Loading…
Reference in New Issue