Preserve selected application when clearing search, or it gets lost internally

This commit is contained in:
Nathan Gray 2013-11-28 17:31:22 +00:00
parent 1dc919e83b
commit f5b02ccc21

View File

@ -666,7 +666,8 @@ var et2_link_entry = et2_inputWidget.extend(
{
// Clear
self.search.autocomplete("close");
self.set_value("");
self.set_value({app: self.options.only_app || self.options.value.app || null, id: null});
self.search.val("");
self.search.trigger("change");
}
self.search.focus();