* fix ai stuff relied on js().
This commit is contained in:
@@ -30,7 +30,8 @@ $inputInject = function()
|
||||
|
||||
$this->app->loadLang('ai');
|
||||
|
||||
js(<<< JAVASCRIPT
|
||||
h::globalJS(<<< JAVASCRIPT
|
||||
(() => {
|
||||
window.injectToInputElement = (inputName, data, index, tries = 0) =>
|
||||
{
|
||||
let name = inputName;
|
||||
@@ -178,6 +179,7 @@ $inputInject = function()
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
JAVASCRIPT);
|
||||
|
||||
/* TODO: handle prompt audit, see original ../view/inputinject.html.php. */
|
||||
|
||||
@@ -3,4 +3,4 @@ declare(strict_types=1);
|
||||
|
||||
namespace zin;
|
||||
|
||||
js("requestAnimationFrame(() => setTimeout(() => openUrl(`{$formLocation}`), 1000));");
|
||||
h::globalJS("requestAnimationFrame(() => setTimeout(() => openUrl(`{$formLocation}`), 1000));");
|
||||
|
||||
Reference in New Issue
Block a user