[ 
https://issues.apache.org/jira/browse/OFBIZ-4380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093401#comment-13093401
 ] 

Leon commented on OFBIZ-4380:
-----------------------------

1. You can put an alert("blah...") sentence into "lookup_onKeyEnter" function, 
then you will find that this function is called multi times if there're multi 
lookup dialog opened. In some situation, e.g. slow network speed, messed 
execute sequence of multi bound "keypress" function to html.document, you will 
get the wrong lookup page in your last layered dialog.

2. Maybe Ctrl+F5 needed to reload the js. 
Technically, as per the original sentence 
jQuery(".ui-widget-overlay").live("click", function() {  jQuery("#" + 
lookupId).dialog("close"); } );, it finds all div which has "ui-widget-overlay" 
classname and trigger "click" event for each of them, consequently, it will 
close all lookup dialog. Besides that, since the framework creates 
"ui-widget-overlay" div for each lookup field, that means, if there're 100 
lookup fields in a page, then the "click" event will be trigger 100 times.


> improve the behavior of nested lookup dialogs (ajax mode) 
> ----------------------------------------------------------
>
>                 Key: OFBIZ-4380
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4380
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4380-fieldlookup.js.patch
>
>
> nested lookup dialogs: in one lookup dialog, it opens another lookup dialog.
> trivial improvements:
> 1. "enter" event only occurs to lookup dialog itself
> 2. if mouse click out side the lookup dialog, only current activated dialog 
> closes

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to