Page MenuHomeIn-Portal Phabricator

D286.id702.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 6:44 AM

D286.id702.diff

Index: core/admin_templates/js/grid_filters.js
===================================================================
--- core/admin_templates/js/grid_filters.js
+++ core/admin_templates/js/grid_filters.js
@@ -88,7 +88,7 @@
MultiOptions.SelectAll($cur_index);
}
)
- .prop('checked', $options.length == $options.filter(':selected').length > 0);
+ .prop('checked', $options.length == $options.filter(':selected').length);
$('input._mutlioptions_cb_' + $cur_index).click(
function ($e) {
@@ -137,7 +137,7 @@
var $select_all = $('#_mutlioptions_cb_' + selector_index + '_all');
var $options = $("input[type='checkbox']", '#' + jq(MultiOptions.Selectors[selector_index]) + '_div').not($select_all);
- $select_all.prop('checked', $options.length == $options.filter(':checked').length > 0);
+ $select_all.prop('checked', $options.length == $options.filter(':checked').length);
}
MultiOptions.SelectAll = function(selector_index) {

Event Timeline