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