Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
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
ichikawa
em
Commits
9485d874
Commit
9485d874
authored
Jan 17, 2024
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#56952 設問設定機能追加(チェックボックス動作バグ修正)
parent
e6414617
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
187 additions
and
19 deletions
+187
-19
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete.html
+20
-2
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete_pub.html
+20
-2
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete_web_rec.html
+20
-2
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete.html
+23
-3
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete_pub.html
+22
-2
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete_web_rec.html
+22
-2
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
+20
-2
src/main/webapp/WEB-INF/view/user/enquete/enquete_pub.html
+20
-2
src/main/webapp/WEB-INF/view/user/enquete/enquete_web_rec.html
+20
-2
No files found.
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete.html
View file @
9485d874
...
@@ -15,7 +15,8 @@ $(function() {
...
@@ -15,7 +15,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -26,7 +27,24 @@ $(function() {
...
@@ -26,7 +27,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete_pub.html
View file @
9485d874
...
@@ -15,7 +15,8 @@ $(function() {
...
@@ -15,7 +15,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -26,7 +27,24 @@ $(function() {
...
@@ -26,7 +27,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
src/main/webapp/WEB-INF/view/mb/user/enquete/enquete_web_rec.html
View file @
9485d874
...
@@ -15,7 +15,8 @@ $(function() {
...
@@ -15,7 +15,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
val
(
""
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -26,7 +27,24 @@ $(function() {
...
@@ -26,7 +27,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete.html
View file @
9485d874
...
@@ -33,7 +33,8 @@ $(function() {
...
@@ -33,7 +33,8 @@ $(function() {
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
$
{
question
.
controlId
}
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
...
@@ -50,8 +51,27 @@ $(function() {
...
@@ -50,8 +51,27 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
checkboxradio
(
'enable'
);
$
(
"."
+
key
).
checkboxradio
(
"enable"
).
checkboxradio
(
'refresh'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"."
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
}
}
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
...
...
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete_pub.html
View file @
9485d874
...
@@ -33,7 +33,8 @@ $(function() {
...
@@ -33,7 +33,8 @@ $(function() {
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
$
{
question
.
controlId
}
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
...
@@ -51,7 +52,26 @@ $(function() {
...
@@ -51,7 +52,26 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
checkboxradio
(
'enable'
);
$
(
"."
+
key
).
checkboxradio
(
'enable'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"."
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
}
}
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
...
...
src/main/webapp/WEB-INF/view/sp/user/enquete/enquete_web_rec.html
View file @
9485d874
...
@@ -33,7 +33,8 @@ $(function() {
...
@@ -33,7 +33,8 @@ $(function() {
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
prop
(
"checked"
,
false
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
$
(
"."
+
key
).
checkboxradio
(
'refresh'
).
checkboxradio
(
'disable'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
$
{
question
.
controlId
}
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
...
@@ -51,7 +52,26 @@ $(function() {
...
@@ -51,7 +52,26 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
key
=
"${answer.answerId}"
;
key
=
"${answer.answerId}"
;
$
(
"."
+
key
).
checkboxradio
(
'enable'
);
$
(
"."
+
key
).
checkboxradio
(
'enable'
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"."
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
val
(
""
);
$
(
"."
+
key
).
selectmenu
(
"refresh"
).
selectmenu
(
"disable"
);
}
}
}
else
if
(
"${question.controlId}"
==
"6"
)
{
key
=
"${question.questionId}"
;
key
=
"${question.questionId}"
;
$
(
"."
+
key
).
selectmenu
(
"enable"
);
$
(
"."
+
key
).
selectmenu
(
"enable"
);
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
)
{
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete.html
View file @
9485d874
...
@@ -39,7 +39,8 @@ $(function() {
...
@@ -39,7 +39,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -50,7 +51,24 @@ $(function() {
...
@@ -50,7 +51,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete_pub.html
View file @
9485d874
...
@@ -43,7 +43,8 @@ $(function() {
...
@@ -43,7 +43,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -54,7 +55,24 @@ $(function() {
...
@@ -54,7 +55,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
src/main/webapp/WEB-INF/view/user/enquete/enquete_web_rec.html
View file @
9485d874
...
@@ -41,7 +41,8 @@ $(function() {
...
@@ -41,7 +41,8 @@ $(function() {
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"checked"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
...
@@ -52,7 +53,24 @@ $(function() {
...
@@ -52,7 +53,24 @@ $(function() {
}
else
{
}
else
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
if
(
"${question.controlId}"
==
"0"
||
"${question.controlId}"
==
"1"
)
{
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${answer.answerId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"2"
||
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
}
else
if
(
"${question.controlId}"
==
"2"
)
{
if
(
$
(
this
).
is
(
":checked"
))
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
{
var
array
=
"${question.condRequiredAnswer}"
.
split
(
","
);
var
judgeDisable
=
true
;
for
(
let
i
in
array
)
{
if
(
$
(
"#"
+
array
[
i
]).
is
(
":checked"
))
{
judgeDisable
=
false
;
break
;
}
}
if
(
judgeDisable
)
{
$
(
"#${question.questionId}"
).
val
(
''
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
true
);
}
}
}
else
if
(
"${question.controlId}"
==
"3"
||
"${question.controlId}"
==
"4"
||
"${question.controlId}"
==
"6"
)
{
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
"#${question.questionId}"
).
attr
(
"disabled"
,
false
);
}
else
if
(
"${question.controlId}"
==
"5"
)
{
}
else
if
(
"${question.controlId}"
==
"5"
)
{
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
$
(
".${question.questionId}"
).
attr
(
"disabled"
,
false
);
...
...
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