Lines Matching defs:form
97 var form = $(this).parents('form');
98 if (form.length > 0 && form[0]['do'] && form[0]['do'].value in m_supportedActions) {
101 $('input[type != "submit"]', form).each(function(idx, elt) {
108 var params = _formToObj(form[0]);
150 var form = $(this).parents('form');
151 load('edit', form, _formToObj(form));
164 * @param {Form=} sectionForm - If a section is being edited instead of the whole document, this is the form in that section.
173 // In case anything changed, migrate values over to the existing form.
201 * @param {Form=} sectionForm - The form representing the editable section.
421 * Convert a form to an object suitable for $.post().
425 function _formToObj(form) {
427 $(form).serializeArray().map(function(item){obj[item.name] = item.value;});
467 var form = $('#subscribe__form');
468 $('input[name="do[subscribe]"]', form).click(function(e) {
470 subscribeAction(_formToObj(form));
510 $('.content_partial form').each(function(idx, form) {
511 $('input[name="do[diff]"]', form).click(function(e) {
513 load('diff', null, _formToObj(form));
549 // Recoverable error. Return to the edit form.