Sha256: 29d580868373b2a330d3a96fb854073e9cf7baac35eb76c3bfc0afc76b47a7c7

Contents?: true

Size: 1.7 KB

Versions: 10

Compression:

Stored size: 1.7 KB

Contents

I"Â(function() {
  $(document).on('ready page:load turbolinks:load', function() {
    $('.batch_actions_selector li a').click(function(e) {
      var message;
      e.stopPropagation();
      e.preventDefault();
      if (message = $(this).data('confirm')) {
        return ActiveAdmin.modal_dialog(message, $(this).data('inputs'), (function(_this) {
          return function(inputs) {
            return $(_this).trigger('confirm:complete', inputs);
          };
        })(this));
      } else {
        return $(this).trigger('confirm:complete');
      }
    });
    $('.batch_actions_selector li a').on('confirm:complete', function(e, inputs) {
      var val;
      if (val = JSON.stringify(inputs)) {
        $('#batch_action_inputs').val(val);
      } else {
        $('#batch_action_inputs').attr('disabled', 'disabled');
      }
      $('#batch_action').val($(this).data('action'));
      return $('#collection_selection').submit();
    });
    if ($(".batch_actions_selector").length && $(":checkbox.toggle_all").length) {
      if ($(".paginated_collection table.index_table").length) {
        $(".paginated_collection table.index_table").tableCheckboxToggler();
      } else {
        $(".paginated_collection").checkboxToggler();
      }
      return $(document).on('change', '.paginated_collection :checkbox', function() {
        if ($(".paginated_collection :checkbox:checked").length) {
          return $(".batch_actions_selector").each(function() {
            return $(this).aaDropdownMenu("enable");
          });
        } else {
          return $(".batch_actions_selector").each(function() {
            return $(this).aaDropdownMenu("disable");
          });
        }
      });
    }
  });

}).call(this);
:ET

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activeadmin_latlng-1.5.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tk/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.4.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tk/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.3.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tk/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.2.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/tk/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-1.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-0.3.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-0.3.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache
activeadmin_latlng-0.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/tK/TkuywzLEeJ7wJTPX6W9_vubdTD5AslrT5XboZ1Zc4aM.cache