X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=979f65872ed4f155ed0d53790504d8ad319e9c59;hb=36813770129eae719452f8d02144be61bbcd1d48;hp=9030ca90c9db22d88a926c111347669bf70b33f0;hpb=05b1dfa59ebab4c769f916135289918fe43d3932;p=fa-stable.git diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 9030ca90..979f6587 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -1455,6 +1455,14 @@ function changeCCYear(change) { function changeCCMonth(change) { cC.changeMonth(change); } +window.addEventListener('click', function(e) { + if (document.getElementById('CC').contains(e.target)){} else { + if (cC.visible()) { + cC.hide(); + } + } +}); + document.write(\"\"); document.write(\"
\");"; @@ -1562,7 +1570,7 @@ function trans_editor_link($type, $trans_no) // 35=> Cost Update, ); - return !isset($editor_url[$type]) ? '' : + return !isset($editor_url[$type]) ? '--' : (is_closed_trans($type, $trans_no) ? set_icon(ICON_CLOSED, _('Closed')) : pager_link(_("Edit"), sprintf($editor_url[$type], $trans_no, $type), ICON_EDIT)); }