Check that input exists before trying to use it

This commit is contained in:
Nathan Gray 2012-06-13 15:16:01 +00:00
parent d156f20492
commit 19264649a6

View File

@ -172,7 +172,7 @@ var et2_selectAccount = et2_selectbox.extend({
jQuery(this).dialog("destroy");
// Fire change event
widget.input.trigger("change");
if(widget.input) widget.input.trigger("change");
};
var container = jQuery(document.createElement("div")).append(table);