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
207a63ce
Commit
207a63ce
authored
Oct 28, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add html, js
parent
517c4112
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
abvw/html/send-message.html
+0
-0
abvw/js/sendMessage/send-message.js
+46
-0
No files found.
abvw/html/send-message.html
0 → 100644
View file @
207a63ce
This diff is collapsed.
Click to expand it.
abvw/js/sendMessage/send-message.js
0 → 100644
View file @
207a63ce
/**
* Send Message js in send-message.html
*
* @since 1.0 check web
*/
var
SendMessage
=
{};
SendMessage
.
baseApiUrl
=
CONSTANT
.
URL
.
CMS
.
BASE
+
ClientData
.
userInfo_accountPath
()
+
CONSTANT
.
URL
.
CMS
.
API
.
BASE
+
'sendMessage/'
;
/**
* default JSON
*/
SendMessage
.
dummyJson
=
{
}
/**
* get data from cms
* @param {function} callback
*/
SendMessage
.
getData
=
function
(
callback
)
{
let
param
=
{
sid
:
COMMON
.
getSid
(),
};
const
url
=
SendMessage
.
baseApiUrl
;
COMMON
.
cmsAjax
(
url
,
param
,
false
,
function
(
json
)
{
if
(
callback
)
{
callback
(
json
);
}
},
function
()
{
console
.
log
(
'SendMessage.getData error'
);
if
(
callback
)
{
callback
(
SendMessage
.
dummyJson
);
}
});
};
/**
* init data, action when screen onload
*/
SendMessage
.
init
=
function
()
{
$
(
"#includedHeader"
).
load
(
"../common/header.html"
,
function
()
{
I18N
.
initi18n
();
});
};
\ No newline at end of file
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