From 22b60842246361265830e678ee4c2ab3dda32c49 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 10 Jun 2014 21:35:39 +0000 Subject: [PATCH] Fix link entry clear button not actually clearing the value if the value was entered via code instead of user --- etemplate/js/et2_widget_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index de2e570ec2..827e6483b1 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -695,7 +695,7 @@ var et2_link_entry = et2_inputWidget.extend( { // Clear self.search.autocomplete("close"); - self.set_value({app: self.options.only_app || self.options.value.app || null, id: null}); + self.set_value(null); self.search.val(""); self.search.trigger("change"); }