public function jQueryDocumentReady() { parent::jQueryDocumentReady(); if (!empty($this->inline)) { echo 'jQuery("#', $this->attributes["id"], ' .pfbc-checkbox:last").css("margin-right", "0");'; } else { echo 'jQuery("#', $this->attributes["id"], ' .pfbc-checkbox:last").css({ "padding-bottom": "0", "border-bottom": "none" });'; } if (!empty($this->maxheight) && is_numeric($this->maxheight)) { echo <<<JS var checkboxes = jQuery("#{$this->attributes["id"]} .pfbc-checkboxes"); if(checkboxes.outerHeight() > {$this->maxheight}) { checkboxes.css({ "height": "{$this->maxheight}px", "overflow": "auto", "overflow-x": "hidden" }); } JS; } }