Skip to content

Commit

Permalink
Make dismiss button work
Browse files Browse the repository at this point in the history
  • Loading branch information
pingiun committed Jan 26, 2025
1 parent 46f108f commit f42f692
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 104 deletions.
5 changes: 5 additions & 0 deletions assets/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ $(document).ready(function() {
documentActions(formSelector, '#nothing');
});

$('#move-cancel').click(function(e) {
documentActions("#null", "#null");
});

});

function documentActions(formSelector, buttonSelector) {
debugger;
$('.document-action-forms form:not(' + formSelector + ')').hide();
$('.document-folder-actions a:not(' + buttonSelector + ')').removeClass('active');
$(buttonSelector).toggleClass('active');
Expand Down
101 changes: 0 additions & 101 deletions assets/script/documents.js

This file was deleted.

2 changes: 0 additions & 2 deletions assets/script/vendor/jquery.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion templates/user/documents.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<i class="fa fa-fw fa-arrow-right"></i>
Verplaatsen
</button>
<a class="button button-secondary" style="display: inline-block" onclick="documentActions('#null', '#null')">
<a id="move-cancel" class="button button-secondary" style="display: inline-block">
<i class="fa fa-fw fa-times"></i>
Annuleren
</a>
Expand Down

0 comments on commit f42f692

Please sign in to comment.