From f1d915084a1b7391fb7b1988d9fd79f1a967bac5 Mon Sep 17 00:00:00 2001
From: Akita Noek
Date: Wed, 8 Jun 2016 13:31:50 -0400
Subject: [PATCH] jshint
---
.../client/src/notifications/add/add.controller.js | 2 +-
.../src/notifications/edit/edit.controller.js | 4 ++--
.../notifications/notificationTemplates.form.js | 14 +++++++-------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/awx/ui/client/src/notifications/add/add.controller.js b/awx/ui/client/src/notifications/add/add.controller.js
index e2fa103996..2d4d45fc43 100644
--- a/awx/ui/client/src/notifications/add/add.controller.js
+++ b/awx/ui/client/src/notifications/add/add.controller.js
@@ -126,7 +126,7 @@ export default
function processValue(value, i , field){
if(field.type === 'textarea'){
- if (field.name == 'headers') {
+ if (field.name === 'headers') {
$scope[i] = JSON.parse($scope[i]);
} else {
$scope[i] = $scope[i].toString().split('\n');
diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js
index 379f9db0e4..c81b7220c0 100644
--- a/awx/ui/client/src/notifications/edit/edit.controller.js
+++ b/awx/ui/client/src/notifications/edit/edit.controller.js
@@ -59,7 +59,7 @@ export default
master[fld] = data.notification_configuration[fld];
if(form.fields[fld].type === 'textarea'){
- if (form.fields[fld].name == 'headers') {
+ if (form.fields[fld].name === 'headers') {
$scope[fld] = JSON.stringify($scope[fld], null, 2);
} else {
$scope[fld] = $scope[fld].toString().replace(',' , '\n');
@@ -189,7 +189,7 @@ export default
function processValue(value, i , field){
if(field.type === 'textarea'){
- if (field.name == 'headers') {
+ if (field.name === 'headers') {
$scope[i] = JSON.parse($scope[i]);
} else {
$scope[i] = $scope[i].toString().split('\n');
diff --git a/awx/ui/client/src/notifications/notificationTemplates.form.js b/awx/ui/client/src/notifications/notificationTemplates.form.js
index e2f03dfe5d..7ad0898b97 100644
--- a/awx/ui/client/src/notifications/notificationTemplates.form.js
+++ b/awx/ui/client/src/notifications/notificationTemplates.form.js
@@ -303,13 +303,13 @@ export default function() {
reqExpression: "webhook_required",
init: "false"
},
- awPopOver: 'Specify HTTP Headers in JSON format
'
- + 'For example:
\n'
- + '{\n'
- + ' "X-Auth-Token": "828jf0",\n'
- + ' "X-Ansible": "Is great!"\n'
- + '}\n'
- + '
',
+ awPopOver: 'Specify HTTP Headers in JSON format
' +
+ 'For example:
\n' +
+ '{\n' +
+ ' "X-Auth-Token": "828jf0",\n' +
+ ' "X-Ansible": "Is great!"\n' +
+ '}\n' +
+ '',
ngShow: "notification_type.value == 'webhook' ",
subForm: 'typeSubForm'
},