Sha256: 3fca8c807f235bc64619c3d8678610c848c5e72a812bc8981f42863368f7e370

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

$(function(){
  $(":checkbox").each(function(i,item){
    ignore_checked(item);
  })
})

function ignore_checked(item){
  var active_tab = $(item).closest('.tab-pane');
  var list_items = active_tab.find('.ms-container li');

  if ($(item).is(':checked')) {
       list_items.addClass('disabled');
    } else {
       list_items.removeClass('disabled');
       active_tab.find('.ms-container li.disabled_item').addClass('disabled');
    }

}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/assets/javascripts/taxonomy.js
foreman_discovery-1.0.0.rc4 test/foreman_app/app/assets/javascripts/taxonomy.js
foreman_discovery-1.0.0.rc3 test/foreman_app/app/assets/javascripts/taxonomy.js
foreman_discovery-1.0.0.rc2 test/foreman_app/app/assets/javascripts/taxonomy.js
foreman_discovery-1.0.0.rc1 test/foreman_app/app/assets/javascripts/taxonomy.js