From 9cc848dfbaaa5a96ea593434cc6e27f92f0844f1 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Thu, 22 Aug 2019 12:29:38 +0200 Subject: [PATCH] - Fix #3626: SimpleStream reloads unexpected --- protected/humhub/docs/CHANGELOG.md | 2 +- .../stream/resources/js/humhub.stream.SimpleStream.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index fc5fd6548d..b231107936 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -13,7 +13,7 @@ HumHub Change Log - Fix #3588: OEmbed CSS class not provided - Fix #3609: LDAP paging control limits max. users - Fix #3618: Some LDAP CLI commands requires a authClientId parameter -- Fix #3625: If user is following a space of which he is also a member, it shows up twice under "my spaces" +- Fix #3626: SimpleStream reloads unexpected 1.3.14 (June 26, 2019) diff --git a/protected/humhub/modules/stream/resources/js/humhub.stream.SimpleStream.js b/protected/humhub/modules/stream/resources/js/humhub.stream.SimpleStream.js index 851d4e221b..838be68276 100644 --- a/protected/humhub/modules/stream/resources/js/humhub.stream.SimpleStream.js +++ b/protected/humhub/modules/stream/resources/js/humhub.stream.SimpleStream.js @@ -29,8 +29,11 @@ humhub.module('stream.SimpleStream', function (module, require, $) { this.setFilter('entry_archived'); }); - SimpleStream.prototype.init = function () { - this.reloadEntry(); + SimpleStream.prototype.onEmptyStream = function () { + var modal = Component.instance(this.$.closest('.modal'));; + if(modal) { + modal.close(); + } }; SimpleStream.prototype.reloadEntry = function (entry) {