@@ 136-146 (lines=11) @@ | ||
133 | * |
|
134 | * @return $this |
|
135 | */ |
|
136 | public function imgAreaSelect() |
|
137 | { |
|
138 | $this->jquery(); |
|
139 | ||
140 | $this->Html->script('libs/img-area-select.min.js', $this->_setOptions([ |
|
141 | 'alias' => __FUNCTION__, |
|
142 | 'weight' => self::WEIGHT_LIB |
|
143 | ])); |
|
144 | ||
145 | return $this; |
|
146 | } |
|
147 | ||
148 | /** |
|
149 | * Include jquery lib. |
|
@@ 153-161 (lines=9) @@ | ||
150 | * |
|
151 | * @return $this |
|
152 | */ |
|
153 | public function jquery() |
|
154 | { |
|
155 | $this->Html->script('libs/jquery.min.js', $this->_setOptions([ |
|
156 | 'alias' => __FUNCTION__, |
|
157 | 'weight' => self::WEIGHT_CORE |
|
158 | ])); |
|
159 | ||
160 | return $this; |
|
161 | } |
|
162 | ||
163 | /** |
|
164 | * Include jquery factory. |
|
@@ 238-248 (lines=11) @@ | ||
235 | * |
|
236 | * @return $this |
|
237 | */ |
|
238 | public function slugify() |
|
239 | { |
|
240 | $this->jquery(); |
|
241 | ||
242 | $this->Html->script('libs/slugify.min.js', $this->_setOptions([ |
|
243 | 'alias' => __FUNCTION__, |
|
244 | 'weight' => self::WEIGHT_LIB |
|
245 | ])); |
|
246 | ||
247 | return $this; |
|
248 | } |
|
249 | ||
250 | /** |
|
251 | * Include sweet alert. |
|
@@ 277-287 (lines=11) @@ | ||
274 | * |
|
275 | * @return $this |
|
276 | */ |
|
277 | public function tableCheckAll() |
|
278 | { |
|
279 | $this->jquery(); |
|
280 | ||
281 | $this->Html->script(['libs/jquery-check-all.min.js'], $this->_setOptions([ |
|
282 | 'alias' => __FUNCTION__, |
|
283 | 'weight' => self::WEIGHT_LIB |
|
284 | ])); |
|
285 | ||
286 | return $this; |
|
287 | } |
|
288 | ||
289 | /** |
|
290 | * Include toggle field js widget. |