public function registerClientScript()
{
UploadAsset::register($this->getView());
$options = Json::encode($this->clientOptions);
if ($this->sortable) {
JuiAsset::register($this->getView());
}
$this->getView()->registerJs("jQuery('#{$this->getId()}').yiiUploadKit({$options});");
}