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:09:48 +0200 |
commit | e1db66a4b46f38522f8faecf38d0c49035d9bd14 (patch) | |
tree | a3e8876d19a362421d5ce4779a64232e8479986e | |
parent | 2fa50dce32c857b11d934586cf316e4cc6b85b36 (diff) |
Avoid errors when contacts widget is missing (in derived skins for example)
-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 1c1df08be..493398743 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -536,7 +536,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()); } |