stop event propagation when clicking the delete doc/folder button in the list view

This commit is contained in:
Uwe Steinmann 2019-10-16 17:57:56 +02:00
parent 297d5d1391
commit a6ef05b22b

View File

@ -1849,6 +1849,7 @@ $(function() {
$(document).ready(function () {
// $('.delete-document-btn').click(function(ev) {
$('body').on('click', 'a.delete-document-btn', function(ev){
ev.stopPropagation();
id = $(ev.currentTarget).attr('rel');
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
msg = $(ev.currentTarget).attr('msg');
@ -1922,6 +1923,7 @@ $(function() {
$(document).ready(function () {
// $('.delete-folder-btn').click(function(ev) {
$('body').on('click', 'a.delete-folder-btn', function(ev){
ev.stopPropagation();
id = $(ev.currentTarget).attr('rel');
confirmmsg = $(ev.currentTarget).attr('confirmmsg');
msg = $(ev.currentTarget).attr('msg');