cockpit/js/instance.js in cpee-2.1.16 vs cockpit/js/instance.js in cpee-2.1.17
- old
+ new
@@ -1369,10 +1369,14 @@
message = message.replace(/&/g, '&');
message = message.replace(/</g, '<');
message = message.replace(/>/g, '>');
message = message.replace(/"/g, '"');
message = message.replace(/'/g, ''');
- $("#dat_log").prepend("<tr><td class='fixed'><a title=\"" + d.strftime("[%d/%b/%Y %H:%M:%S]") + "\">D</a></td><td class='fixed'> - </td><td class='fixed'><a title=\"" + what + "\">T</a></td><td class='fixed'> - </td><td class='fixed'>" + type + "</td><td class='fixed'> - </td><td class='long'>" + message + "</td></tr>");
+ if (type == 'description/change') {
+ $("#dat_log").prepend("<tr><td class='fixed'><a title=\"" + d.strftime("[%d/%b/%Y %H:%M:%S]") + "\">D</a></td><td class='fixed'> - </td><td class='fixed'><a title=\"" + what + "\">T</a></td><td class='fixed'> - </td><td class='fixed'>" + type + "</td><td class='fixed'> - </td><td class='long'>... check in persistent log ...</td></tr>");
+ } else {
+ $("#dat_log").prepend("<tr><td class='fixed'><a title=\"" + d.strftime("[%d/%b/%Y %H:%M:%S]") + "\">D</a></td><td class='fixed'> - </td><td class='fixed'><a title=\"" + what + "\">T</a></td><td class='fixed'> - </td><td class='fixed'>" + type + "</td><td class='fixed'> - </td><td class='long'>" + message + "</td></tr>");
+ }
var dle = $("#dat_log").children();
if (dle.length > 100) {
dle.slice(100).each((k,ele) => {
$(ele).remove();
});