Fix link to no longer pre-selecting last used app

This commit is contained in:
Nathan Gray 2015-02-17 16:27:29 +00:00
parent 93a514993a
commit 286cca54e1

View File

@ -582,7 +582,6 @@ var et2_link_entry = et2_inputWidget.extend(
// Application selection
this.app_select = $j(document.createElement("select")).appendTo(this.div)
.val(this.options.value.app||'')
.change(function(e) {
// Clear cache when app changes
self.cache = {};
@ -607,6 +606,11 @@ var et2_link_entry = et2_inputWidget.extend(
this.app_select.hide();
this.div.addClass("no_app");
}
else
{
// Now that options are in, set to last used app
this.app_select.val(this.options.value.app||'');
}
// Search input
this.search = $j(document.createElement("input"))