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
f836d9d3
Commit
f836d9d3
authored
Nov 10, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement content max length 207 for html
parent
5cdc9152
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
abweb/common/json/lang/lang-en.json
+1
-1
abweb/common/json/lang/lang-ja.json
+1
-1
abweb/common/json/lang/lang-ko.json
+1
-1
abweb/js/sendMessage/send-message.js
+4
-2
No files found.
abweb/common/json/lang/lang-en.json
View file @
f836d9d3
...
...
@@ -88,7 +88,7 @@
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
207
characters"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
{0}
characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"Operation select"
,
...
...
abweb/common/json/lang/lang-ja.json
View file @
f836d9d3
...
...
@@ -86,7 +86,7 @@
"buttonTemplateSelection"
:
"テンプレート選択"
,
"buttonSend"
:
"送信"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
207
characters"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
{0}
characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"作業選択"
,
...
...
abweb/common/json/lang/lang-ko.json
View file @
f836d9d3
...
...
@@ -85,7 +85,7 @@
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
207
characters"
,
"msgContentInvalidLength"
:
"The content length exceeds the maximum of
{0}
characters"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
,
"operationSelection"
:
"Operation select"
,
...
...
abweb/js/sendMessage/send-message.js
View file @
f836d9d3
...
...
@@ -6,6 +6,7 @@
var
SendMessage
=
{};
SendMessage
.
baseApiUrl
=
COMMON
.
format
(
ClientData
.
conf_checkApiUrl
(),
ClientData
.
userInfo_accountPath
())
+
CONSTANT
.
URL
.
CMS
.
API
.
SEND_PUSH_MESSAGE
;
SendMessage
.
contentMaxLength
=
207
;
/**
* Get input content
...
...
@@ -41,8 +42,8 @@ SendMessage.checkValidation = function() {
alert
(
I18N
.
i18nText
(
'msgContentRequired'
));
return
false
;
}
if
(
!
ValidationUtil
.
CheckMaxLengthForByte
(
message
,
207
))
{
alert
(
I18N
.
i18nText
(
'msgContentInvalidLength'
));
if
(
!
ValidationUtil
.
CheckMaxLengthForByte
(
message
,
SendMessage
.
contentMaxLength
))
{
alert
(
COMMON
.
format
(
I18N
.
i18nText
(
'msgContentInvalidLength'
),
SendMessage
.
contentMaxLength
));
return
false
;
}
const
operationId
=
SendMessage
.
getCurrentOperationId
();
...
...
@@ -118,6 +119,7 @@ SendMessage.init = function () {
TEMPLATE
.
loadMainNavsTitle
(
"#includedMainTitle"
,
"sendMessageTitle"
,
navs
,
null
);
TEMPLATE
.
loadOperationSelect
(
'#includeOperationSelect'
,
SendMessage
.
operationSelectedCallback
);
TEMPLATE
.
loadNotificationSelect
(
'#includeTemplateModal'
,
SendMessage
.
templateSelectedCallback
);
$
(
'#messageContent'
).
attr
(
'maxlength'
,
SendMessage
.
contentMaxLength
);
//load lang for elements none class lang
I18N
.
initi18n
();
$
(
"label[for='sendTypeGroup']"
).
append
(
I18N
.
i18nText
(
'labelSendTypeGroup'
));
...
...
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