Sha256: e3f6be9b3291a4ce07c09c025c5b6da0677f20e77b37fbfb0039b20d731fd195

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

// Block errors

$(document).on('turbolinks:load', function() {
  var $blocksWithErrors = $('.form-group.has-error');

  $blocksWithErrors.each(function() {
    var $blockSlot = $(this).closest('.block-slot');

    $blockSlot.addClass('block-slot--has-error');
  });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forest_cms-0.98.1 app/assets/javascripts/forest/admin/partials/block_errors.js