diff options
author | kondou <kondou@ts.unde.re> | 2013-04-18 18:28:03 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-07-10 02:34:00 +0200 |
commit | 2f11f56d323cc7a559ecc42f521083301479920e (patch) | |
tree | b886cc963f7550cb54da931416a4f3d58920fada /apps/files_trashbin/js | |
parent | 7ec6f3bde9ccaa7c53bf500fff222a7b25a4a44c (diff) | |
download | nextcloud-server-2f11f56d323cc7a559ecc42f521083301479920e.tar.gz nextcloud-server-2f11f56d323cc7a559ecc42f521083301479920e.zip |
Use !== and === in files_trashbin-app
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r-- | apps/files_trashbin/js/trash.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index 87dfea491e7..295bc695117 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -15,7 +15,7 @@ $(document).ready(function() { var row = document.getElementById(result.data.success[i].filename); row.parentNode.removeChild(row); } - if (result.status != 'success') { + if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('core', 'Error')); } }); @@ -42,7 +42,7 @@ $(document).ready(function() { var row = document.getElementById(result.data.success[i].filename); row.parentNode.removeChild(row); } - if (result.status != 'success') { + if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('core', 'Error')); } }); @@ -72,7 +72,7 @@ $(document).ready(function() { var rows = $(this).parent().parent().parent().children('tr'); for (var i = start; i < end; i++) { $(rows).each(function(index) { - if (index == i) { + if (index === i) { var checkbox = $(this).children().children('input:checkbox'); $(checkbox).attr('checked', 'checked'); $(checkbox).parent().parent().addClass('selected'); @@ -111,7 +111,7 @@ $(document).ready(function() { var row = document.getElementById(result.data.success[i].filename); row.parentNode.removeChild(row); } - if (result.status != 'success') { + if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('core', 'Error')); } }); @@ -137,7 +137,7 @@ $(document).ready(function() { var row = document.getElementById(result.data.success[i].filename); row.parentNode.removeChild(row); } - if (result.status != 'success') { + if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('core', 'Error')); } }); @@ -170,9 +170,9 @@ $(document).ready(function() { function processSelection(){ var selected=getSelectedFiles(); - var selectedFiles=selected.filter(function(el){return el.type=='file'}); - var selectedFolders=selected.filter(function(el){return el.type=='dir'}); - if(selectedFiles.length==0 && selectedFolders.length==0) { + var selectedFiles=selected.filter(function(el){return el.type === 'file'}); + var selectedFolders=selected.filter(function(el){return el.type === 'dir'}); + if(selectedFiles.length === 0 && selectedFolders.length === 0) { $('#headerName>span.name').text(t('files','Name')); $('#modified').text(t('files','Deleted')); $('table').removeClass('multiselect'); @@ -182,7 +182,7 @@ function processSelection(){ $('.selectedActions').show(); var selection=''; if(selectedFolders.length>0){ - if(selectedFolders.length==1){ + if(selectedFolders.length === 1){ selection+=t('files','1 folder'); }else{ selection+=t('files','{count} folders',{count: selectedFolders.length}); @@ -192,7 +192,7 @@ function processSelection(){ } } if(selectedFiles.length>0){ - if(selectedFiles.length==1){ + if(selectedFiles.length === 1){ selection+=t('files','1 file'); }else{ selection+=t('files','{count} files',{count: selectedFiles.length}); |