I'm wondering if there is a reason why, in flexgrid-add.js, the hidden html fields aren't cleared with the rest of the form elements. Is this on purpose or was this overlooked?
function clearForm() { $('crudForm').find(':input').each(function() { switch(this.type) { case 'password': case 'select-multiple': case 'select-one': case 'text': case 'textarea': $(this).val(''); break; case 'checkbox': case 'radio': this.checked = false; } }); /* Clear upload inputs */ $('.open-file,.gc-file-upload,.hidden-upload-input').each(function(){ $(this).val(''); }); $('.upload-success-url').hide(); $('.fileinput-button').fadeIn("normal"); /* -------------------- */ $('.remove-all').each(function(){ $(this).trigger('click'); }); $('.chosen-multiple-select, .chosen-select, .ajax-chosen-select').each(function(){ $(this).trigger("liszt:updated"); }); }