1,801
การแก้ไข
| บรรทัดที่ 716: | บรรทัดที่ 716: | ||
*#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | *#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | ||
*#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | *#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | ||
*#*# If the form must be repopulated ('''{{code|data.repop}}''': ''dict'' | *#*# If the form must be repopulated ('''{{code|data.repop}}''': ''dict'': hares the same format with the form data in '''{{code|data.crossfill}}''', see note), do so. | ||
*#*# If other tables and forms on the page are affected ('''{{code|data.crossfill}}''': ''dict'': See note), re-populate them. | *#*# If other tables and forms on the page are affected ('''{{code|data.crossfill}}''': ''dict'': See note), re-populate them. | ||
*#*# | *#*# If the document-level verification pills must be manipulated ('''{{code|data.docverify}}''': ''dict'': See note), do so. | ||
*#*# If the form belongs to a table as the in-line form ({{code|form_obj.in_table}}) or the fully-expanded form ({{code|form_obj.table_linked}}), commit the change (if any) to the table as well by looking for '''{{code|data.entry}}''' (shares similar format with the table data in '''{{code|data.crossfill}}''', see note). | |||
'''{{code|data.err}}''' takes the following format: | '''{{code|data.err}}''' takes the following format: | ||
| บรรทัดที่ 738: | บรรทัดที่ 739: | ||
# 'info', 'secondary', 'light', and 'dark'. | # 'info', 'secondary', 'light', and 'dark'. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''{{code|data.crossfill}}''' assumes the following format: | '''{{code|data.crossfill}}''' assumes the following format: | ||
| บรรทัดที่ 744: | บรรทัดที่ 746: | ||
'<table_or_form_id1>':<table_or_form_data1>, | '<table_or_form_id1>':<table_or_form_data1>, | ||
...} | ...} | ||
# For CuneiForms, table_or_form_data is a dict. | # For CuneiForms, table_or_form_data is a dict. | ||
| บรรทัดที่ 758: | บรรทัดที่ 761: | ||
... ] | ... ] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''{{code|data.docverify}}''' takes the following format: | |||
<syntaxhighlight lang='python'> | |||
data.docverify = {'<verify_key0>':<verify_val0>, | |||
'<verify_key1>':<verify_val1>, | |||
...} | |||
# verify_val is 0 for normal-state, 1 for danger (red), 2 for warning (yellow). | |||
# - For special verify_key 'editting', the verify_val is the name of the user | |||
# currently editing the document (string). | |||
</syntaxhighlight> | |||
{{The Tenko Shrine}} | {{The Tenko Shrine}} | ||