| 513 | $('#add_bg_button').on('change', onBackgroundUploadSelected); | 523 | $('#add_bg_button').on('change', onBackgroundUploadSelected); |
| 514 | $('#bg-filter').on('input', onBackgroundFilterInput); | 524 | $('#bg-filter').on('input', onBackgroundFilterInput); |
| 515 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'lockbg', | 525 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'lockbg', |
| 516 | callback: onLockBackgroundClick, | 526 | callback: () => onLockBackgroundClick(new CustomEvent('click')), |
| 517 | aliases: ['bglock'], | 527 | aliases: ['bglock'], |
| 518 | helpString: 'Locks a background for the currently selected chat', | 528 | helpString: 'Locks a background for the currently selected chat', |
| 519 | })); | 529 | })); |
| 520 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'unlockbg', | 530 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'unlockbg', |
| 521 | callback: onUnlockBackgroundClick, | 531 | callback: () => onUnlockBackgroundClick(new CustomEvent('click')), |
| 522 | aliases: ['bgunlock'], | 532 | aliases: ['bgunlock'], |
| 523 | helpString: 'Unlocks a background for the currently selected chat', | 533 | helpString: 'Unlocks a background for the currently selected chat', |
| 524 | })); | 534 | })); |