Property changes on: .
___________________________________________________________________
Added: svn:ignore
+ .idea
|
|
|
|
| 306 | 306 | }); |
| 307 | 307 | }); |
| 308 | 308 | |
| | 309 | // toggle "all" checkboxes when checking a checkbox in a table list |
| | 310 | $('tbody .check-column :checkbox').click( function() { |
| | 311 | |
| | 312 | var $current_checkbox = $(this); |
| | 313 | var $current_table = $current_checkbox.closest('table'); |
| | 314 | var $check_all_checkboxes = $current_table.find('thead .check-column :checkbox, tfoot .check-column :checkbox'); |
| | 315 | var $all_child_checkboxes = $current_table.find('tbody .check-column :checkbox'); |
| | 316 | |
| | 317 | $check_all_checkboxes.prop('checked', function() { |
| | 318 | |
| | 319 | if ( !$current_checkbox.prop('checked') || $all_child_checkboxes.not(':checked').length > 0 ) { |
| | 320 | return false; |
| | 321 | } else { |
| | 322 | return true; |
| | 323 | } |
| | 324 | |
| | 325 | }); |
| | 326 | |
| | 327 | }); |
| | 328 | |
| 309 | 329 | $('#default-password-nag-no').click( function() { |
| 310 | 330 | setUserSetting('default_password_nag', 'hide'); |
| 311 | 331 | $('div.default-password-nag').hide(); |