From 38e6e353fd88e8903e411848ae82ce78613e9e6f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Mar 2014 22:29:44 +0000 Subject: [PATCH] Avoid error when clicking on a link with just title --- etemplate/js/et2_widget_link.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 4d61283e6d..f9bd631b32 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -1100,8 +1100,11 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM], } this.set_title(this.link, _value.title); var self = this; - this.link.unbind() - .click( function(){self.egw().open(_value, "", "view",null,_value.app,_value.app);}); + this.link.unbind(); + if(_value.id && _value.app) + { + this.link.click( function(){self.egw().open(_value, "", "view",null,_value.app,_value.app);}); + } }, /**