[ofbiz-framework] branch trunk updated: Fixed: Page selection is not working correctly in the lookup-dialog (#287)

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

[ofbiz-framework] branch trunk updated: Fixed: Page selection is not working correctly in the lookup-dialog (#287)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d6eaef2  Fixed: Page selection is not working correctly in the lookup-dialog (#287)
d6eaef2 is described below

commit d6eaef2f9bf4935e786defc934f7944b8c8bbe56
Author: wpaetzold <[hidden email]>
AuthorDate: Mon Mar 15 13:38:28 2021 +0100

    Fixed: Page selection is not working correctly in the lookup-dialog (#287)
   
    (OFBIZ-12163)
---
 themes/common-theme/webapp/common/js/util/fieldlookup.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/themes/common-theme/webapp/common/js/util/fieldlookup.js b/themes/common-theme/webapp/common/js/util/fieldlookup.js
index c775e06..47b31f4 100644
--- a/themes/common-theme/webapp/common/js/util/fieldlookup.js
+++ b/themes/common-theme/webapp/common/js/util/fieldlookup.js
@@ -562,6 +562,15 @@ var ButtonModifier = function(lookupDiv) {
                 onChangeEvent.apply(this);
             }
         });
+
+        var navPagersInput = jQuery("#" + lookupDiv + " .nav-pager input");
+        jQuery.each(navPagersInput, function(navPager) {
+            var onChangeEvent = navPagersInput[navPager].onchange;
+            navPagersInput[navPager].onchange = function(){
+                this.setAttribute("data-lookupajax", "true");
+                onChangeEvent.apply(this);
+            }
+        });
     }
 
     function _modifyResultTable() {