Sha256: 81e08818a86b764d5e29dc201582e573af462dc683e7c15feefbfa99747e16f1

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"spotlight/exhibits.js;FI"
pathname;TI"V/Users/cabeer/Projects/sul/spotlight/app/assets/javascripts/spotlight/exhibits.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+;ØFTI"length;Ti
I"digest;TI"%35be08dafdd208ac7f64468170a68e7b;FI"source;TI"
Spotlight.onLoad(function() {
  $("#another-email").on("click", function() {
    var container = $(this).closest('.form-group');
    var contacts = container.find('.contact');
    var input_container = contacts.first().clone();

    // wipe out any values from the inputs
    input_container.find('input').each(function() {
      $(this).val('');
      $(this).attr('id', $(this).attr('id').replace('0', contacts.length));
      $(this).attr('name', $(this).attr('name').replace('0', contacts.length));
    });

    input_container.find('.first-row-only').remove();

    // bootstrap does not render input-groups with only one value in them correctly.
    input_container.find('.input-group input:only-child').closest('.input-group').removeClass('input-group');

    $(input_container).insertAfter(contacts.last());
  });

  $('.btn-with-tooltip').tooltip();

  // Put focus in saved search title input when Save this search modal is shown
  $('#save-modal').on('shown.bs.modal', function () {
      $('#search_title').focus();
  })
});
;TI"dependency_digest;TI"%813f5e2de3d9c879bacaed7dc1926b27;FI"required_paths;T[I"V/Users/cabeer/Projects/sul/spotlight/app/assets/javascripts/spotlight/exhibits.js;FI"dependency_paths;T[{I"	path;TI"V/Users/cabeer/Projects/sul/spotlight/app/assets/javascripts/spotlight/exhibits.js;F@I"2014-10-21T15:03:39-07:00;T@I"%35be08dafdd208ac7f64468170a68e7b;FI"
_version;TI"%069e88c06b889877799890854d7f4c40;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.2.0 spec/internal/tmp/cache/assets/development/sprockets/41dfbffb6b2cdab33da9d85bb2763646