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
9550d9c8
Commit
9550d9c8
authored
Sep 15, 2023
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed implementation for 'others' field text box
parent
34b062f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
generateFields.js
...bContent/WebGde-Widgets/DataInputWidget/generateFields.js
+4
-2
XML_Saver.js
...e/WebContent/WebGde-Widgets/Submit/XMLWriter/XML_Saver.js
+1
-1
submit.js
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
+1
-1
No files found.
WebGde/WebContent/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
9550d9c8
...
...
@@ -509,7 +509,8 @@ const inputChecklist = (key, validation) => {
// Initially hide the input text box
var
inputTextBox
=
document
.
createElement
(
'input'
);
inputTextBox
.
type
=
'text'
;
inputTextBox
.
id
=
'dependentTB'
;
inputTextBox
.
id
=
`dependentTB_
${
key
}
`
;
inputTextBox
.
classList
.
add
(
'checkboxOther'
);
inputTextBox
.
style
.
display
=
'none'
;
inputTextBox
.
style
.
padding
=
'0px'
;
dropdownContent
.
appendChild
(
inputTextBox
);
...
...
@@ -595,7 +596,8 @@ const inputRadiolist = (key, validation) => {
var
inputTextBox
=
document
.
createElement
(
'input'
);
inputTextBox
.
type
=
'text'
;
inputTextBox
.
id
=
'dependentTB'
;
inputTextBox
.
id
=
`dependentTB_
${
key
}
`
;
inputTextBox
.
classList
.
add
(
'radioOther'
);
inputTextBox
.
style
.
display
=
'none'
;
inputTextBox
.
style
.
padding
=
'0px'
;
dropdownContent
.
appendChild
(
inputTextBox
);
...
...
WebGde/WebContent/WebGde-Widgets/Submit/XMLWriter/XML_Saver.js
View file @
9550d9c8
...
...
@@ -21,7 +21,7 @@ export async function WriteForm(e,metrics,doctype,section) {
let
fid
=
Nodes
[
i
].
id
;
if
(
fid
==
'DocType'
||
fid
==
'Section'
||
fid
==
''
||
fid
==
"submitButton"
)
continue
// Skip the textbox in checklist and radiolist
if
(
fid
==
'dependentTB'
)
continue
;
if
(
Nodes
[
i
].
classList
.
contains
(
'radioOther'
)
||
Nodes
[
i
].
classList
.
contains
(
'checkboxOther'
)
)
continue
;
// Skip elements of type "button", "submit", and files
if
(
Nodes
[
i
].
type
===
'button'
||
Nodes
[
i
].
type
===
'submit'
||
fid
==
''
||
Nodes
[
i
].
name
===
'hidden_file_content'
)
continue
;
...
...
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
View file @
9550d9c8
...
...
@@ -22,7 +22,7 @@ export const submitForm = async (e) => {
const
{
id
,
value
,
type
,
name
}
=
element
// Skip submit, buttons, and files
if
(
id
===
'dependentTB'
)
continue
;
if
(
element
.
classList
.
contains
(
'radioOther'
)
||
element
.
classList
.
contains
(
'checkboxOther'
)
)
continue
;
if
(
element
.
classList
.
contains
(
'geotag'
)
||
element
.
classList
.
contains
(
'altitude'
)
||
element
.
classList
.
contains
(
'direction'
))
{
continue
;
}
...
...
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