From dfc5a8222eeade7098cfd6a0bebf806b5f31d233 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 28 Mar 2014 13:09:21 +0000 Subject: [PATCH] using !egw.app(appname) to check if user has no run-rights for appname --- etemplate/js/et2_widget_url.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_url.js b/etemplate/js/et2_widget_url.js index 75c181b338..af000d4679 100644 --- a/etemplate/js/et2_widget_url.js +++ b/etemplate/js/et2_widget_url.js @@ -336,8 +336,7 @@ et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]); // Bind a mouseenter event once for every read-only email $j(function() { - var addressbook = egw.user('apps').addressbook; - if(typeof addressbook == 'undefined' || !addressbook.enabled) return; + if(!egw.app('addressbook')) return; $j('body').on('mouseenter', 'a.et2_email', function() { $j(this).tooltip({