X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Futils.js;h=5af7bfb4f644bab6e6e54836eb4ba38d5162d8a6;hb=35b63dfa6002b68aebace1632e497146c76913a0;hp=781382b32b12ecfedf593393fd12e443436dfd87;hpb=b4ac68e2ed3d797e44fce2a1082d890e35c3d368;p=fa-stable.git diff --git a/js/utils.js b/js/utils.js index 781382b3..5af7bfb4 100644 --- a/js/utils.js +++ b/js/utils.js @@ -251,8 +251,8 @@ function get_amount(doc, label) { return isNaN(val) ? 0 : val; } -function goBack() { - if (window.history.length <= 1) +function goBack(no_menu) { + if (no_menu) window.close(); else window.history.go(-1);