Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 5446 → Rev 5447

/admin/kundendaten.phtml
17,7 → 17,7
</div>
 
<!-- Modal -->
<!-- Modal für Codeanzeige -->
<div class="modal fade" id="wpsg_code_dialog" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
56,9 → 56,16
<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab1.phtml'); ?>
</div>
<div role="tabpanel" id="tabcontent2" class="tab-pane">
<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab2.phtml'); ?>
<div id="wpsg_kv_list">
<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab2.phtml'); ?>
</div>
<div class="wpsg_clear"></div><br />
<a href="" onclick="return wpsg_addCustomField();"><span class="glyphicon glyphicon-plus"></span>&nbsp;<?php echo __('Neue Kundenvariable anlegen.', 'wpsg'); ?></a>
</div>
<div role="tabpanel" id="tabcontent3" class="tab-pane">
<div role="tabpanel" id="tabcontent3" class="tab-pane">
<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab3.phtml'); ?>
</div>
</div>
66,7 → 73,7
</div>
</div>
<p calss="submit"><input type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
<p calss="submit"><input name="submit" type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
</form>
78,12 → 85,12
function wpsg_addCustomField()
{
jQuery('#tabcontent2').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery('#wpsg_kv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=add&noheader=1',
success: function(data) {
jQuery('#tabcontent2').html(data);
jQuery('#wpsg_kv_list').html(data);
}
} );
136,6 → 143,15
return false;
} // function wpsg_genPACode(pa_id)
 
jQuery(document).ready(function() {
 
jQuery('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { localStorage.setItem('wpsg_admin_customer_lastTab', jQuery(this).attr('href')); } );
 
var lastTab = localStorage.getItem('wpsg_admin_customer_lastTab');
if (lastTab) jQuery('[href="' + lastTab + '"]').tab('show');
} );
/* ]]> */</script>