Skip to content

Commit

Permalink
Allow Space in Mail To
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAntares committed Mar 16, 2022
1 parent 0ef060d commit 6dd104f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UI/Components/Mail/Mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
Mail.replyNewMail = function replyNewMail( fromName )
{
onWindowCreateMessages();
Mail.ui.find('.text_to').val(fromName.replace(/^(\$|\%)/, '').replace(/\t/g, '').replace(' ', ''));
Mail.ui.find('.text_to').val(fromName.replace(/^(\$|\%)/, '').replace(/\t/g, ''));
}

/**
Expand All @@ -304,7 +304,7 @@
// Do something after the sleep!
onWindowCreateMessages();
offWindowListMail();
Mail.ui.find('.text_to').val(fromName.replace(/^(\$|\%)/, '').replace(/\t/g, '').replace(' ', ''));
Mail.ui.find('.text_to').val(fromName.replace(/^(\$|\%)/, '').replace(/\t/g, ''));
Mail.ui.find('#inbox').off('click');
Mail.ui.find('#inbox')
.prop('disabled', false)
Expand Down Expand Up @@ -508,7 +508,7 @@
}

let to = Mail.ui.find('.text_to').val();
to = to.length > 50 ? title.substring(0,50) : to;
to = to.length > 50 ? to.substring(0,50) : to;
let title = Mail.ui.find('.input_title').val();
title = title.length > 50 ? title.substring(0,50) : title;
let message = Mail.ui.find('.textarea_mail').val();
Expand Down Expand Up @@ -922,4 +922,4 @@
*/
return UIManager.addComponent(Mail);
});


0 comments on commit 6dd104f

Please sign in to comment.