Sha256: 492deb847459db15c76ff26eafd80b37f7cfe47de993046c3df6d68fdf8f2237

Contents?: true

Size: 447 Bytes

Versions: 61

Compression:

Stored size: 447 Bytes

Contents

/* eslint-disable camelcase */
import { StreamActions } from '@hotwired/turbo'

// TODO: move these to the avo_filters gem

StreamActions.close_filters_dropdown = function () {
  document.querySelector('.filters-dropdown-selector').classList.add('hidden')
}

StreamActions.open_filter = function () {
  const id = this.getAttribute('unique-id')
  setTimeout(() => {
    document.querySelector(`[data-filter-id="${id}"] .pill`).click()
  }, 150)
}

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
avo-3.2.3 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta23 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta20 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta21 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta17 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta22 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta18 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta19 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta24 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta15 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta16 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta14 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta12 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta13 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta10 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta11 app/javascript/js/custom-stream-actions.js
avo-3.0.0.pre19 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta8 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta9 app/javascript/js/custom-stream-actions.js
avo-3.0.1.beta6 app/javascript/js/custom-stream-actions.js