Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
6827826d
Commit
6827826d
authored
Sep 21, 2023
by
Leonard Ambros II
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature-WG-395' into 'development'
resolution on WG-395 + modification of submit function See merge request
!65
parents
92b796ba
b92d6e30
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
generateFields.js
...bContent/WebGde-Widgets/DataInputWidget/generateFields.js
+14
-0
validateInput.js
...ebContent/WebGde-Widgets/DataInputWidget/validateInput.js
+0
-0
config.js
WebGde/WebContent/WebGde-Widgets/config.js
+1
-1
documentControlWidget.js
...de-Widgets/documentControlWidget/documentControlWidget.js
+9
-4
No files found.
WebGde/WebContent/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
6827826d
...
...
@@ -389,6 +389,7 @@ const inputDateRange = (key, validation) => { //Input date range is a field main
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
'startDate'
)
input
.
setAttribute
(
'type'
,
'date'
)
input
.
setAttribute
(
'max'
,
'9999-12-31'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
mandatory
?
input
.
setAttribute
(
'required'
,
'true'
)
:
null
startDate
.
setAttribute
(
'class'
,
'dateContainer'
)
...
...
@@ -401,6 +402,7 @@ const inputDateRange = (key, validation) => { //Input date range is a field main
input2
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input2
.
setAttribute
(
'name'
,
'endDate'
)
input2
.
setAttribute
(
'type'
,
'date'
)
input2
.
setAttribute
(
'max'
,
'9999-12-31'
)
input2
.
addEventListener
(
'focusout'
,
handleInput
)
mandatory
?
input2
.
setAttribute
(
'required'
,
'true'
)
:
null
endDate
.
setAttribute
(
'class'
,
'dateContainer'
)
...
...
@@ -438,6 +440,7 @@ const inputDate = (key, validation) => {
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
`
${
key
}
`
)
input
.
setAttribute
(
'type'
,
'date'
)
input
.
setAttribute
(
'max'
,
'9999-12-31'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
mandatory
?
input
.
setAttribute
(
'required'
,
'true'
)
:
null
...
...
@@ -448,6 +451,17 @@ const inputDate = (key, validation) => {
}
}
/**
*
* @param {*} key
...
...
WebGde/WebContent/WebGde-Widgets/DataInputWidget/validateInput.js
View file @
6827826d
WebGde/WebContent/WebGde-Widgets/config.js
View file @
6827826d
...
...
@@ -8,7 +8,7 @@ export const HIGH_LIGHT_SCHEMA = "./WebGde-Widgets/sample_schema/dbSchema_anno.
export
const
ROOT_FOLDER
=
"/WebGde-Widgets"
;
//this determines if the images will be retrieved from the gfs
const
IP
=
"
44.202.63.115
"
const
IP
=
"
3.84.233.4
"
const
GDE_CONTEXTROOT
=
"WebGde-v121-b1"
export
const
DOMAIN
=
`http://
${
IP
}
:8080`
export
const
CONTEXTROOT
=
"gfs-explorer-ws"
...
...
WebGde/WebContent/WebGde-Widgets/documentControlWidget/documentControlWidget.js
View file @
6827826d
...
...
@@ -5,6 +5,8 @@ import { completeToNextNode, submitForm } from '../Submit/submit.js';
import
{
interval
,
pauseMetricCapture
,
saveMetrics
,
stopMetricCapture
}
from
'../captureMetrics/captureMetrics.js'
;
import
{
REASON_LIST
,
ROOT_FOLDER
}
from
'../config.js'
;
import
{
BPO_OBJECT
,
DISPLAY_FIELD_OBJECT
,
DOCUMENT_CONTROL_OBJECT
,
IMAGE_VIEWER_OBJECT
,
INDEXED_DB_STORAGE
}
from
'../globalVariable.js'
;
import
{
createInfoModal
}
from
'../genericPopup/genericPopup.js'
;
import
{
saveForm
}
from
"../DataInputWidget/generateFields.js"
;
...
...
@@ -128,8 +130,6 @@ export class DocumentControlWidget {
if
(
sessionStorage
.
getItem
(
"isElementComplete"
)){
//move element then fetch new element
let
response
=
await
completeToNextNode
(
sessionStorage
.
getItem
(
"element_id"
));
...
...
@@ -153,8 +153,13 @@ export class DocumentControlWidget {
}
else
{
// document.getElementById("nextRecordImage").click();
//DISPLAY_FIELD_OBJECT.generateFields();
DISPLAY_FIELD_OBJECT
.
clearForm
();
displayNextRecord
();
//commented 20230921
//DISPLAY_FIELD_OBJECT.clearForm();
//displayNextRecord();
//commented 20230921
createInfoModal
(
null
,
"OK"
,
"Element is not yet complete. Please check all the records for completeness"
);
console
.
log
(
"Element is not yet complete. Please check all the records for completeness"
);
//document.getElementById("input-field-container").appendChild(DOCUMENT_CONTROL_OBJECT.getWidget());
...
...
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