]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 27 Oct 2017 20:35:04 +0000 (22:35 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Jul 2019 05:00:43 +0000 (07:00 +0200)
- it is a jQuery-powered form, so need to take jQuery's submit() version instead
  of DOM document's

Signed-off-by: Roland Häder <roland@mxchange.org>
web/WEB-INF/templates/widgets/locale_change_widget.tpl

index 2913053054074e1507e123091f95fbf18147e200..e714b82db3459aa8da68e71ccae45b4197930fdb 100644 (file)
@@ -9,7 +9,7 @@
        <h:form id="form-change-locale">
                <p:panelGrid columns="2" layout="grid">
                        <h:panelGroup layout="block">
-                               <p:selectOneMenu value="#{localizationController.localeCode}" onchange="submit()">
+                               <p:selectOneMenu value="#{localizationController.localeCode}" onchange="$('#form-change-locale').submit()">
                                        <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" itemDisabled="true" />
                                        <f:selectItems value="#{localizationController.supportedLocales}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
                                </p:selectOneMenu>