From 0124809a42dd72d9c6d9b550687fa0013a88b6da Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 1 Feb 2012 15:33:12 +0100 Subject: prevent sharing from making aditional http requests while scanning additional requests to the server can block feedback of scannning depending on server configuration --- apps/files_sharing/js/share.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 4457dddbe15..d01a07447a6 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -2,6 +2,7 @@ $(document).ready(function() { var shared_status = {}; if (typeof FileActions !== 'undefined') { FileActions.register('all', 'Share', function(filename) { + if (scanFiles.scanning){return;}//workaround to prevent aditional http request block scanning feedback var icon; var file = $('#dir').val()+'/'+filename; if(shared_status[file]) -- cgit v1.2.3