Add UIBlocks to twig

This commit is contained in:
Eric
2021-01-18 15:27:20 +01:00
parent ace0657b7d
commit 79d0b9543a
2 changed files with 8 additions and 8 deletions

View File

@@ -208,7 +208,7 @@ EOF
}
}
$oQuerySubmit = ButtonFactory::MakeForPrimaryAction(
$oQuerySubmit = ButtonUIBlockFactory::MakeForPrimaryAction(
Dict::S('UI:Button:Evaluate'),
null,
null,
@@ -323,7 +323,7 @@ EOF
$oSyntaxErrorPanel->AddSubBlock(new Html($sSyntaxErrorText));
$sEscapedExpression = utils::EscapeHtml(addslashes($sFixedExpression));
$oUseSuggestedQueryButton = ButtonFactory::MakeForDestructiveAction('Use this query');
$oUseSuggestedQueryButton = ButtonUIBlockFactory::MakeForDestructiveAction('Use this query');
$oUseSuggestedQueryButton->SetOnClickJsCode(<<<JS
let \$oQueryTextarea = $('textarea[name=expression]');
\$oQueryTextarea.val('$sEscapedExpression').focus();