Subversion Repositories wpShopGermany4

Rev

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

Rev 5792 Rev 5896
Line 15... Line 15...
15
		
15
		
16
		<div class="checkbox">
16
		<div class="checkbox">
17
			<label>
17
			<label>
18
 
18
 
19
				<div class="wpsg_field_wrap">
19
				<div class="wpsg_field_wrap">
-
 
20
					
-
 
21
					<?php if (!isset($this->view['field_config']['noHidden'])) { ?>
20
					<input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
22
					<input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
-
 
23
					<?php } ?>
-
 
24
					
21
					<input type="checkbox" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" value="<?php echo wpsg_getStr($this->view['field_config']['value'], '1'); ?>" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
25
					<input type="checkbox" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" value="<?php echo wpsg_getStr($this->view['field_config']['value'], '1'); ?>" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
22
				
26
				
23
					<?php echo $this->view['field_label']; ?>
27
					<?php echo $this->view['field_label']; ?>
24
					
28
					
25
					<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
29
					<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
Line 31... Line 35...
31
			</label>
35
			</label>
32
		</div>
36
		</div>
33
		
37
		
34
	</div>
38
	</div>
35
	
39
	
-
 
40
	<?php if (wpsg_isTrue($this->view['field_config']['inlineEdit'])) { ?>
-
 
41
    <script type="text/javascript">/* <![CDATA[ */
-
 
42
 
-
 
43
        jQuery(document).ready(function() {
-
 
44
 
-
 
45
			jQuery('#<?php echo $this->view['field_id']; ?>').on('change', function() {
-
 
46
				
-
 
47
				var value = '0';
-
 
48
				if (jQuery(this).prop('checked')) value = '1';
-
 
49
				
-
 
50
				jQuery.ajax( {
-
 
51
					url: '<?php echo $this->view['field_config']['inlineEdit_url']; ?>',
-
 
52
					data: {
-
 
53
						'name': '<?php echo $this->view['field_name']; ?>',
-
 
54
						'value': value
-
 
55
					}
-
 
56
				} );
-
 
57
				
-
 
58
			} );
-
 
59
			 
-
 
60
        } );
-
 
61
 
-
 
62
    /* ]]> */</script>
-
 
63
    <?php } ?>
-
 
64
		
36
	<div class="clearfix wpsg_clear"></div>
65
	<div class="clearfix wpsg_clear"></div>
37
	
66
	
38
</div>
67
</div>
39
68