Skip to content

Commit

Permalink
Fix redirections in Admin Console
Browse files Browse the repository at this point in the history
Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
  • Loading branch information
OndroMih committed Apr 22, 2023
1 parent f9fc011 commit d64fe7d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Expand Up @@ -35,7 +35,7 @@
getUIComponent(clientId="$pageSession{tableRowGroupId}", component=>$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="$attribute{tableRowGroup}" selectedRows=>$attribute{selectedRows});
gf.undeploy(selectedRows="${selectedRows}" );
gf.navigate(page="#{listPageLink}");
gf.redirect(page="#{listPageLink}");
/>
</sun:button>
<sun:button id="button2" text="$resource{i18n.button.Enable}" rendered="#{pageSession.onlyDASExist}" disabled="#{true}" primary="#{false}"
Expand Down
19 changes: 13 additions & 6 deletions appserver/admingui/common/src/main/resources/js/adminjsf.js
Expand Up @@ -19,12 +19,19 @@
* Common utility
*/

require(['webui/suntheme/field']);
require(['webui/suntheme/dropDown']);
require(['webui/suntheme/upload']);
require(['webui/suntheme/jumpDropDown']);
require(['webui/suntheme/hyperlink']);
require(['webui/suntheme/props']);
if (require) {
/* Don't load dependencies eagerly if require is not available.
* Allows using adminjsf without loading dojo for the require function,
* in cases when only basic functionality is needed. For example in removeFrame.jsf.
*/

require(['webui/suntheme/field']);
require(['webui/suntheme/dropDown']);
require(['webui/suntheme/upload']);
require(['webui/suntheme/jumpDropDown']);
require(['webui/suntheme/hyperlink']);
require(['webui/suntheme/props']);
}

function checkPSWInCommon(secureAdminEnabled, id1, id2, alert1, alert2, confirmMessage) {
var ps1 = document.getElementById(id1);
Expand Down

0 comments on commit d64fe7d

Please sign in to comment.