From 295e52df33179b8d27c241a2b8739ba3f3fbc56b Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Wed, 17 Jul 2013 00:19:52 -0400 Subject: [PATCH] Limited textarea rows to 15 on Job Events page. --- awx/ui/static/js/controllers/JobEvents.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/ui/static/js/controllers/JobEvents.js b/awx/ui/static/js/controllers/JobEvents.js index 74ef9c422f..e8ce9f5a12 100644 --- a/awx/ui/static/js/controllers/JobEvents.js +++ b/awx/ui/static/js/controllers/JobEvents.js @@ -41,6 +41,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest, if (typeof eventData.res == 'string') { n = eventData['res'].match(/\n/g); rows = (n) ? n.length : 1; + rows = (rows > 10) ? 10 : rows; found = true; html += "\n"; html += "\n"; @@ -62,6 +63,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest, html += "\n"; n = eventData['res'][fld].match(/\n/g); rows = (n) ? n.length : 1; + rows = (rows > 10) ? 10 : rows; html += "\n"; found = true; } @@ -74,6 +76,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest, } n = txt.match(/\n/g); rows = (n) ? n.length : 1; + rows = (rows > 10) ? 10 : rows; html += "\n"; found = true; }