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
Show 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 @@
...
@@ -78,5 +78,8 @@
"labelSendTypeAll"
:
"All"
,
"labelSendTypeAll"
:
"All"
,
"txtMessageContent"
:
"Message"
,
"txtMessageContent"
:
"Message"
,
"buttonTemplateSelection"
:
"Template"
,
"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 @@
...
@@ -78,6 +78,8 @@
"labelSendTypeAll"
:
"作業全体"
,
"labelSendTypeAll"
:
"作業全体"
,
"txtMessageContent"
:
"メッセージ"
,
"txtMessageContent"
:
"メッセージ"
,
"buttonTemplateSelection"
:
"テンプレート選択"
,
"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 @@
...
@@ -78,5 +78,8 @@
"labelSendTypeAll"
:
"All"
,
"labelSendTypeAll"
:
"All"
,
"txtMessageContent"
:
"Message"
,
"txtMessageContent"
:
"Message"
,
"buttonTemplateSelection"
:
"Template"
,
"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() {
...
@@ -29,17 +29,17 @@ SendMessage.getCurrentSendType = function() {
SendMessage
.
checkValidation
=
function
()
{
SendMessage
.
checkValidation
=
function
()
{
const
message
=
SendMessage
.
getCurrentMessageContent
();
const
message
=
SendMessage
.
getCurrentMessageContent
();
if
(
!
ValidationUtil
.
CheckRequiredForText
(
message
))
{
if
(
!
ValidationUtil
.
CheckRequiredForText
(
message
))
{
console
.
log
(
'message invalidation'
);
alert
(
I18N
.
i18nText
(
'msgContentRequired'
)
);
return
false
;
return
false
;
}
}
const
operationId
=
SendMessage
.
getCurrentOperationId
();
const
operationId
=
SendMessage
.
getCurrentOperationId
();
if
(
!
ValidationUtil
.
IsNumber
(
operationId
))
{
if
(
!
ValidationUtil
.
IsNumber
(
operationId
))
{
console
.
log
(
'operationId invalidation'
);
alert
(
I18N
.
i18nText
(
'msgOperationRequired'
)
);
return
false
;
return
false
;
}
}
const
sendType
=
SendMessage
.
getCurrentSendType
();
const
sendType
=
SendMessage
.
getCurrentSendType
();
if
(
!
ValidationUtil
.
IsNumber
(
sendType
))
{
if
(
!
ValidationUtil
.
IsNumber
(
sendType
))
{
console
.
log
(
'sendType invalidation'
);
alert
(
I18N
.
i18nText
(
'msgSendTypeRequired'
)
);
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
@@ -71,7 +71,6 @@ SendMessage.postMessage = function(message, operationId, sendType) {
...
@@ -71,7 +71,6 @@ SendMessage.postMessage = function(message, operationId, sendType) {
operationId
:
operationId
,
operationId
:
operationId
,
sendType
:
sendType
sendType
:
sendType
};
};
console
.
log
(
param
);
COMMON
.
cmsAjax
(
SendMessage
.
baseApiUrl
,
param
,
false
,
function
(
json
)
{
COMMON
.
cmsAjax
(
SendMessage
.
baseApiUrl
,
param
,
false
,
function
(
json
)
{
},
function
()
{
},
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