diff options
| author | hartmut <noreply@maennchen1.de> | 2017-05-31 08:51:31 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-05-31 08:51:31 +0000 |
| commit | cf5a71b778233df461bfec53669e307a62dcdddd (patch) | |
| tree | 6c96cb24e9c5f6e6e6b3922ea19ffdc34d0fbe99 /views/mods/mod_productvariants | |
| parent | 7a9fa53b6dbfcb4519d92ae3e35bcee11f2346f1 (diff) | |
post_id speichern
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6297 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productvariants')
| -rw-r--r-- | views/mods/mod_productvariants/admin_edit.phtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index f55bc9f..94a577d 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -185,7 +185,7 @@ $href = wp_get_attachment_image_src($b['post_id'], Array(25, 25));
?>
<a class="<?php echo ((in_array($file2, explode(",", $vari['pic'])))?'mark':''); ?> pic" id="<?php echo $file2; ?>"
- onclick="return wpsg_vp_vari_setPic(this, <?php echo $k; ?>, <?php echo $kv; ?>, '<?php echo $file2; ?>', <?php echo $j; ?>);">
+ onclick="return wpsg_vp_vari_setPic(this, <?php echo $k; ?>, <?php echo $kv; ?>, '<?php echo $file2; ?>', <?php echo $j; ?>, <?php echo $b['post_id']; ?>);">
<img src="<?php echo $href[0]; ?>" alt="" width="25px" height="25px"/>
</a>
<?php } ?>
@@ -243,7 +243,7 @@ <script type="text/javascript">/* <![CDATA[ */
- function wpsg_vp_vari_setPic(htmlElement, var_id, vari_id, pic, pic_index)
+ function wpsg_vp_vari_setPic(htmlElement, var_id, vari_id, pic, pic_index, post_id)
{
<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
@@ -259,6 +259,8 @@ var_id: var_id,
vari_id: vari_id,
iid: iid,
+ pic_index: pic_index,
+ post_id: post_id,
pic: pic
},
success: function(data) {
|
