I catch error message when I close dialog with a form.
Uncaught TypeError: Cannot read property 'options' of undefined
_49e @ VM24260:6435
(anonymous function) @ VM24260:6555
m.extend.each @ jquery-1.11.3.min.js:2
m.fn.m.each @ jquery-1.11.3.min.js:2
$.fn.validatebox.methods.validate @ VM24260:6554
$.fn.validatebox @ VM24260:6529
(anonymous function) @ VM24260:6384
Stack:
My dialog onClose handler:
onClose: function () {
app.current_dialog = false;
app.keypress.activate();
$(this).find('FORM').form('clear');
window.localOnFormLoad = undefined;
$(this).dialog('destroy');
},
Help me, please.