summaryrefslogtreecommitdiff
path: root/views/order/view.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/order/view.phtml')
-rw-r--r--views/order/view.phtml19
1 files changed, 19 insertions, 0 deletions
diff --git a/views/order/view.phtml b/views/order/view.phtml
index 5ae9a2e..00a5233 100644
--- a/views/order/view.phtml
+++ b/views/order/view.phtml
@@ -147,11 +147,19 @@
jQuery(document).ready(function() {
+ wpsg_view_orderdata_hide();
+
jQuery('#wpsg_order_view_tabs a.list-group-item').bind('click', function() {
jQuery('#wpsg_order_view_tabs a').removeClass('active');
jQuery('.wpsg_order_view_tab_content').hide();
+ tab = jQuery(this).attr('wpsg-data-target');
+ if (tab == 'orderdata') {
+ wpsg_view_orderdata_show();
+ } else {
+ wpsg_view_orderdata_hide();
+ }
jQuery(this).addClass('active');
jQuery('#tab' + jQuery(this).attr('wpsg-data-target')).show();
@@ -160,6 +168,17 @@
} );
+ co = jQuery.cookie('wpsg_order_view_tab');
+ if (co === undefined) {
+ jQuery("[wpsg-data-target='general']").trigger("click");
+ } else {
+ jQuery("[wpsg-data-target='" + co + "']").trigger("click");
+ }
+ //jQuery('#wpsg_order_view_tabs a').removeClass('active');
+ //jQuery('.wpsg_order_view_tab_content').hide();
+ //jQuery('#tabgeneral').show();
+ //jQuery("[wpsg-data-target='general']").addClass('active');
+
} );
/* ]]> */</script>