mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Refactoring
This commit is contained in:
@@ -54,10 +54,7 @@ class Sortable extends Widget
|
|||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$options = $this->options;
|
echo Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div') . "\n";
|
||||||
$tag = isset($options['tag']) ? $options['tag'] : 'div';
|
|
||||||
unset($options['tag']);
|
|
||||||
echo Html::endTag($tag) . "\n";
|
|
||||||
$this->registerWidget('sortable', false);
|
$this->registerWidget('sortable', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user