mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Move onclick handler
This commit is contained in:
parent
51a1f41225
commit
6cf6103ed2
2 changed files with 5 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
<div id="uploadprogressbar"></div>
|
||||
<input type="button" class="stop" style="display:none"
|
||||
value="<?php p($l->t('Cancel upload'));?>"
|
||||
onclick="javascript:Files.cancelUploads();"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue