瀏覽代碼

updated HIST

Piotr Labudda 9 年之前
父節點
當前提交
bffe1b2a5b
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      SE/se-lib/TableAjax.php

+ 6 - 2
SE/se-lib/TableAjax.php

@@ -3554,7 +3554,7 @@ function TableAjax__HIST_Route(args) {
 				'<thead>' +
 					'<tr>' +
 						'<th>Data</th>' +
-						'<th>User</th>' +
+						'<th>Autor</th>' +
 						'<th>Zmiany</th>' +
 					'</tr>' +
 				'</thead>' +
@@ -3596,7 +3596,9 @@ function TableAjax__HIST_Route(args) {
 			histAjaxOut += '<div style="overflow-x:scroll; overflow-y:visible; padding-bottom:1px; margin:10px 0;">' +
 				'<table class="table table-striped table-hover table-bordered table-condensed AjaxTableHist">' +
 					'<thead>' +
-						'<tr>';
+						'<tr>' + "\n";
+			histAjaxOut += '<th>Data</th>';
+			histAjaxOut += '<th>Autor</th>';
 			for (j in data['fields']) {
 				var fieldName = data['fields'][j];
 				histAjaxOut += '<th>' + (data['field_label'][fieldName] || fieldName).replace(/_/g, ' ') + '</th>';
@@ -3607,6 +3609,8 @@ function TableAjax__HIST_Route(args) {
 			for (i in data['rows']) {
 				var row = data['rows'][i];
 				histAjaxOut += '<tr>';
+				histAjaxOut += '<td><nobr>' + row['_created'] + '</nobr></td>';
+				histAjaxOut += '<td>' + row['_author'] + '</td>';
 				for (j in data['fields']) {
 					var fieldName = data['fields'][j];
 					histAjaxOut += '<td>';