Mercurial > p > roundup > code
view website/issues/html/_generic.help-submit.html @ 8566:e4191aa7b402 default tip
doc: issue2551415 correct doc for change input->input_payload
in 2.5 the rest interface changed a variable name from input to
input_payload. An earlier commit changed the rest docs. This commit
adds an item for it to the upgrading 2.4.0->2.5.0 section. Also cross
reference added to the rest docs with the updated examples.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 09 Apr 2026 00:19:06 -0400 |
| parents | 28aa76443f58 |
| children |
line wrap: on
line source
<html> <head> <link rel="stylesheet" type="text/css" href="@@file/style.css" /> <meta http-equiv="Content-Type" tal:attributes="content string:text/html;; charset=${request/client/charset}" /> <tal:block tal:condition="python:'property' in request.form"> <title>Generic submit page for framed helper windows</title> <script language="Javascript" type="text/javascript" tal:attributes="nonce request/client/client_nonce" tal:content="string: // this is the name of the field in the original form that we're working on form = parent.opener.document.${request/form/form/value}; callingform=form field = '${request/form/property/value}';"></script> <script language="Javascript" type="text/javascript" tal:attributes="nonce request/client/client_nonce" tal:content="string: var listform = null function listPresent() { return document.frm_help.cb_listpresent.checked } function getListForm() { if (listPresent()) { return parent.list.document.forms.dummyform } else { return null } } function checkListForm() { // global listform if (listform != null) if (parent.list.document.dummyform) { listform = parent.list.document.dummyform alert(listform) } var bol= listform != null alert('checkListForm: bol='+bol) return bol } //-->"> </script> <script src="@@file/help_controls.js" type="text/javascript" tal:attributes="nonce request/client/client_nonce"></script> </tal:block> </head> <body class="body" onload="parent.focus();" id="submit"> <pre tal:content="request/env/QUERY_STRING" tal:condition=false /> <form name="frm_help" tal:define="batch request/batch; props python:request.form['properties'].value.split(',')" class="help-submit" id="classhelp-controls"> <div style="width:100%;text-align:left;margin-bottom:0.2em"> <input type="text" name="text_preview" size="24" class="preview" onchange="f=getListForm();if(f){ reviseList_framed(f, this)};" /> </div> <input type=checkbox name="cb_listpresent" readonly="readonly" style="display:none"> <input type="button" id="btn_cancel" value=" Cancel " onclick="parent.close();return false;" i18n:attributes="value" /> <input type="reset" id="btn_reset" onclick="text_field.value=original_field;f=getListForm();if (f) {reviseList_framed(f, this)};return false" /> <input type="submit" id="btn_apply" class="apply" value=" Apply " onclick="callingform[field].value=text_field.value; if ('createEvent' in document) { var evt = document.createEvent('HTMLEvents'); evt.initEvent('change', true, true); callingform[field].dispatchEvent(evt); } else { callingform[field].fireEvent('onchange'); } parent.close();" i18n:attributes="value" /> </form> <script type="text/javascript" tal:attributes="nonce request/client/client_nonce"><!-- var text_field = document.frm_help.text_preview; original_field=form[field].value; text_field.value=original_field; //--></script> </body> </html>
