Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
168e22ea
Commit
168e22ea
authored
Nov 09, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check max length message content when send
parent
11089b39
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
abweb/common/json/lang/lang-en.json
+1
-0
abweb/common/json/lang/lang-ja.json
+1
-0
abweb/common/json/lang/lang-ko.json
+1
-0
abweb/js/sendMessage/send-message.js
+4
-0
No files found.
abweb/common/json/lang/lang-en.json
View file @
168e22ea
...
...
@@ -88,6 +88,7 @@
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of 207 characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"Operation select"
,
...
...
abweb/common/json/lang/lang-ja.json
View file @
168e22ea
...
...
@@ -86,6 +86,7 @@
"buttonTemplateSelection"
:
"テンプレート選択"
,
"buttonSend"
:
"送信"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of 207 characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"作業選択"
,
...
...
abweb/common/json/lang/lang-ko.json
View file @
168e22ea
...
...
@@ -85,6 +85,7 @@
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of 207 characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"Operation select"
,
...
...
abweb/js/sendMessage/send-message.js
View file @
168e22ea
...
...
@@ -41,6 +41,10 @@ SendMessage.checkValidation = function() {
alert
(
I18N
.
i18nText
(
'msgContentRequired'
));
return
false
;
}
if
(
!
ValidationUtil
.
CheckMaxLengthForByte
(
message
,
207
))
{
alert
(
I18N
.
i18nText
(
'msgContentInvalidLength'
));
return
false
;
}
const
operationId
=
SendMessage
.
getCurrentOperationId
();
if
(
!
ValidationUtil
.
IsNumber
(
operationId
))
{
alert
(
I18N
.
i18nText
(
'msgOperationRequired'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment