Exemplo n.º 1
0
 /**
  * renderDiv
  *
  * @test
  */
 public function renderScriptJs()
 {
     $htmlGenerated = tx_t3devapi_html::renderScriptJs('test');
     $html = '<script type="text/javascript">test</script>';
     $this->debug($htmlGenerated);
     $this->assertEquals(trim($htmlGenerated), $html);
 }
Exemplo n.º 2
0
 /**
  * get js for calendar
  *
  * @return string
  */
 protected function getAddjs()
 {
     if (!empty($this->addJs)) {
         $content = '$(document).ready(function() {' . "\r\n" . $this->addJs . "\r\n" . '});';
         return tx_t3devapi_html::renderScriptJs($content);
     } else {
         return '';
     }
 }