| @@ 134-142 (lines=9) @@ | ||
| 131 | * |
|
| 132 | * @return $this |
|
| 133 | */ |
|
| 134 | public function jquery() |
|
| 135 | { |
|
| 136 | $this->Html->script('libs/jquery.min.js', $this->_setOptions([ |
|
| 137 | 'weight' => self::WEIGHT_CORE, |
|
| 138 | 'alias' => __FUNCTION__, |
|
| 139 | ])); |
|
| 140 | ||
| 141 | return $this; |
|
| 142 | } |
|
| 143 | ||
| 144 | /** |
|
| 145 | * Include jquery factory. |
|
| @@ 216-226 (lines=11) @@ | ||
| 213 | * |
|
| 214 | * @return $this |
|
| 215 | */ |
|
| 216 | public function slugify() |
|
| 217 | { |
|
| 218 | $this->jquery(); |
|
| 219 | ||
| 220 | $this->Html->script('libs/slugify.min.js', $this->_setOptions([ |
|
| 221 | 'weight' => self::WEIGHT_LIB, |
|
| 222 | 'alias' => __FUNCTION__, |
|
| 223 | ])); |
|
| 224 | ||
| 225 | return $this; |
|
| 226 | } |
|
| 227 | ||
| 228 | /** |
|
| 229 | * Include sweet alert. |
|
| @@ 255-265 (lines=11) @@ | ||
| 252 | * |
|
| 253 | * @return $this |
|
| 254 | */ |
|
| 255 | public function tableCheckAll() |
|
| 256 | { |
|
| 257 | $this->jquery(); |
|
| 258 | ||
| 259 | $this->Html->script(['libs/jquery-check-all.min.js'], $this->_setOptions([ |
|
| 260 | 'weight' => self::WEIGHT_LIB, |
|
| 261 | 'alias' => __FUNCTION__, |
|
| 262 | ])); |
|
| 263 | ||
| 264 | return $this; |
|
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * Include toggle field js widget. |
|