Sha256: 1d73a5bfeb4f31a86cc6f1565251d5f0651c7537472b04c6ffac848588775534

Contents?: true

Size: 559 Bytes

Versions: 75

Compression:

Stored size: 559 Bytes

Contents

$(document).ready(() => {

  if ($(".email-templates--form").length || $(".email-contexts--form").length) {
    $(".tab-labels > a").click(function() {

      $(this).parent().find("a").each((idx, item) => {
        $(item).removeClass('active')
      })
      $( this ).addClass('active')

      $(this).parent().parent().find(".tabs > div").each((idx, item) => {
        $(item).css('display', 'none')
      })
      $(this).parent().parent().find( $(this).data('ref') ).css('display', 'block')
    })
  }

  logg('loaded wco_email/contexts.js')
}) // END

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
wco_email-0.1.1.86 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.85 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.84 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.83 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.82 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.81 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.80 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.79 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.78 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.77 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.76 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.75 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.72 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.71 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.70 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.69 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.68 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.67 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.66 app/assets/javascript/wco_email/contexts.js
wco_email-0.1.1.65 app/assets/javascript/wco_email/contexts.js