summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2020-09-08 04:58:55 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2020-09-08 04:58:55 +0000
commita92095d9cc7918c10d66ef3f21e493da9a46cab3 (patch)
treef658f5e46125b21f7e8b0c6a7a8c6bb5cc9a49f6 /views/admin
parent0c64a14d147f0f445d1c5786962302fb4d186074 (diff)
- Checkbox InnerEU in Versandzonenverwaltung lässt sich wieder für alle speichern
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7760 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/versandzonen_list.phtml12
1 files changed, 5 insertions, 7 deletions
diff --git a/views/admin/versandzonen_list.phtml b/views/admin/versandzonen_list.phtml
index 37f12a5..7134534 100644
--- a/views/admin/versandzonen_list.phtml
+++ b/views/admin/versandzonen_list.phtml
@@ -28,7 +28,9 @@
</div>
</td>
<td class="col_innereu">
- <input class="wpsg_innereu" <?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
+ <input class="wpsg_innereu"
+ data-url="<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id'])); ?>"
+ <?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
</td>
<td class="col_aktion">
@@ -67,7 +69,7 @@
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
});
- </script>
+ </script>
</td>
</tr>
<?php } ?>
@@ -83,11 +85,7 @@
var checked = "0"; if (jQuery(this).prop("checked")) checked = "1";
jQuery.ajax( {
- url: '<?php
-
- echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id']));
-
- ?>',
+ url: jQuery(this).data('url'),
data: {
field: 'innereu',
vz_id: jQuery(this).attr("id").substr(8),