Sha256: 5ad126407e647e4b2e7ce4511c629dd6582939576fef15e0881a8858458c16ca

Contents?: true

Size: 723 Bytes

Versions: 4

Compression:

Stored size: 723 Bytes

Contents

$(document).ready(function() {
  $('input.section_type[type=radio]').change(function() {
    this.form.submit();
  });

  $('a.reorder').click(function(event) {
    $(this).parent().toggleClass('active');
    var url = this.href.split('/').slice(0, -1).join('/');
    TableTree.toggle($('table.list'), $(this).attr('data-resource_type'), $(this).attr('data-sortable_type'), url);
    event.preventDefault();
    return false;
  })

  $('div.tabs li a').click(function() {
    tabs = $(this).closest('div');
    $('li.active, div.active', tabs).removeClass('active')
    $(this).closest('li').addClass('active');
    selected = '#tab_' + $(this).attr('href').replace('#', '');
    $(selected).addClass('active');
  });

});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adva-core-0.0.6 public/javascripts/adva-core/admin.js
adva-core-0.0.5 public/javascripts/adva-core/admin.js
adva-core-0.0.4 public/javascripts/adva-core/admin.js
adva-core-0.0.2 public/javascripts/adva-core/admin.js