* [perf story #59018] Add updateProgress function for export for gantt wg.

This commit is contained in:
wangyidong
2024-07-15 10:04:18 +08:00
committed by 谢杞钰
parent bd73586e4e
commit 5db740c828
+14
View File
@@ -21,3 +21,17 @@ function getRemoteScript(url, successCallback, errorCallback)
script.src = url;
document.head.appendChild(script);
}
/**
* Update export progress.
*
* @param int $progress
* @access public
* @return void
*/
function updateProgress(progress)
{
let progressText = ganttLang.exporting;
if(progress < 1) progressText += Math.floor(progress * 100) + '%';
$('#mainContent').attr('data-loading', progressText);
}