Author: jleroux
Date: Sun Jan 6 13:51:34 2019
New Revision: 1850552
URL:
http://svn.apache.org/viewvc?rev=1850552&view=revLog:
Improved: Themes can't be changed in webpos
(OFBIZ-10767)
Following this discussion on dev ML I decided to test it on Ubuntu in my Windows
7 VM and it works there.
Just that you don't automatically get back to the webpos page when changing theme
Modified:
ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml?rev=1850552&r1=1850551&r2=1850552&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/webapp/webpos/WEB-INF/controller.xml Sun Jan 6 13:51:34 2019
@@ -109,6 +109,20 @@
<response name="error" type="none" />
</request-map>
+ <!-- Change theme-->
+ <request-map uri="selectTheme">
+ <security https="true" auth="true"/>
+ <event type="service" invoke="setUserPreference"/>
+ <response name="success" type="request" value="setSessionTheme"/>
+ <response name="error" type="request" value="main"/>
+ </request-map>
+ <request-map uri="setSessionTheme">
+ <security https="true" auth="true"/>
+ <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionTheme"/>
+ <response name="success" type="view-last" value="main"/>
+ <response name="error" type="request" value="main"/>
+ </request-map>
+
<!-- Request Mappings -->
<request-map uri="view">
<security https="false" auth="false"/>