Sha256: 54eeda53dd9d9e7da86545244cf1e7f77757b9a3e4a5258713957b098adcf64e

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

loadCurrentTableTabOnce = ($el)->
  $el.load($el.find('a.loading').attr('href'))

Adhoq.toggleCurrentTables = (action, elements)->
  loadCurrentTableTabOnce($('#current-tables'))

  $main   = $(elements.main)
  $tables = $(elements.tables)

  if action is 'show'
    $main.addClass('col-md-6').removeClass('col-md-12')
    $tables.addClass('col-md-6').show()
  else
    $main.addClass('col-md-12').removeClass('col-md-6')
    $tables.addClass('col-md-6').hide()

  true

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adhoq-0.5.0 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.5.0.beta1 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.4.0 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.3.0 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.2.0 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.1.2 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.1.1 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.1.0 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.0.7 app/assets/javascripts/adhoq/current_tables.js.coffee
adhoq-0.0.6 app/assets/javascripts/adhoq/current_tables.js.coffee