1 | <?php |
||
15 | class CollapseAll extends Simple |
||
16 | { |
||
17 | protected $name ='collapseall'; |
||
18 | |||
19 | protected $title = 'Свернуть все'; |
||
20 | |||
21 | protected $attributes = [ |
||
22 | 'class' => 'btn btn-default', |
||
23 | 'id' => 'collapse-all' |
||
24 | ]; |
||
25 | |||
26 | protected $url = '#'; |
||
27 | |||
28 | protected $js = |
||
|
|||
29 | '$("a#collapse-all").on("click", function () { |
||
30 | NNX.jqGrid.collapseAll($("#grid-%gridName%")); |
||
31 | return false; |
||
32 | });'; |
||
33 | } |
||
34 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.