diff --git a/webpack/components/ApplicationDefinition/ApplicationDefinition.js b/webpack/components/ApplicationDefinition/ApplicationDefinition.js index db139fc3..be4c81c4 100644 --- a/webpack/components/ApplicationDefinition/ApplicationDefinition.js +++ b/webpack/components/ApplicationDefinition/ApplicationDefinition.js @@ -1,4 +1,3 @@ -import $ from 'jquery'; import React from 'react'; import PropTypes from 'prop-types'; import { diff --git a/webpack/components/ApplicationInstance/ApplicationInstance.js b/webpack/components/ApplicationInstance/ApplicationInstance.js index f4b092e8..0e9fc08f 100644 --- a/webpack/components/ApplicationInstance/ApplicationInstance.js +++ b/webpack/components/ApplicationInstance/ApplicationInstance.js @@ -344,9 +344,13 @@ class ApplicationInstance extends React.Component { const { validateResult, validateMsg } = this.validateParameters(); if (validateResult == false) { - $('input[type="submit"][name="commit"]').attr('disabled', true); + document + .querySelector('input[type="submit"][name="commit"]') + .setAttribute('disabled', true); } else { - $('input[type="submit"][name="commit"]').attr('disabled', false); + document + .querySelector('input[type="submit"][name="commit"]') + .setAttribute('disabled', false); } return ( diff --git a/webpack/components/ParameterSelection/ParameterSelection.js b/webpack/components/ParameterSelection/ParameterSelection.js index d26291f9..1259f444 100644 --- a/webpack/components/ParameterSelection/ParameterSelection.js +++ b/webpack/components/ParameterSelection/ParameterSelection.js @@ -1,4 +1,3 @@ -import $ from 'jquery'; import React from 'react'; import PropTypes from 'prop-types'; import * as sort from 'sortabular'; diff --git a/webpack/components/SyncGitRepo/SyncGitRepo.js b/webpack/components/SyncGitRepo/SyncGitRepo.js index f2ed90ab..ad981698 100644 --- a/webpack/components/SyncGitRepo/SyncGitRepo.js +++ b/webpack/components/SyncGitRepo/SyncGitRepo.js @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import Button from 'patternfly-react'; -import $ from 'jquery'; import CommonForm from 'foremanReact/components/common/forms/CommonForm'; import { translate as __ } from 'foremanReact/common/I18n'; import ScmTypeSelector from './components/ScmTypeSelector'; @@ -93,9 +92,13 @@ class SyncGitRepo extends React.Component { const { validateResult, validateMsg } = this.validateParameters(); if (validateResult === false) { - $('input[type="submit"][name="commit"]').attr('disabled', true); + document + .querySelector('input[type="submit"][name="commit"]') + .setAttribute('disabled', true); } else { - $('input[type="submit"][name="commit"]').attr('disabled', false); + document + .querySelector('input[type="submit"][name="commit"]') + .setAttribute('disabled', false); } return (