Changed so company domicile is printed on invoices and statements if filled out
[fa-stable.git] / js / inserts.js
index 120c2ff24f03ae84007ff5f6e0e9cd659ff0116a..7450c199d40c670e42b3fa8e04632f755d515883 100644 (file)
@@ -11,7 +11,7 @@
 var _focus;
 var _hotkeys = {
        'alt': false,   // whether is the Alt key pressed
-       'focus': -1,    // currently selected indeks of document.links
+       'focus': -1             // currently selected indeks of document.links
 };
 
 function debug(msg) {
@@ -274,7 +274,7 @@ var inserts = {
                            save_focus(this);
                        };
                        e.onmouseover = function(e) {
-                       setFocus(this.id, 1);
+                       if (this.id) setFocus(this.id, 1);
                                return false;
                        }
                }