| @@ 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. |
|
| @@ 237-247 (lines=11) @@ | ||
| 234 | * |
|
| 235 | * @return $this |
|
| 236 | */ |
|
| 237 | public function slugify() |
|
| 238 | { |
|
| 239 | $this->jquery(); |
|
| 240 | ||
| 241 | $this->Html->script('libs/slugify.min.js', $this->_setOptions([ |
|
| 242 | 'alias' => __FUNCTION__, |
|
| 243 | 'weight' => self::WEIGHT_LIB |
|
| 244 | ])); |
|
| 245 | ||
| 246 | return $this; |
|
| 247 | } |
|
| 248 | ||
| 249 | /** |
|
| 250 | * Include sweet alert. |
|
| @@ 276-286 (lines=11) @@ | ||
| 273 | * |
|
| 274 | * @return $this |
|
| 275 | */ |
|
| 276 | public function tableCheckAll() |
|
| 277 | { |
|
| 278 | $this->jquery(); |
|
| 279 | ||
| 280 | $this->Html->script(['libs/jquery-check-all.min.js'], $this->_setOptions([ |
|
| 281 | 'alias' => __FUNCTION__, |
|
| 282 | 'weight' => self::WEIGHT_LIB |
|
| 283 | ])); |
|
| 284 | ||
| 285 | return $this; |
|
| 286 | } |
|
| 287 | ||
| 288 | /** |
|
| 289 | * Include toggle field js widget. |
|