Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit 0c8ca48

Browse files
committed
Bug fixed
Some minor bugs identified and fixed
1 parent 977d1c9 commit 0c8ca48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NotyWidget.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use Yii;
1717
use yii\base\Widget;
18+
use yii\web\View;
1819
use yii\helpers\Html;
1920
use yii\helpers\Json;
2021

@@ -101,7 +102,7 @@ public function run()
101102
$type = $this->verifyType($type);
102103
$icon = $this->getIcon($type);
103104
$text = is_array($message) ? $icon . implode(' ', $message) : $icon . $message;
104-
$script .= "var {$type} = Noty({$this->getId()});\r\n";
105+
$script .= "var {$type} = Noty('{$this->getId()}');\r\n";
105106
$script .= "$.noty.setText({$type}.options.id, '{$text}');\r\n";
106107
$script .= "$.noty.setType({$type}.options.id, '{$type}');\r\n";
107108
}

0 commit comments

Comments
 (0)