diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-09-16 21:09:32 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-09-16 21:10:35 +0200 |
commit | d1cd22a6ddb96dadb45385ba1238e30e2b1bd6c6 (patch) | |
tree | c3c46c13ae80d54758348d0184b8d733b6ed16e1 /skins | |
parent | 1cb23c936832c4e524872ff73f593e58a2f90d9b (diff) |
Avoid errors when contacts widget is missing (in derived skins for example)
Diffstat (limited to 'skins')
-rw-r--r-- | skins/larry/ui.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 153abdc21..2a6bffe64 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -507,7 +507,8 @@ function rcube_mail_ui() // $('#composeformbuttons')[(btns ? 'show' : 'hide')](); var abooks = $('#directorylist'); - $('#compose-contacts .scroller').css('top', abooks.position().top + abooks.outerHeight()); + if (abooks.length) + $('#compose-contacts .scroller').css('top', abooks.position().top + abooks.outerHeight()); } |