Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
StiftungAusNachlass committed May 5, 2023
1 parent 6cda74b commit c8ff2f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ developers.
Custom Mask Splitter to hide fields in Editor, depending on another fields value. Right now, the triggerfield must be a custom-data-type-dante or a boolean-field

This is a plugin for [fylr](https://documentation.fylr.cloud/docs) with MaskSplitter `EditorVisibilityController`.
For easydb5-instances use [easydb-editor-field-visibility](https://github.com/programmfabrik/easydb-editor-field-visibility-plugin).


<img src="https://raw.githubusercontent.com/programmfabrik/fylr-editor-field-visibility/master/src/images/example1.gif" />
<img src="https://raw.githubusercontent.com/programmfabrik/fylr-editor-field-visibility/master/src/images/example2.gif" />
Expand Down
14 changes: 7 additions & 7 deletions src/webfrontend/EditorFieldVisibility.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,16 @@ class EditorFieldVisibility extends CustomMaskSplitter
# if dante-dropdown-mode
if node.length == 0
node = CUI.dom.matchSelector(actionField.element, ".dante_InlineSelect")
CUI.Events.trigger
type: 'data-changed'
node: node[0]
bubble: true
#CUI.Events.trigger
# type: 'data-changed'
# node: node[0]
# bubble: true

# call plugins, which use syntax from commons.coffee (customPluginEditorLayout)
if node
CUI.Events.registerEvent
type: "custom-deleteDataFromPlugin"
bubble: false
#CUI.Events.registerEvent
# type: "custom-deleteDataFromPlugin"
# bubble: false
CUI.Events.trigger
type: 'custom-deleteDataFromPlugin'
node: node[0]
Expand Down

0 comments on commit c8ff2f7

Please sign in to comment.