Skip to content

Commit

Permalink
Update to release v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jan 12, 2016
1 parent aeec2bd commit 38f2208
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `yii2-popover-x`
============================

## Version 1.3.3

**Date:** 12-Jan-2016

- (bug #13): Correct `init` and `run` of PopoverX widget.

## Version 1.3.2

**Date:** 12-Jan-2016
Expand Down
28 changes: 22 additions & 6 deletions PopoverX.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
* @package yii2-popover-x
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\popover;
Expand Down Expand Up @@ -151,22 +151,38 @@ class PopoverX extends Widget
/**
* @inheritdoc
*/
public function run()
public function init()
{
$this->renderWidget();
parent::init();
$this->initWidget();
}

/**
* Initializes and renders the widget
* @inheritdoc
*/
public function renderWidget()
public function run()
{
$this->runWidget();
}

/**
* Initializes the widget
*/
public function initWidget()
{
$this->initOptions();
echo $this->renderToggleButton() . "\n";
echo Html::beginTag('div', $this->options) . "\n";
echo Html::tag('div', '', $this->arrowOptions);
echo $this->renderHeader() . "\n";
echo $this->renderBodyBegin() . "\n";
}

/**
* Runs the widget
*/
public function runWidget()
{
echo "\n" . $this->renderBodyEnd();
echo "\n" . $this->renderFooter();
echo "\n" . Html::endTag('div');
Expand Down
2 changes: 1 addition & 1 deletion PopoverXAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
* @package yii2-popover-x
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\popover;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An extended popover widget for Yii Framework 2 based on the [bootstrap-popover-x
is an extended popover JQuery plugin which combines both the popover and bootstrap modal features and includes various new styling enhancements. This widget
can be setup just like the builtin `yii\bootstrap\Modal`, with some additional enhancements.

> NOTE: The latest version of the plugin v1.3.2 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-popover-x/blob/master/CHANGE.md) for details.
> NOTE: The latest version of the plugin v1.3.3 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-popover-x/blob/master/CHANGE.md) for details.
## Features

Expand Down

0 comments on commit 38f2208

Please sign in to comment.