Truncate support messages after 2000 chars

pull/1/head
David Benqué 4 years ago
parent a5232b6cdb
commit d269a18315

@ -371,8 +371,8 @@ define([
var pre = h('pre.cp-support-message-content'); var pre = h('pre.cp-support-message-content');
var $pre = $(pre); var $pre = $(pre);
var more; var more;
if (content.message.length >= 3000) { if (content.message.length >= 2000) {
displayed = content.message.slice(0, 3000) + '...'; displayed = content.message.slice(0, 2000) + '...';
var expand = h('button.btn.btn-secondary', Messages.admin_support_open); var expand = h('button.btn.btn-secondary', Messages.admin_support_open);
var collapse = h('button.btn.btn-secondary', Messages.admin_support_collapse); var collapse = h('button.btn.btn-secondary', Messages.admin_support_collapse);
var $collapse = $(collapse).hide(); var $collapse = $(collapse).hide();

Loading…
Cancel
Save