diff --git a/CHANGELOG.md b/CHANGELOG.md index 81d8cbd..961a601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # CHANGELOG +* 6.7 [15 December 2017] + - `fix` Show noty only after POST ajax AND GET pjax calls + * 6.6 [18 October 2017] - `enh` Add german translation diff --git a/composer.json b/composer.json index 69f57a5..d04a4f3 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "loveorigami/yii2-notification-wrapper", "description": "This module for renders a message from session flash (with ajax, pjax support and etc.)", - "version": "6.6", + "version": "6.7", "type": "yii2-extension", "keywords": [ "yii2", "module", "notification", "flash", diff --git a/src/Wrapper.php b/src/Wrapper.php index 3cd019e..0e81f9b 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -168,7 +168,7 @@ protected function registerJs() showNoty: true // default for all ajax calls }); $(document).ajaxComplete(function (event, xhr, settings) { - if (settings.showNoty && settings.type=='POST') { + if (settings.showNoty && (settings.type=='POST' || settings.container)) { $.ajax({ url: '$this->url', method: 'POST',