Code Duplication    Length = 8-8 lines in 2 locations

Ajax/common/traits/JqueryActionsTrait.php 1 location

@@ 41-48 (lines=8) @@
38
	 * @param boolean $immediatly defers the execution if set to false
39
	 * @return string
40
	 */
41
	public function after($element='this', $value='', $immediatly=false){
42
		$element=Javascript::prep_element($element);
43
		$value=Javascript::prep_value($value);
44
		$str="$({$element}).after({$value});";
45
		if ($immediatly)
46
			$this->jquery_code_for_compile[]=$str;
47
			return $str;
48
	}
49
50
	/**
51
	 * Execute a jQuery animate action

Ajax/Jquery.php 1 location

@@ 155-162 (lines=8) @@
152
	 * @param boolean $immediatly delayed if false
153
	 * @return string
154
	 */
155
	public function _genericCallElement($jQueryCall,$to='this', $element, $immediatly=false) {
156
		$to=Javascript::prep_element($to);
157
		$element=Javascript::prep_element($element);
158
		$str="$({$to}).{$jQueryCall}({$element});";
159
		if ($immediatly)
160
			$this->jquery_code_for_compile[]=$str;
161
			return $str;
162
	}
163
164
	/**
165
	 * Creates a jQuery sortable