You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2010/02/12 10:45:05 UTC
svn commit: r909312 -
/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
Author: jleroux
Date: Fri Feb 12 09:45:05 2010
New Revision: 909312
URL: http://svn.apache.org/viewvc?rev=909312&view=rev
Log:
A patch from Sascha Rodekamp "Allow to quit a layered lookup with Esc key" (https://issues.apache.org/jira/browse/OFBIZ-3451) - OFBIZ-3451
Modified:
ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
Modified: ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js?rev=909312&r1=909311&r2=909312&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Fri Feb 12 09:45:05 2010
@@ -151,13 +151,6 @@
/*************************************
* Fieldlookup Class & Methods
*************************************/
-
-//init KeyListener
-window.onload = function () {
- //Observe
- Event.observe(document, "keypress", key_event);
-}
-
//if ESC is pressed, remove draged portlet + hoverDiv
function key_event(evt) {
if (evt.keyCode == 27) {
@@ -210,6 +203,7 @@
this.position = position;
this.createElement();
+ Event.observe(document, "keypress", key_event);
Event.observe(document, "mousedown", close_on_click);
CURRENT_LOOKUP = this;
},
@@ -423,6 +417,7 @@
this.position = position;
this.createElement();
+ Event.observe(document, "keypress", key_event);
Event.observe(document, "mousedown", close_on_click);
CURRENT_LOOKUP = this;
},