Styling fixes on Job Detail page

This commit is contained in:
chouseknecht
2013-07-22 17:12:21 -04:00
parent 72c6a6e3fc
commit eb30b59ffb
6 changed files with 39 additions and 31 deletions

View File

@@ -231,6 +231,7 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
$('input[type="checkbox"]').attr('disabled','disabled');
$('input[type="radio"]').attr('disabled','disabled');
$('#host_config_key-gen-btn').attr('disabled','disabled');
$('textarea').attr('disabled','disabled');
})
.error( function(data, status, headers, config) {
ProcessErrors(scope, data, status, form,
@@ -319,6 +320,17 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
}
}
// Calc row size of stdout and traceback textarea fields
var n = scope['result_stdout'].match(/\n/g);
var rows = (n) ? n.length : 1;
rows = (rows > 15) ? 15 : rows;
scope['stdout_rows'] = rows;
n = scope['result_traceback'].match(/\n/g);
var rows = (n) ? n.length : 1;
rows = (rows > 15) ? 15 : rows;
scope['traceback_rows'] = rows;
LookUpInit({
scope: scope,
form: form,