Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DDA
dda-wizard
Commits
693c6966
Commit
693c6966
authored
Aug 09, 2016
by
Hellmich, Christoph
Browse files
Minor changes
parent
9390b1cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/scripts/app/wizardEditor/wizardEditor.controller.js
View file @
693c6966
...
...
@@ -144,7 +144,6 @@ angular.module('ddaApp')
}
form
.
getElements
(
step
.
id
).
then
(
function
(
elements
)
{
console
.
log
(
elements
);
$scope
.
myForm
.
schema
.
fields
=
elements
;
$scope
.
selectedStep
=
step
;
deletingFieldWatcher
(
false
);
...
...
@@ -170,7 +169,6 @@ angular.module('ddaApp')
counter
++
;
if
(
counter
===
fields
.
length
)
{
loadFields
(
$scope
.
selectedStep
);
console
.
log
(
'
loadFields
'
);
}
}
...
...
@@ -179,8 +177,7 @@ angular.module('ddaApp')
element
.
step
=
{
'
id
'
:
$scope
.
selectedStep
.
id
};
console
.
log
(
element
);
element
.
formRow
=
i
;
if
(
!
element
.
id
)
{
form
.
addElement
(
element
).
then
(
count
);
...
...
src/main/webapp/scripts/components/wizardEditor/checkbox/checkbox-template.ng.html
View file @
693c6966
...
...
@@ -7,5 +7,4 @@
ng-model=
"form.data[field.schema.name]"
>
<span
ng-if=
"field.schema.nolabel"
>
{{ field.schema.displayName }}
</span>
</label>
<div
jsonify=
"form.data[field.schema.name] === 'true'"
></div>
</div>
src/main/webapp/scripts/components/wizardEditor/form.service.js
View file @
693c6966
...
...
@@ -2,17 +2,6 @@
angular
.
module
(
'
ddaApp
'
).
factory
(
'
form
'
,
function
(
Step
,
Element
)
{
function
buildElement
(
settings
,
formRow
,
stepId
,
id
)
{
return
{
'
id
'
:
id
,
'
settings
'
:
settings
,
'
formRow
'
:
formRow
,
'
step
'
:
{
'
id
'
:
stepId
}
};
}
function
getElements
(
stepId
)
{
var
elements
=
Step
.
elements
({
id
:
stepId
...
...
@@ -48,7 +37,6 @@ angular
}
var
service
=
{
buildElement
:
buildElement
,
getElements
:
getElements
,
addElement
:
addElement
,
updateElement
:
updateElement
,
...
...
Write
Preview
Supports
Markdown
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