Skip to content

Commit

Permalink
fix(condition): duplicated JS function
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Aug 7, 2020
1 parent 8810cd6 commit acbe985
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -894,17 +894,6 @@ function plugin_formcreator_changeGlpiObjectItemType() {
});
}

function plugin_formcreator_toggleCondition(field, itemtype) {
var form = $(field).closest('form');
if (field.value == '1') {
form.find('.plugin_formcreator_logicRow').hide();
} else {
if (form.find('.plugin_formcreator_logicRow').length < 1) {
plugin_formcreator_addEmptyCondition(field, itemtype);
}
form.find('.plugin_formcreator_logicRow').show();
}
}

// === FIELDS ===

Expand Down

0 comments on commit acbe985

Please sign in to comment.