Sha256: 26fbf17b8584f97e003b9bc8ebddcaccc581f64d371bad96f6dbbed8e6710733

Contents?: true

Size: 601 Bytes

Versions: 86

Compression:

Stored size: 601 Bytes

Contents

register_dom_update('dl.tabs > dt, dl.rbbt_tabs > dt.next, dl.rbbt_menu > .next, dl.rbbt_vertical_menu > .next, dl.rbbt_accordion > .next', function(title){
  title.click(function(){
    var option = $(this)
    var content = option.next()
    var menu = option.parent('dl')

    var showed = content.hasClass('show')

    option.siblings().removeClass('show')

    if (showed) { 
      content.removeClass('show');
      option.removeClass('show');
      menu.removeClass('show')
    } else { 
      content.addClass('show');
      option.addClass('show');
      menu.addClass('show')
    }
  })
})

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
rbbt-rest-1.4.10 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.9 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.8 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.7 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.6 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.5 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.4 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.3 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.2 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.1 share/views/public/js/rbbt/menu.js
rbbt-rest-1.4.0 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.32 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.31 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.30 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.29 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.28 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.27 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.26 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.25 share/views/public/js/rbbt/menu.js
rbbt-rest-1.3.24 share/views/public/js/rbbt/menu.js