Sha256: c7a41f30d2019f0813b42ec01b713c2cbbf8023a99bd34995b850a91922df2a8

Contents?: true

Size: 274 Bytes

Versions: 140

Compression:

Stored size: 274 Bytes

Contents

Spotlight.onLoad(function(){


  function delete_lock(el) {
    $.ajax({ url: $(el).data('lock'), type: 'POST', data: { _method: "delete" }, async: false});
    $(el).removeAttr('data-lock');
  }

  $('[data-lock]').on('click', function(e) {
    delete_lock(this);
  });
});

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
blacklight-spotlight-3.5.0.4 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.5.0.3 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.5.0.2 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.5.0.1 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.5.0 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.4.1 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.4 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.3 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.2.2 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.2.1 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.2 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.1 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.4.0 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.3.0 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.2.0 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.1.0 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.0.3 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.0.2 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.0.1 app/assets/javascripts/spotlight/admin/locks.js
blacklight-spotlight-3.0.0 app/assets/javascripts/spotlight/admin/locks.js