summaryrefslogtreecommitdiff
path: root/views/admin/form/text.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-11-16 10:47:54 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-11-16 10:47:54 +0000
commit4e788242bdb85682ba13dcb0caf2d72348479cf4 (patch)
tree92676d224610d7d27d25b0d030fb183f662b4b8d /views/admin/form/text.phtml
parent60862ddf25ead18d565fbf5d5fc3129e0822106e (diff)
- Export Profil (FTP Speicherung / Cron ausführung / XML Erstellung)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5911 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/form/text.phtml')
-rw-r--r--views/admin/form/text.phtml13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/admin/form/text.phtml b/views/admin/form/text.phtml
index 90a2b4c..1cfd831 100644
--- a/views/admin/form/text.phtml
+++ b/views/admin/form/text.phtml
@@ -8,7 +8,7 @@
<?php if (wpsg_isTrue($this->view['field_config']['noP'])) { ?>
<span <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?>><?php echo $this->view['field_value']; ?></span>
<?php } else { ?>
- <p <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?> class="form-control-static" style="padding-left:0px;"><?php echo $this->view['field_value']; ?></p>
+ <p <?php echo ((wpsg_isSizedString($this->view['field_id']))?' id="'.$this->view['field_id'].'" ':''); ?> class="form-control-static"><?php echo $this->view['field_value']; ?></p>
<?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
@@ -23,12 +23,15 @@
jQuery(document).ready(function() {
jQuery('#<?php echo $this->view['field_id']; ?>').wspg_editable('<?php echo $this->view['field_config']['inlineEdit_url']; ?>', {
- <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_type'])) { ?>
- 'type': '<?php echo $this->view['field_config']['inlineEdit_type']; ?>',
'placement': 'bottom'
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_type'])) { ?>
+ ,'type': '<?php echo $this->view['field_config']['inlineEdit_type']; ?>'
+ <?php } ?>
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_source'])) { ?>
+ , 'data': <?php echo $this->view['field_config']['inlineEdit_source']; ?>
<?php } ?>
- <?php if (wpsg_isSizedArray($this->view['field_config']['inlineEdit_source'])) { ?>
- ,'data': <?php echo json_encode($this->view['field_config']['inlineEdit_source']); ?>
+ <?php if (wpsg_isSizedString($this->view['field_config']['inlineEdit_callback'])) { ?>
+ , 'callback': function(response, newValue) { <?php echo $this->view['field_config']['inlineEdit_callback']; ?>(response, newValue); }
<?php } ?>
} );