Ajax/common/traits/JsUtilsActionsTrait.php
protected function _showHideWithEffect($action,$element='this', $speed='', $callback='', $immediatly=false) {
		$element=Javascript::prep_element($element);
		$speed=$this->_validate_speed($speed);
		if ($callback!='') {
			$callback=", function(){\n{$callback}\n}";
		}
		$str="$({$element}).{$action}({$speed}{$callback});";
		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
protected function _showHideWithEffect($action,$element='this', $speed='', $callback='', $immediatly=false) {
		$element=Javascript::prep_element($element);
		$speed=$this->_validate_speed($speed);
		if ($callback!='') {
			$callback=", function(){\n{$callback}\n}";
		}
		$str="$({$element}).{$action}({$speed}{$callback});";
		if ($immediatly)
			$this->jquery_code_for_compile[]=$str;
			return $str;
	}
protected function _showHideWithEffect ( $ action , $ element = 'this' , $ speed = '' , $ callback = '' , $ immediatly = false ) { $ element = Javascript :: prep_element ( $ element ) ; $ speed = $ this -> _validate_speed ( $ speed ) ; if ( $ callback != '' ) { $ callback = ", function(){\n{$callback}\n}" ; } $ str = "$({$element}).{$action}({$speed}{$callback});" ; if ( $ immediatly ) $ this -> jquery_code_for_compile [ ] = $ str ; return $ str ; }
show or hide with effect

@param string $action
@param string $element element
@param string $speed One of 'slow', 'normal', 'fast', or time in milliseconds
@param string $callback Javascript callback function
@param boolean $immediatly defers the execution if set to false
@return string
show or hide with effect