Skip to content

Commit fe895ab

Browse files
committed
Fixed custom SortableGridView id bug
Changed the id in the registerWidget function. Now you can set a custom id in the options of SortableGridView widget as you can do with the standard GridView.
1 parent b19341e commit fe895ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SortableGridView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function run()
3636
protected function registerWidget()
3737
{
3838
$view = $this->getView();
39-
$view->registerJs("jQuery('#{$this->id}').SortableGridView('{$this->sortableAction}');");
39+
$view->registerJs("jQuery('#{$this->options['id']}').SortableGridView('{$this->sortableAction}');");
4040
SortableGridAsset::register($view);
4141
}
4242
}

0 commit comments

Comments
 (0)