diff --git a/lib/WebGUI/Operation/Commerce.pm b/lib/WebGUI/Operation/Commerce.pm index 98acad518..88ba8c7be 100644 --- a/lib/WebGUI/Operation/Commerce.pm +++ b/lib/WebGUI/Operation/Commerce.pm @@ -433,7 +433,7 @@ sub www_editCommerceSettings { # payment plugin if (%paymentPlugins) { - $tabform->getTab('payment')->raw(''); + $tabform->getTab('payment')->raw(''); $tabform->getTab("payment")->selectList( -name => 'commercePaymentPlugin', -options => \%paymentPlugins, @@ -442,7 +442,7 @@ sub www_editCommerceSettings { -extras => 'onchange="activePayment=operateHidden(this.options[this.selectedIndex].value,activePayment)"' ); - $jscript = ''); + $tabform->getTab('shipping')->raw(''); $tabform->getTab('shipping')->selectList( -name => 'commerceShippingPlugin', -options=> \%shippingPlugins, @@ -483,7 +483,7 @@ sub www_editCommerceSettings { -extras => 'onchange="activeShipping=operateHidden(this.options[this.selectedIndex].value,activeShipping)"' ); - $jscript = ''); + WebGUI::Style::setScript($session{config}{extrasURL}."/swapLayers.js",{type=>"text/javascript"}); + $tabform->getTab("auth")->raw(''); my $options; foreach (@{$session{config}{authMethods}}) { $options->{$_} = $_; @@ -242,7 +242,7 @@ sub www_editSettings { -value=>[$session{setting}{authMethod}], -extras=>"onChange=\"active=operateHidden(this.options[this.selectedIndex].value,active)\"" ); - my $jscript = ''); + WebGUI::Style::setScript($session{config}{extrasURL}."/swapLayers.js", {type=>"text/javascript"}); + $tabform->getTab("account")->raw(''); $tabform->hidden({name=>"op",value=>"editUserSave"}); $tabform->hidden({name=>"uid",value=>$session{form}{uid}}); $tabform->getTab("account")->raw('  '); @@ -270,7 +270,7 @@ sub www_editUser { -value=>[$u->authMethod], -extras=>"onChange=\"active=operateHidden(this.options[this.selectedIndex].value,active)\"" ); - my $jscript = '