From 74458a93bb46ca2b94d7e16bbfc6fdadee101dcd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 1 Aug 2013 12:10:09 +0530 Subject: [PATCH] [minor] [issue] webnotes/erpnext#405 - removed chat link for self-hosted instances --- public/js/toolbar.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/js/toolbar.js b/public/js/toolbar.js index c50f1ed14b..f54996942b 100644 --- a/public/js/toolbar.js +++ b/public/js/toolbar.js @@ -24,11 +24,14 @@ erpnext.toolbar.setup = function() { +wn._("My Settings")+'...'); $user.append('
  • '); $user.append('
  • \ - '+wn._('Documentation')+'
  • ') + '+wn._('Documentation')+''); $user.append('
  • \ - '+wn._('Forum')+'
  • ') - $user.append('
  • \ - '+wn._('Live Chat')+'
  • ') + '+wn._('Forum')+''); + + if(wn.boot.expires_on) { + $user.append('
  • \ + '+wn._('Live Chat')+'
  • '); + } erpnext.toolbar.set_new_comments();