From: Bernd Bleßmann Date: Mon, 17 Aug 2015 12:01:51 +0000 (+0200) Subject: Auftrags-Controller: Scrollbar für Positions-Tabelle und ans Ende scrollen. X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9d6f6ee4598cdce78dead47818dc584292eae5a9;p=kivitendo-erp.git Auftrags-Controller: Scrollbar für Positions-Tabelle und ans Ende scrollen. --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index d12596893..6d7da9f10 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -157,6 +157,7 @@ sub action_add_item { ->val('#add_item_qty_as_number', '') ->val('#add_item_sellprice_as_number', '') ->val('#add_item_discount_as_percent', '') + ->run('row_table_scroll_down') ->focus('#add_item_parts_id_name'); $self->_js_redisplay_amounts_and_taxes; diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 3bc64558e..f57cde89d 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -107,30 +107,34 @@ @@ -206,6 +210,9 @@ function display_linetotal(item_id, amount) { $('#item_' + item_id).parents("tr").first().find('[name="linetotal"]').html(amount); } +function row_table_scroll_down() { + $('#row_table_scroll_id').scrollTop($('#row_table_scroll_id')[0].scrollHeight); +} $(function(){ $('#order_[%- cv_id %]').change(reload_cv_dependend_selections);
- - - - - - - - - - - - - - - - - - - [%- FOREACH item = SELF.order.items_sorted %] - [%- PROCESS order/tabs/_row.html ITEM=item %] - [%- END %] - -
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+
+ + + + + + + + + + + + + + + + + + + [%- FOREACH item = SELF.order.items_sorted %] + [%- PROCESS order/tabs/_row.html ITEM=item %] + [%- END %] + + +
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+
+