Code cleanup

This commit is contained in:
Molkobain
2021-10-11 18:00:33 +02:00
parent 2a32c5691b
commit 3f24b80043
2 changed files with 8 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ function DisplayPreferences($oP)
$oUICancelButton = ButtonUIBlockFactory::MakeForCancel();
$oUIToolbar->AddSubBlock($oUICancelButton);
$oUICancelButton->SetOnClickJsCode("window.location.href = '$sURL'");
// - Submit button
$oUISubmitButton = ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:Apply'), 'operation', 'apply_user_interface', true);
$oUIToolbar->AddSubBlock($oUISubmitButton);