X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.Order.js;h=5d891d56eaa767aede739681bea79c89e99bf2bc;hb=c7e142ae1c2cc44f4ef5de1d9fabc43e5ed6244f;hp=1ab27bc2436655d556ed405dc5e089ecb9c45b9c;hpb=772bf635f4620935526a3009bc9256528b619083;p=kivitendo-erp.git diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 1ab27bc24..5d891d56e 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -219,24 +219,24 @@ namespace('kivi.Order', function(ns) { ns.hide_second_row = function(row) { $(row).children().not(':first').hide(); - $(row).data('expanded', false); + $(row).data('expanded', 0); var elt = $(row).find('.expand'); - elt.attr('src', "image/expand3.gif"); + elt.attr('src', "image/expand.svg"); elt.attr('alt', kivi.t8('Show details')); elt.attr('title', kivi.t8('Show details')); }; ns.show_second_row = function(row) { $(row).children().not(':first').show(); - $(row).data('expanded', true); + $(row).data('expanded', 1); var elt = $(row).find('.expand'); - elt.attr('src', "image/collapse3.gif"); + elt.attr('src', "image/collapse.svg"); elt.attr('alt', kivi.t8('Hide details')); elt.attr('title', kivi.t8('Hide details')); }; ns.toggle_second_row = function(row) { - if ($(row).data('expanded') === true) { + if ($(row).data('expanded') == 1) { ns.hide_second_row(row); } else { ns.show_second_row(row); @@ -548,17 +548,17 @@ $(function(){ $('#expand_all').on('click', function(event) { event.preventDefault(); - if ($('#expand_all').data('expanded') === true) { - $('#expand_all').data('expanded', false); - $('#expand_all').attr('src', 'image/expand3.gif'); + if ($('#expand_all').data('expanded') == 1) { + $('#expand_all').data('expanded', 0); + $('#expand_all').attr('src', 'image/expand.svg'); $('#expand_all').attr('alt', kivi.t8('Show all details')); $('#expand_all').attr('title', kivi.t8('Show all details')); $('.row_entry').each(function(idx, elt) { kivi.Order.hide_second_row(elt); }); } else { - $('#expand_all').data('expanded', true); - $('#expand_all').attr('src', "image/collapse3.gif"); + $('#expand_all').data('expanded', 1); + $('#expand_all').attr('src', "image/collapse.svg"); $('#expand_all').attr('alt', kivi.t8('Hide all details')); $('#expand_all').attr('title', kivi.t8('Hide all details')); kivi.Order.load_all_second_rows(); @@ -568,4 +568,5 @@ $(function(){ } return false; }); + });