File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -853,5 +853,10 @@ app.SearchFilter.DateRangePicker = (function () {
853853
854854 $ ( document ) . ready ( function ( ) {
855855 window . app . init ( $ ( 'body' ) ) ;
856+
857+ $ ( '#customerDuplicatesMerge' ) . on ( 'click' , function ( ) {
858+ const duplicateIds = $ ( '#customerDuplicatesMerge' ) . data ( 'duplicate-ids' ) ;
859+ new window . top . pimcore . plugin . objectmerger . panel ( duplicateIds [ 0 ] , duplicateIds [ 1 ] ) ;
860+ } ) ;
856861 } ) ;
857862} ) ( jQuery ) ;
Original file line number Diff line number Diff line change 3636 <tbody id =" customerduplicates_{{ duplicate .getDuplicateCustomers [0 ].getId() }}_{{ duplicate .getDuplicateCustomers [1 ].getId() }}" class =" js-duplicates-item duplicates-item" >
3737 <tr >
3838 <td colspan =" 99" >
39- <a class =" btn btn-primary btn-xs pull-right" onClick = " new window.top.pimcore.plugin.objectmerger.panel( {{ duplicate .getDuplicateCustomers [0 ].getId() }}, {{ duplicate .getDuplicateCustomers [1 ].getId() }}); " >
39+ <a class =" btn btn-primary btn-xs pull-right" id = " customerDuplicatesMerge " data-duplicate-ids = ' [ {{ duplicate .getDuplicateCustomers [0 ].getId() }},{{ duplicate .getDuplicateCustomers [1 ].getId() }}] ' >
4040 {{ ' cmf_duplicates_merge' | trans({}, ' admin' ) }}
4141 </a >
4242 {% if(not app .request .get (' declined' )) %}
6565 {% endfor %}
6666 </tr >
6767 {% endfor %}
68+
6869 </tbody >
6970 {% endfor %}
7071
7475 {{ include (' @PimcoreCustomerManagementFramework/admin/partial/pagination/default.html.twig' ) }}
7576 </div >
7677 </div >
77-
78-
7978{% endblock %}
You can’t perform that action at this time.
0 commit comments