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