Subversion Repositories wpShopGermany4

Rev

Rev 5825 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5825 Rev 6306
Line 61... Line 61...
61
 
61
 
62
	<script type="text/javascript">/* <![CDATA[ */
62
	<script type="text/javascript">/* <![CDATA[ */
63
 
63
 
64
	    function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
64
	    function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
65
 
65
 
-
 
66
		function wpsg_country_remove(land_id)
-
 
67
		{
-
 
68
 
-
 
69
			if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
-
 
70
 
-
 
71
			jQuery.ajax( {
-
 
72
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=remove&noheader=1',
-
 
73
				data: {
-
 
74
					land_id: land_id
-
 
75
				},
-
 
76
				success: function(data) {
-
 
77
											 
-
 
78
					if (data === "1") jQuery('#wpsg_laenderrow_' + land_id).remove();
-
 
79
					else alert(data);
-
 
80
					
-
 
81
				}
-
 
82
			} );
-
 
83
			
-
 
84
			return false;
-
 
85
 
-
 
86
		}
-
 
87
 
66
		function wpsg_country_add()
88
		function wpsg_country_add()
67
		{
89
		{
68
 
90
 
69
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
91
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
70
			jQuery('#Modal_wpsg_country_edit').modal('show');
92
			jQuery('#Modal_wpsg_country_edit').modal('show');