mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
N°3750 Allow to detect when ready scripts are done processing
In iTop 3.0.0 there are sometimes lots of scripts launched after domReady, so we needed something to know when those scripts are done !
This commit is contained in:
@@ -235,4 +235,18 @@ EOF
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
protected function GetReadyScriptsStartedTrigger(): ?string
|
||||
{
|
||||
return <<<JS
|
||||
$("body").data("ready-scripts", "start");
|
||||
JS;
|
||||
}
|
||||
|
||||
protected function GetReadyScriptsFinishedTrigger(): ?string
|
||||
{
|
||||
return <<<JS
|
||||
$("body").data("ready-scripts", "done");
|
||||
JS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user