Detailanzeige bei Eingabe von neuen Artikeln
authorNiclas Zimmermann <niclas@kivitendo-premium.de>
Mon, 6 Jan 2014 12:14:32 +0000 (13:14 +0100)
committerNiclas Zimmermann <niclas@kivitendo-premium.de>
Mon, 6 Jan 2014 12:16:35 +0000 (13:16 +0100)
Die Detailanzeige klappt jetzt nicht mehr beim Erneuern auf/zu.

Fixed Bug 2409.

bin/mozilla/is.pl
bin/mozilla/oe.pl
templates/webpages/do/form_header.html
templates/webpages/oe/sales_order.html

index d67aac5..cf3ac57 100644 (file)
@@ -378,6 +378,7 @@ sub form_header {
     shiptoname shiptostreet shiptozipcode shiptocity shiptocountry  shiptocontact shiptophone shiptofax
     shiptoemail shiptodepartment_1 shiptodepartment_2  shiptocp_gender message email subject cc bcc taxaccounts cursor_fokus
     convert_from_do_ids convert_from_oe_ids
+    show_details
   ), @custom_hiddens,
   map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
 
index 6001c87..f08a524 100644 (file)
@@ -441,7 +441,8 @@ sub form_header {
         max_dunning_level dunning_amount shiptoname shiptostreet shiptozipcode
         shiptocity shiptocountry shiptocontact shiptophone shiptofax
         shiptodepartment_1 shiptodepartment_2 shiptoemail shiptocp_gender
-        message email subject cc bcc taxpart taxservice taxaccounts cursor_fokus),
+        message email subject cc bcc taxpart taxservice taxaccounts cursor_fokus
+        show_details),
         @custom_hiddens,
         map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts} ];  # deleted: discount
 
index baf7b3f..5af79be 100644 (file)
@@ -99,6 +99,7 @@
   <input type="hidden" name="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
   <input type="hidden" name="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
   <input type="hidden" name="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
+  <input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]">
   <input type="hidden" name="subject" value="[% HTML.escape(subject) %]">
   <input type="hidden" name="taxincluded" value="[% HTML.escape(taxincluded) %]">
   <input type="hidden" name="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
index c16dc11..d23d884 100644 (file)
@@ -3,9 +3,14 @@
 [%- PROCESS 'amcvar/render_inputs_block.html' %]
 <tr>
  <td>
-  <input type="button" id="cb_show_details" name="show_details" value='[% 'Show details' | $T8 %]'>
+  <input type="button" id="cb_show_details" name="show_details_button" value='[% 'Show details blubb' | $T8 %]'>
   <script type="text/javascript">
-   $('#cb_show_details').click(function(){ $('[id^="row2"]').toggle() });
+   $('#cb_show_details').click(function(){ $('[id^="row2"]').toggle();
+                                           if ( $('[id^="row2"]').is(":visible") ) {
+                                            $("[name='show_details']").val(1);
+                                           } else {
+                                            $("[name='show_details']").val(0);
+                                           }});
   </script>
   <table id='display_row' width="100%">
    <tr class="listheading">