Commit dade8d4b authored by Hellmich, Christoph's avatar Hellmich, Christoph
Browse files

Minor changes

parent 9390b1cd
......@@ -145,7 +145,6 @@
<script src="scripts/app/wizardEditor/wizardEditor-step-delete-dialog.controller.js"></script>
<script src="scripts/app/wizardEditor/wizardEditor-wizard-dialog.controller.js"></script>
<script src="scripts/app/wizardEditor/wizardEditor-wizard-delete-dialog.controller.js"></script>
<script src="scripts/components/wizardEditor/customElement/customElement.controller.js"></script>
<script src="scripts/components/wizardEditor/nextStep/nextStep.controller.js"></script>
<script src="scripts/components/wizardEditor/simpleConditional/simpleConditional-directive.js"></script>
<script src="scripts/components/wizardEditor/templateImporter/templateImporter.controller.js"></script>
......
......@@ -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);
......
......@@ -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>
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment