svn commit: r1851885 - in /ofbiz: ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1851885 - in /ofbiz: ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml

jleroux@apache.org
Author: jleroux
Date: Wed Jan 23 07:14:21 2019
New Revision: 1851885

URL: http://svn.apache.org/viewvc?rev=1851885&view=rev
Log:
Fixed: Implemented: Navigate from a domain to another with automated signed in
authentication
(OFBIZ-10307)

Non functional change

Removes now useless "webappName" var after I put in the SecuredUserLoginId
cookies.

Thanks: Michael for spotting it in OFBIZ-10814

Modified:
    ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js
    ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml

Modified: ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js?rev=1851885&r1=1851884&r2=1851885&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js (original)
+++ ofbiz/ofbiz-framework/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js Wed Jan 23 07:14:21 2019
@@ -1323,7 +1323,7 @@ function submitPagination(obj, url) {
         }
     }
 }
-function loadJWT(webAppName) {
+function loadJWT() {
     var JwtToken = "";
     jQuery.ajax({
         url: "loadJWT",
@@ -1340,9 +1340,9 @@ function loadJWT(webAppName) {
     return JwtToken;
 }
 
-function sendJWT(webAppName, targetUrl) {
+function sendJWT(targetUrl) {
     var redirectUrl = targetUrl;
-    var jwtToken = loadJWT(webAppName);
+    var jwtToken = loadJWT();
     if (jwtToken != null && jwtToken != "") {
         jQuery.ajax({
             url: targetUrl,

Modified: ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml?rev=1851885&r1=1851884&r2=1851885&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml Wed Jan 23 07:14:21 2019
@@ -435,7 +435,7 @@ under the License.
         <!-- ***   Layered-modal  *** -->
         <!-- ************************ -->
         <actions>
-            <set field="targetUrl" value="javascript:sendJWT('${webappName}', 'https://demo-trunk.ofbiz.apache.org/content/control/main')"/>
+            <set field="targetUrl" value="javascript:sendJWT('https://demo-trunk.ofbiz.apache.org/content/control/main')"/>
         </actions>
         <field name="emptyField0" title=" "><display/></field>
         <field name="newExample" title=" " widget-area-style="smallSubmit" position="1">