@@ 687-694 (lines=8) @@ | ||
684 | * @param boolean $immediatly delayed if false |
|
685 | * @return string |
|
686 | */ |
|
687 | public function _toggle($element='this', $immediatly=false) { |
|
688 | $element=$this->_prep_element($element); |
|
689 | $str="$({$element}).toggle();"; |
|
690 | ||
691 | if ($immediatly) |
|
692 | $this->jquery_code_for_compile[]=$str; |
|
693 | return $str; |
|
694 | } |
|
695 | ||
696 | // -------------------------------------------------------------------- |
|
697 | ||
@@ 704-711 (lines=8) @@ | ||
701 | * @param string $event |
|
702 | * @param boolean $immediatly delayed if false |
|
703 | */ |
|
704 | public function _trigger($element='this', $event='click', $immediatly=false) { |
|
705 | $element=$this->_prep_element($element); |
|
706 | $str="$({$element}).trigger(\"$event\");"; |
|
707 | ||
708 | if ($immediatly) |
|
709 | $this->jquery_code_for_compile[]=$str; |
|
710 | return $str; |
|
711 | } |
|
712 | ||
713 | // -------------------------------------------------------------------- |
|
714 |