nodebb-plugin-composer-default 10.0.33 → 10.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.0.33",
3
+ "version": "10.0.35",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -13,7 +13,6 @@ define('composer/resize', ['taskbar'], function (taskbar) {
13
13
  var $headerMenu = $('[component="navbar"]');
14
14
  const content = document.getElementById('content');
15
15
 
16
- var body = document.body;
17
16
  var header = $headerMenu[0];
18
17
 
19
18
  function getSavedRatio() {
@@ -576,14 +576,13 @@ define('composer', [
576
576
  }
577
577
 
578
578
  function handleHelp(postContainer) {
579
- var helpBtn = postContainer.find('[data-action="help"]');
580
- socket.emit('plugins.composer.renderHelp', function (err, html) {
581
- if (!err && html && html.length > 0) {
582
- helpBtn.on('click', function () {
583
- bootbox.dialog({
584
- size: 'large',
585
- message: html,
586
- });
579
+ const helpBtn = postContainer.find('[data-action="help"]');
580
+ helpBtn.on('click', async function () {
581
+ const html = await socket.emit('plugins.composer.renderHelp');
582
+ if (html && html.length > 0) {
583
+ bootbox.dialog({
584
+ size: 'large',
585
+ message: html,
587
586
  });
588
587
  }
589
588
  });
@@ -799,7 +798,7 @@ define('composer', [
799
798
  }
800
799
 
801
800
  function onHide() {
802
- $('body').css({ paddingBottom: 0 });
801
+ $('#content').css({ paddingBottom: 0 });
803
802
  $('html').removeClass('composing');
804
803
  app.toggleNavbar(true);
805
804
  }