Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge c4f0f2e into 3708d3f
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbegbie committed Nov 10, 2017
2 parents 3708d3f + c4f0f2e commit a3460b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions molo/surveys/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,4 @@ class LogicBlock(blocks.StructBlock):

class Meta:
icon = 'cogs'
label = 'Nested Logic'
12 changes: 12 additions & 0 deletions molo/surveys/static/js/survey-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,18 @@ $(function(){
});
$("#id_surveys_combinationrule_related-ADD").toggle();
});

if($("#id_surveys_combinationrule_related-FORMS").children("li").length > 0){
$("#id_surveys_combinationrule_related-ADD").toggle();

var deleteButton = $("#id_surveys_combinationrule_related-FORMS")
.children("li")
.find('button[title^="Delete"]')

deleteButton.click(function () {
$("#id_surveys_combinationrule_related-ADD").toggle();
});
}
}
addHideToRuleCombinationFunctionality();

Expand Down

0 comments on commit a3460b8

Please sign in to comment.