Sha256: a2eef392bbcf9fcc98d7c8aafccccbd7acd782ead52eddaf16e05f60ce650396

Contents?: true

Size: 842 Bytes

Versions: 26

Compression:

Stored size: 842 Bytes

Contents

import $ from 'jquery';

import * as classEditor from './src/foreman_class_edit';
import * as hostForm from './src/foreman_puppet_host_form';

window.tfm = Object.assign(window.tfm || {}, {
  classEditor,
  puppetEnc: {
    hostForm,
  },
});

// TODO: the checkForUnavailablePuppetclasses is very nasty
$(document)
  .on('change', '.hostgroup-select', evt => {
    const form = $('form.host-form')[0];
    if (form && form.dataset.id) hostForm.updatePuppetclasses(evt.target);
  })
  .on('change', '.interface_domain', evt => {
    hostForm.reloadPuppetclassParams();
  })
  .on('change', '.host-architecture-os-select', evt => {
    hostForm.reloadPuppetclassParams();
  })
  .on('ContentLoad', evt => {
    hostForm.checkForUnavailablePuppetclasses();
  });
$(window).on('load', evt => {
  hostForm.checkForUnavailablePuppetclasses();
});

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foreman_puppet-3.0.7 webpack/fills_index.js
foreman_puppet-2.0.7 webpack/fills_index.js
foreman_puppet-3.0.6 webpack/fills_index.js
foreman_puppet-2.0.6 webpack/fills_index.js
foreman_puppet-2.0.5 webpack/fills_index.js
foreman_puppet-3.0.5 webpack/fills_index.js
foreman_puppet-3.0.4 webpack/fills_index.js
foreman_puppet-2.0.4 webpack/fills_index.js
foreman_puppet-3.0.3 webpack/fills_index.js
foreman_puppet-3.0.2 webpack/fills_index.js
foreman_puppet-2.0.3 webpack/fills_index.js
foreman_puppet-3.0.1 webpack/fills_index.js
foreman_puppet-2.0.2 webpack/fills_index.js
foreman_puppet-2.0.0 webpack/fills_index.js
foreman_puppet-1.0.5 webpack/fills_index.js
foreman_puppet-1.0.4 webpack/fills_index.js
foreman_puppet-2.0.0.alpha.2 webpack/fills_index.js
foreman_puppet-1.0.3 webpack/fills_index.js
foreman_puppet-1.0.2 webpack/fills_index.js
foreman_puppet-1.0.1 webpack/fills_index.js