fixed hide logicJump in admin panel
This commit is contained in:
parent
7ad79c4882
commit
3b0af059d2
|
@ -32,7 +32,7 @@ var LogicJumpSchema = new Schema({
|
|||
'field begins static',
|
||||
'field !begins static',
|
||||
'field ends static',
|
||||
'field !ends static',
|
||||
'field !ends static'
|
||||
]
|
||||
},
|
||||
fieldA: {
|
||||
|
|
3
public/dist/application.js
vendored
3
public/dist/application.js
vendored
|
@ -2249,8 +2249,7 @@ angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormField
|
|||
|
||||
// LOGIC JUMP METHODS
|
||||
$scope.removeLogicJump = function (field_index) {
|
||||
var currField = $scope.myform.form_fields[field_index];
|
||||
currField.logicJump = {};
|
||||
$scope.myform.form_fields[field_index] = {};
|
||||
};
|
||||
|
||||
$scope.addNewLogicJump = function (field_index) {
|
||||
|
|
|
@ -315,13 +315,13 @@
|
|||
<div class="col-md-4 col-xs-12 field-input">{{ 'ADD_LOGIC_JUMP' | translate }}</div>
|
||||
<div class="col-md-8 col-xs-12 field-input">
|
||||
<label class="btn col-xs-5">
|
||||
<input type="radio" ng-checked="!!myform.form_fields[$index].logicJump.fieldA"
|
||||
<input type="radio" ng-checked="!!myform.form_fields[$index].logicJump.valueB"
|
||||
name="logicJumpYes{{field._id}}" ng-click="addNewLogicJump($index)"/>
|
||||
<span> {{ 'YES' | translate }}</span>
|
||||
</label>
|
||||
|
||||
<label class="btn col-xs-5 col-xs-offset-1">
|
||||
<input type="radio" ng-checked="!myform.form_fields[$index].logicJump.fieldA"
|
||||
<input type="radio" ng-checked="!myform.form_fields[$index].logicJump.valueB"
|
||||
name="logicJumpNo{{field._id}}" ng-click="removeLogicJump($index)"/>
|
||||
<span> {{ 'NO' | translate }}</span>
|
||||
</label>
|
||||
|
|
Loading…
Reference in a new issue