@@ 246-253 (lines=8) @@ | ||
243 | * @param boolean $immediatly delayed if false |
|
244 | * @return string |
|
245 | */ |
|
246 | public function _toggle($element='this', $immediatly=false) { |
|
247 | $element=$this->_prep_element($element); |
|
248 | $str="$({$element}).toggle();"; |
|
249 | ||
250 | if ($immediatly) |
|
251 | $this->jquery_code_for_compile[]=$str; |
|
252 | return $str; |
|
253 | } |
|
254 | ||
255 | // -------------------------------------------------------------------- |
|
256 | ||
@@ 263-270 (lines=8) @@ | ||
260 | * @param string $event |
|
261 | * @param boolean $immediatly delayed if false |
|
262 | */ |
|
263 | public function _trigger($element='this', $event='click', $immediatly=false) { |
|
264 | $element=$this->_prep_element($element); |
|
265 | $str="$({$element}).trigger(\"$event\");"; |
|
266 | ||
267 | if ($immediatly) |
|
268 | $this->jquery_code_for_compile[]=$str; |
|
269 | return $str; |
|
270 | } |
|
271 | ||
272 | // -------------------------------------------------------------------- |
|
273 |