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
6e68f433
Commit
6e68f433
authored
Nov 02, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement operation, templage select callback
parent
2a17032c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
abvw/js/sendMessage/send-message.js
+2
-2
abvw/js/template/template.js
+4
-4
No files found.
abvw/js/sendMessage/send-message.js
View file @
6e68f433
...
@@ -102,8 +102,8 @@ SendMessage.templateSelectedCallback = function(template) {
...
@@ -102,8 +102,8 @@ SendMessage.templateSelectedCallback = function(template) {
*/
*/
SendMessage
.
init
=
function
()
{
SendMessage
.
init
=
function
()
{
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
TEMPLATE
.
loadHearder
(
"#includedHeader"
);
TEMPLATE
.
loadOperationSelect
(
'#includeOperationSelect'
);
TEMPLATE
.
loadOperationSelect
(
'#includeOperationSelect'
,
SendMessage
.
operationSelectedCallback
);
TEMPLATE
.
loadNotificationSelect
(
'#includeTemplateModal'
);
TEMPLATE
.
loadNotificationSelect
(
'#includeTemplateModal'
,
SendMessage
.
templateSelectedCallback
);
//load lang for elements none class lang
//load lang for elements none class lang
I18N
.
initi18n
();
I18N
.
initi18n
();
document
.
title
=
I18N
.
i18nText
(
'sendMessageTitle'
);
document
.
title
=
I18N
.
i18nText
(
'sendMessageTitle'
);
...
...
abvw/js/template/template.js
View file @
6e68f433
...
@@ -27,9 +27,9 @@ TEMPLATE.loadConfirmModal = function(elmentId) {
...
@@ -27,9 +27,9 @@ TEMPLATE.loadConfirmModal = function(elmentId) {
}
}
/** Template load operation select */
/** Template load operation select */
TEMPLATE
.
loadOperationSelect
=
function
(
elmentId
)
{
TEMPLATE
.
loadOperationSelect
=
function
(
elmentId
,
selectCallback
)
{
$
(
elmentId
).
load
(
"operation-select.html"
,
function
()
{
$
(
elmentId
).
load
(
"operation-select.html"
,
function
()
{
OperationSelect
.
init
();
OperationSelect
.
init
(
selectCallback
);
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
}
}
...
@@ -44,9 +44,9 @@ TEMPLATE.loadOperationSelect = function(elmentId) {
...
@@ -44,9 +44,9 @@ TEMPLATE.loadOperationSelect = function(elmentId) {
};
};
/** Template load notification content*/
/** Template load notification content*/
TEMPLATE
.
loadNotificationSelect
=
function
(
elmentId
)
{
TEMPLATE
.
loadNotificationSelect
=
function
(
elmentId
,
selectCallback
)
{
$
(
elmentId
).
load
(
"notification-content.html"
,
function
()
{
$
(
elmentId
).
load
(
"notification-content.html"
,
function
()
{
NotificationSelect
.
init
();
NotificationSelect
.
init
(
selectCallback
);
I18N
.
initi18n
();
I18N
.
initi18n
();
});
});
}
}
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