From fd69cb567b83d79e9ee47e734e700cd95d0eb9e8 Mon Sep 17 00:00:00 2001 From: hartmut Date: Mon, 28 Aug 2017 13:16:53 +0000 Subject: Produktvarianten mit Post-ID, Zubehörprodukte-Dialog Schließen korrigiert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6427 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productvariants/admin_edit.phtml | 6 ++++-- views/produkt/select.phtml | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 0d78cd9..1c403c1 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -184,7 +184,7 @@ $file2 = $b['basenameori']; $href = wp_get_attachment_image_src($b['post_id'], Array(25, 25)); ?> - pic" id="" + pic" id="" data-pid="" onclick="return wpsg_vp_vari_setPic(this, , , '', , );"> @@ -203,9 +203,10 @@ wpsg_vp_ajaxloading_show(); var wpsg_reorder = jQuery(this).sortable('toArray'); + var wpsg_postids = jQuery(this).sortable('toArray', {attribute: 'data-pid'}); + alert(wpsg_postids + ' ' + wpsg_reorder); var iid = jQuery('#productvariation_iid_' + ).val(); //alert('iid: ' + iid); - jQuery.ajax( { url: 'wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_productvariants&cmd=wpsg_var_setImageOrder&noheader=1&edit_id=view['product_id']; ?>', @@ -214,6 +215,7 @@ 'var_id': , 'vari_id': , 'iid': iid, + 'wpsg_postids': wpsg_postids, 'wpsg_reorder': wpsg_reorder }, success: function(data) { diff --git a/views/produkt/select.phtml b/views/produkt/select.phtml index 0d2ca13..c57cf97 100644 --- a/views/produkt/select.phtml +++ b/views/produkt/select.phtml @@ -132,9 +132,8 @@ insertProdukt(); - //jQuery('#wpsg_mod_relatedproducts_dialog').html('').dialog('close'); - jQuery('#wpsg_mod_relatedproducts_dialog').modal( { } ).modal('hide'); - + //jQuery('#wpsg_mod_relatedproducts_dialog').modal( { } ).modal('hide'); + jQuery("#wpsg_mod_relatedproducts_dialog .close").click() return false; } // function insertProduktClose() -- cgit v1.2.3