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
5d8e489a
Commit
5d8e489a
authored
Nov 02, 2022
by
NGO THI HONG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle event of click select button
parent
3dae109a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
+31
-1
abvw/html/operation-select.html
+1
-1
abvw/js/operationSelect/operation-select.js
+30
-0
No files found.
abvw/html/operation-select.html
View file @
5d8e489a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</ul>
</ul>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary lang"
lang=
"selection"
></button>
<button
type=
"button"
class=
"btn btn-primary lang"
lang=
"selection"
onclick=
"OperationSelect.onClickSelect();"
></button>
<button
type=
"button"
class=
"btn btn-tertiary lang"
lang=
"dspCancel"
data-dismiss=
"modal"
></button>
<button
type=
"button"
class=
"btn btn-tertiary lang"
lang=
"dspCancel"
data-dismiss=
"modal"
></button>
</div>
</div>
</div>
</div>
...
...
abvw/js/operationSelect/operation-select.js
View file @
5d8e489a
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* @since 1.0 check web
* @since 1.0 check web
*/
*/
var
OperationSelect
=
{};
var
OperationSelect
=
{};
OperationSelect
.
changeSelectCallback
=
function
()
{};
OperationSelect
.
operationIdSelected
=
""
;
OperationSelect
.
operationIdSelected
=
""
;
OperationSelect
.
operationNameSelected
=
""
;
OperationSelect
.
operationNameSelected
=
""
;
...
@@ -77,3 +78,31 @@ OperationSelect.init = function () {
...
@@ -77,3 +78,31 @@ OperationSelect.init = function () {
$
(
"#operationSelectList :first-child"
).
addClass
(
"selected"
);
$
(
"#operationSelectList :first-child"
).
addClass
(
"selected"
);
}
}
/**
* handle click event of select button
*/
OperationSelect
.
onClickSelect
=
function
()
{
OperationSelect
.
chooseOperationSelect
();
};
/**
* Get operation select and call back function in main page
*/
OperationSelect
.
chooseOperationSelect
=
function
()
{
let
param
=
{};
param
.
operationIdSelected
=
OperationSelect
.
operationIdSelected
;
param
.
operationNameSelected
=
OperationSelect
.
operationNameSelected
;
OperationSelect
.
closeModal
();
if
(
OperationSelect
.
changeSelectCallback
&&
typeof
OperationSelect
.
changeSelectCallback
===
'function'
)
{
OperationSelect
.
changeSelectCallback
(
param
);
}
};
/**
* close setting dialog
*/
OperationSelect
.
closeModal
=
function
()
{
$
(
'#task-list-modal .close'
).
click
();
};
\ 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