Sha256: 9df9a70024db878247f6d4fc0f76c9cedd74a09baa3f5b6b90e0b10a192123ed

Contents?: true

Size: 553 Bytes

Versions: 8

Compression:

Stored size: 553 Bytes

Contents

var splitButtons = function(){
  if ($('.quick_actions_toggle').length){
    var link = $('.split_selector > a').attr('href')
    $('.quick_actions_toggle').on('click', function(){
      $('.quick_actions').toggleClass('hidden')
    })

    $('.quick_actions li').on('click', function(){
      $('.split_selector > a').text($(this).text())
      $('.split_selector > ul').toggleClass('hidden')
      $('.split_selector > a').attr('href', link+'?f='+$('.split_selector > a').text().replace(/ /g, "_"))
      $('.split_selector > a').click()
    })
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.34 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.33 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.32 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.31 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.30 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.20 app/assets/javascripts/c/split_buttons.js.erb
cd2_catton_cms-1.1.10 app/assets/javascripts/c/split_buttons.js.erb