Skip to content
Snippets Groups Projects
Commit 5edad65c authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Remove problematic function

It's not needed anymore since the new buttons in the search bar have
been removed anyway.
parent 2686117b
No related branches found
No related tags found
1 merge request!32Reload Edit Mode toolbox after creating RTs and Properties
Pipeline #8377 passed with warnings
......@@ -1344,21 +1344,6 @@ var edit_mode = new function() {
this.init_new_buttons = function(app) {
var new_buttons = $('.caosdb-f-edit-panel-new-button');
// Show a button "+" to create a new property when filter results in empty list.
// TODO This is the culprit for the hidden filter bars!
new_buttons.filter('.caosdb-f-hide-on-empty-input').parent().each(function(index) {
var button = $(this);
button.hide();
var input = button.parent().find("input");
input.on("input", function(e) {
if (input.val() == '') {
button.fadeOut();
} else {
button.fadeIn();
}
});
});
// handler for new property button
// calls newEntity transition of state machine
new_buttons.filter('.new-property').click(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment