summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
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),