* [perf story #59018] Add updateProgress function for export for gantt wg.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user