From 273754dc79811610b9ad1d611c07ec63937c51a1 Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 7 Aug 2018 16:17:20 -0400 Subject: [PATCH] Removes redundant maxCount declaration --- .../add-job-template/job-template-add.controller.js | 1 - .../edit-job-template/job-template-edit.controller.js | 1 - .../templates/workflows/add-workflow/workflow-add.controller.js | 1 - .../workflows/edit-workflow/workflow-edit.controller.js | 1 - 4 files changed, 4 deletions(-) diff --git a/awx/ui/client/src/templates/job_templates/add-job-template/job-template-add.controller.js b/awx/ui/client/src/templates/job_templates/add-job-template/job-template-add.controller.js index f343a10ac0..1ee7f244ea 100644 --- a/awx/ui/client/src/templates/job_templates/add-job-template/job-template-add.controller.js +++ b/awx/ui/client/src/templates/job_templates/add-job-template/job-template-add.controller.js @@ -528,7 +528,6 @@ // Detect when a label is removed $(`#${jt_label_id}`).on('select2:unselect', (e) => { - const maxCount = 512; const { text } = e.params.data; /* If the character count of a removed label is greater than 512 AND the field is currently marked diff --git a/awx/ui/client/src/templates/job_templates/edit-job-template/job-template-edit.controller.js b/awx/ui/client/src/templates/job_templates/edit-job-template/job-template-edit.controller.js index c300ee2c73..1b6b4a1c99 100644 --- a/awx/ui/client/src/templates/job_templates/edit-job-template/job-template-edit.controller.js +++ b/awx/ui/client/src/templates/job_templates/edit-job-template/job-template-edit.controller.js @@ -736,7 +736,6 @@ export default // Detect when a label is removed $(`#${jt_label_id}`).on('select2:unselect', (e) => { - const maxCount = 512; const { text } = e.params.data; /* If the character count of a removed label is greater than 512 AND the field is currently marked diff --git a/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js b/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js index 82d85d8168..84bfa0186d 100644 --- a/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js +++ b/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js @@ -207,7 +207,6 @@ export default [ }); // Detect when a label is removed $(`#${wfjt_label_id}`).on('select2:unselect', (e) => { - const maxCount = 512; const { text } = e.params.data; /* If the character count of a removed label is greater than 512 AND the field is currently marked as invalid, we set it back to valid */ diff --git a/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js b/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js index 0093637068..dc6a35d402 100644 --- a/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js +++ b/awx/ui/client/src/templates/workflows/edit-workflow/workflow-edit.controller.js @@ -351,7 +351,6 @@ export default [ }); // Detect when a label is removed $(`#${wfjt_label_id}`).on('select2:unselect', (e) => { - const maxCount = 512; const { text } = e.params.data; /* If the character count of a removed label is greater than 512 AND the field is currently marked as invalid, we set it back to valid */