Sha256: cebf22839a10e63438c2e054d6c4b69533619f8bb342e9123cf6995c1d63b3ab

Contents?: true

Size: 342 Bytes

Versions: 15

Compression:

Stored size: 342 Bytes

Contents

import CheckboxSubmit from 'blacklight/checkbox_submit'

const BookmarkToggle = (e) => {
  if (e.target.matches('[data-checkboxsubmit-target="checkbox"]')) {
    const form = e.target.closest('form')
    if (form) new CheckboxSubmit(form).clicked(e);
  }
};

document.addEventListener('click', BookmarkToggle);

export default BookmarkToggle

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.6.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.5.1 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.5.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.4.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/javascript/blacklight/bookmark_toggle.js
blacklight-8.3.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.2.2 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.2.1 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.1.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.0.1 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.0.0 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.0.0.beta8 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.0.0.beta7 app/javascript/blacklight/bookmark_toggle.js
blacklight-8.0.0.beta6 app/javascript/blacklight/bookmark_toggle.js