svn commit: r1036662 - /ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js

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

svn commit: r1036662 - /ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js

jleroux@apache.org
Author: jleroux
Date: Thu Nov 18 22:43:55 2010
New Revision: 1036662

URL: http://svn.apache.org/viewvc?rev=1036662&view=rev
Log:
Related to OFBIZ-3933

This to prevent issues and set layer as default if someone calls ConstructLookup directly (ie not by using a widget form lookup or using <@htmlTemplate.lookupField in a ftl template. This should not be but I crossed an issue due to this kind of thing in a custom app...). Can't hurt anyway...

Modified:
    ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js

Modified: ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js?rev=1036662&r1=1036661&r2=1036662&view=diff
==============================================================================
--- ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/branches/jquery/framework/images/webapp/images/fieldlookup.js Thu Nov 18 22:43:55 2010
@@ -177,6 +177,9 @@ function initiallyCollapseDelayed() {
 function ConstructLookup(requestUrl, inputFieldId, dialogTarget, dialogOptionalTarget, formName, width, height, position, modal, ajaxUrl, showDescription, presentation) {
     
     // add the presentation attribute to the request url to let the request know which decorator should be loaded
+    if(!presentation) {
+      var presentation = "layer"
+    }    
     requestUrl = requestUrl + "?presentation=" + presentation;
     
     // create Link Element with unique Key