diff --git a/core/modules/views/views_ui/js/views-admin.js b/core/modules/views/views_ui/js/views-admin.js
index 4b60f82..1195b78 100644
--- a/core/modules/views/views_ui/js/views-admin.js
+++ b/core/modules/views/views_ui/js/views-admin.js
@@ -862,15 +862,22 @@ Drupal.behaviors.viewsFilterConfigSelectAll.attach = function(context) {
     var checked = $(this).is(':checked');
     // Update all checkbox beside the select all checkbox.
     $(this).parents('.form-checkboxes').find('input[type=checkbox]').each(function() {
-      $(this).attr('checked', checked);
+      $(this).prop('checked', checked);
     });
   });
-  // Uncheck the select all checkbox if any of the others are unchecked.
+  //Checked or Unchecked the select all checkbox if all of the others are Checked or Unchecked .
   $('#views-ui-config-item-form div.form-type-checkbox').not($('.form-item-options-value-all')).find('input[type=checkbox]').each(function() {
     $(this).click(function() {
       if ($(this).is('checked') === false) {
         $('#edit-options-value-all').prop('checked', false);
       }
+      //Calculate count of checkboxes.
+      var checkboxes = $('.form-type-checkboxes:visible').find('input[type=checkbox]').size();
+      //Calculate count of checked checkboxes.
+      var checked = $('.form-type-checkboxes:visible').find("input[type=checkbox]:checked").size();
+      if (checked == checkboxes - 1 ) {
+        $('#edit-options-value-all').prop('checked', true);
+      }
     });
   });
 };
