From: Lukas Reschke Date: Sun, 28 Apr 2013 21:25:58 +0000 (+0200) Subject: Move onclick handler X-Git-Tag: v6.0.0alpha2~829^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6cf6103ed2d8fcb70d5340be583622f32ff08913;p=nextcloud-server.git Move onclick handler --- diff --git a/apps/files/js/files.js b/apps/files/js/files.js index a2d17fae7d2..4010c66593f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -115,6 +115,11 @@ $(document).ready(function() { return false; }); + // Trigger cancelling of file upload + $('#uploadprogresswrapper stop').on('click', function() { + Files.cancelUploads(); + }); + // Show trash bin $('#trash a').live('click', function() { window.location=OC.filePath('files_trashbin', '', 'index.php'); diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 69fcb94e681..66866ee8b43 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -46,7 +46,6 @@