Example #1
0
    /**
     * Registers the needed JavaScript.
     */
    public function registerClientScript()
    {
        $deleteCallback = <<<JSSS
FileUpload2.init('#{$this->attrId}');
JSSS;
        $this->getView()->registerJs($deleteCallback);
        Asset::register($this->getView());
    }
Example #2
0
 /**
  * Registers the needed JavaScript.
  */
 public function registerClientScript()
 {
     $this->getView()->registerJs("FileUpload2.init('#{$this->attrId}');");
     Asset::register($this->getView());
 }