|
@@ -555,7 +555,7 @@
|
|
|
|
|
|
//Browser detection
|
|
|
//TODO: REMOVE DEBUG
|
|
|
- let isMobile = false; //window.mobilecheck();
|
|
|
+ let isMobile = true; //window.mobilecheck();
|
|
|
let isChromium = window.chrome;
|
|
|
let isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
|
let isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
@@ -992,7 +992,7 @@
|
|
|
//Print folder not found exception
|
|
|
$("#folderList").show();
|
|
|
$("#folderList").html(`<div class="ui basic segment">
|
|
|
- <div class="ui header">
|
|
|
+ <div class="ui header themed">
|
|
|
<i class="remove icon"></i> <span>${applocale.getString("message/folderCannotOpen","This Folder Cannot Be Opened")}</span>
|
|
|
<div class="sub header" style="margin-top:12px;">${applocale.getString("message/folderCannotOpen/codedesc","The server return the following error message:")} <br><code>${data.error.toUpperCase()}</code><br>
|
|
|
${new Date().toLocaleString(undefined, {year: 'numeric', month: '2-digit', day: '2-digit', weekday:"long", hour: '2-digit', hour12: false, minute:'2-digit', second:'2-digit'})}</div>
|
|
@@ -4452,11 +4452,13 @@
|
|
|
if ($(this).attr("taskID") == uuid){
|
|
|
//Update this progress bar
|
|
|
$(this).find(".bar").css("width",progress + "%");
|
|
|
- $(this).find(".percentage").text(progress.toFixed(1) + "%");
|
|
|
+ $(this).find(".progress.percentage").text(progress.toFixed(1) + "%");
|
|
|
+ console.log(progress.toFixed(1) + "%");
|
|
|
if (progress == 100){
|
|
|
//When progress = 100 and the server is not response with 200,
|
|
|
//That means the upload has finish and server is processing the upload
|
|
|
$(this).find(".progress").addClass("active");
|
|
|
+ $(this).find(".progress.percentage").hide();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -4694,11 +4696,12 @@
|
|
|
if ($(this).attr("taskID") == taskUUID){
|
|
|
//Update this progress bar
|
|
|
$(this).find(".bar").css("width",progress + "%");
|
|
|
-
|
|
|
+ $(this).find(".progress.percentage").text(progress.toFixed(1) + "%");
|
|
|
if (progress == 100){
|
|
|
//When progress = 100 and the server is not response with 200,
|
|
|
//That means the upload has finish and server is processing the upload
|
|
|
- $(this).find(".progress").addClass("indeterminate");
|
|
|
+ $(this).find(".progress").addClass("active");
|
|
|
+ $(this).find(".progress.percentage").hide();
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -4717,7 +4720,7 @@
|
|
|
$(this).find(".uploadTaskRemoveIcon").show();
|
|
|
$(this).addClass("ended");
|
|
|
//Update 15-11-2020
|
|
|
- //Remove this taskbar after 3 seconds to prevent lags during > 2000 uploads
|
|
|
+ //Remove this taskbar after 1 second to prevent lags during > 2000 uploads
|
|
|
$.when($(this).delay(1000).fadeOut("fast")).then(function(){
|
|
|
$(this).remove();
|
|
|
updateUploadFileCount();
|
|
@@ -4815,7 +4818,7 @@
|
|
|
//Clear current folderlist
|
|
|
$("#folderList").show();
|
|
|
$("#folderList").html(`<div class="ui basic segment">
|
|
|
- <div class="ui header">
|
|
|
+ <div class="ui header themed">
|
|
|
<i class="arrow up icon"></i> <span>${applocale.getString("func/search/typeToStart", "Type to Start Search")}</span>
|
|
|
<div class="sub header" style="margin-top:12px;">${applocale.getString("func/search/tip1", "Type something in the search bar to start searching.")}<br>
|
|
|
${applocale.getString("func/search/tip2", `Start wildcard matching with "/" (slash) and your wildcard string (e.g. /*.mp3)`)}</div>
|