Fix link entry clear button not actually clearing the value if the value was entered via code instead of user

This commit is contained in:
Nathan Gray 2014-06-10 21:35:39 +00:00
parent a4335f01a0
commit 22b6084224

View File

@ -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");
}