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
b7beffa1
Commit
b7beffa1
authored
Nov 01, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#50293 implement alert when click send button
parent
2230a4a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
abvw/common/json/lang/lang-en.json
+5
-1
abvw/common/json/lang/lang-ja.json
+5
-2
abvw/common/json/lang/lang-ko.json
+5
-1
abvw/js/sendMessage/send-message.js
+3
-4
No files found.
abvw/common/json/lang/lang-en.json
View file @
b7beffa1
...
...
@@ -78,5 +78,8 @@
"labelSendTypeAll"
:
"All"
,
"txtMessageContent"
:
"Message"
,
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
}
\ No newline at end of file
abvw/common/json/lang/lang-ja.json
View file @
b7beffa1
...
...
@@ -78,6 +78,8 @@
"labelSendTypeAll"
:
"作業全体"
,
"txtMessageContent"
:
"メッセージ"
,
"buttonTemplateSelection"
:
"テンプレート選択"
,
"buttonSend"
:
"送信"
"buttonSend"
:
"送信"
,
"msgContentRequired"
:
"Content is required"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
}
\ No newline at end of file
abvw/common/json/lang/lang-ko.json
View file @
b7beffa1
...
...
@@ -78,5 +78,8 @@
"labelSendTypeAll"
:
"All"
,
"txtMessageContent"
:
"Message"
,
"buttonTemplateSelection"
:
"Template"
,
"buttonSend"
:
"Send"
"buttonSend"
:
"Send"
,
"msgContentRequired"
:
"Content is required"
,
"msgOperationRequired"
:
"Operation is required"
,
"msgSendTypeRequired"
:
"Send type is required"
}
\ No newline at end of file
abvw/js/sendMessage/send-message.js
View file @
b7beffa1
...
...
@@ -29,17 +29,17 @@ SendMessage.getCurrentSendType = function() {
SendMessage
.
checkValidation
=
function
()
{
const
message
=
SendMessage
.
getCurrentMessageContent
();
if
(
!
ValidationUtil
.
CheckRequiredForText
(
message
))
{
console
.
log
(
'message invalidation'
);
alert
(
I18N
.
i18nText
(
'msgContentRequired'
)
);
return
false
;
}
const
operationId
=
SendMessage
.
getCurrentOperationId
();
if
(
!
ValidationUtil
.
IsNumber
(
operationId
))
{
console
.
log
(
'operationId invalidation'
);
alert
(
I18N
.
i18nText
(
'msgOperationRequired'
)
);
return
false
;
}
const
sendType
=
SendMessage
.
getCurrentSendType
();
if
(
!
ValidationUtil
.
IsNumber
(
sendType
))
{
console
.
log
(
'sendType invalidation'
);
alert
(
I18N
.
i18nText
(
'msgSendTypeRequired'
)
);
return
false
;
}
return
true
;
...
...
@@ -71,7 +71,6 @@ SendMessage.postMessage = function(message, operationId, sendType) {
operationId
:
operationId
,
sendType
:
sendType
};
console
.
log
(
param
);
COMMON
.
cmsAjax
(
SendMessage
.
baseApiUrl
,
param
,
false
,
function
(
json
)
{
},
function
()
{
...
...
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