border-bottom-width: thin;
}
.log-view-content-close {
- margin-right: 7px;
- margin-top: -7px;
- font-size: 20px;
+ margin-right: 10px;
+ margin-top: 0px;
+ font-size: 21px;
}
.log-view-content-header-title {
margin-left: 10px;
white-space: pre-line;
}
a.log-view-content-download {
- color: cadetblue;
float: right;
- margin-right: 40px;
- margin-top: -20px;
+ margin-right: 50px;
+ margin-top: -30px;
cursor: pointer;
- font-size: 11px;
+ font-size: 1.5em;
font-weight: bold;
}
function _initSocket() {
function _btnLogBlink (jobId, bBlink) {
var btnLogSelector, btnLogElem;
- btnLogSelector = '#tic-job-list #extended_job_table_row_' + jobId + ' .btnbiglog';
+ btnLogSelector = '#tic-job-list #job_table_row_' + jobId + ' .btnbiglog';
btnLogElem = $(btnLogSelector);
if (!btnLogElem.hasClass('btnlogactive')) {
if (bBlink) {
var config = null;
function showBigLogView(btn) {
- var linkid, linkurl, logViewTop, logViewLeft, logViewWidth, logViewHeight;
+ var linkid, linkurl, logViewTop, logViewLeft, logViewWidth, logViewHeight, targetId;
if (config === null) {
getAppConfig();
function readLog(linkid) {
POST(config.EVENT.JOB.JOB_READ_LOG + linkid)
.then(function (line) {
- $('#log-view-content-body').append(line);
+ $('#' + targetId).append(line);
+ $('#log-view-content').show();
});
}
// show
$('#log-view-content-body').empty();
- $('#log-view-content-download').attr('href', linkurl);
- $('#log-view-content').show();
+ targetId = 'extended_log_job_' + linkid;
+ $('#log-view-content-body').append('<div id="' + targetId + '"></div>');
- // read
+ $('#log-view-content-download').attr('href', linkurl);
readLog(linkid);
+
+ // $('#log-view-content').show();
}
function setAnimateScroll() {
};
JobLog.prototype.init = function () {
- var logViewId, logViewElem;
+ var logViewId, logViewElem, logViewBigId, logViewBigElem;
this.template = _.template(strLog)({
log: this.msg
});
+
+ // table extended row
logViewId = 'extended_job_table_row_' + this.jobId;
logViewElem = $('[id='+logViewId+'] > td > div');
logViewElem.append(this.template);
scrollTop: logViewElem.prop('scrollHeight')
}, 0);
+ // big log view
+ logViewBigId = 'extended_log_job_' + this.jobId;
+ logViewBigElem = $('#' + logViewBigId);
+ logViewBigElem.append(this.template);
+ logViewBigElem.parent().animate({
+ scrollTop: logViewBigElem.prop('scrollHeight')
+ }, 0);
};
JobLog.prototype.getTemplate = function () {
'<td><%= jobUptime %></td>',
'<td><a class="tic-job-list-btn btncancel <%= classJobCancel %>" data-jobid="<%= jobNum %>" title="Cancel">Cancel</a></td>',
'<td><a class="tic-job-list-btn <%= classJobKsPath %>" href="<%= jobKsPath %>" title="Kickstarter File">KS</a></td>',
- '<td><a class="tic-job-list-btn btnbiglog" href="<%= jobLogPath %>" title="Log">Log</a></td>',
+ '<td><a class="tic-job-list-btn btnbiglog btnbiglogex" data-link="<%= jobLogPath %>" data-jobid="<%= jobNum %>" title="Log">Log</a></td>',
'</tr>',
'<tr id="extended_job_table_row_<%= jobNum %>" class="extended_job_table_row">',
'<td colspan="10" class="extended_job_table_container">',