Commit 711b4e9b authored by Sven Franck's avatar Sven Franck Committed by Sebastien Robin

erp5_web_renderjs_ui: Allow breadcrumbs to go temporarily go "Home"

parent 9584a80f
master allow_login_change allow_login_change_differentiate_id_and_login allow_login_change_wip arnau arnau-kns arnau-kns-without-property-mapping authentication_policy_fixes auto_extend_select_list autoflake backup_erp5_workflow bk_erp5ish_actions_tool bk_sqlcatalog bt_owner catalog_fulltext catalog_fulltext_old cedriclen-eos cherry-pick-4a8e045d cherry-pick-bca64206 clean_up_upgrader compact_title_no_reference datetimefield douglas_forum dream_distributor eos-dev erp5-component erp5-data-notebook erp5-forum erp5-preference erp5-release erp5-slapos-upgrade erp5-vifib erp5-vifib-cleanup erp5_free_subscription erp5_workflow floatArrayTest for_testrunner_1 for_testrunner_2 formbox gabriel-fix-rounding-in-accounting-generation gabriel-fix-rounding-in-accounting-generation2 gadget-json-value import_fixes import_fixes_complete improve_default_caching_policy_manager isDeletable item_tracking_graph_editor jerome-test jerome_graph_editor_renderjs jerome_user_preference_time_zone jm/form-action-guard joblib-activity jupyter_egg_tests jupyter_import_dot_fix jupyter_import_dot_quickfix jupyter_kernel_fixes jupyter_reference_warning jupyter_restricted kns master_calendar_wip_patches master_calendar_wip_patches_extend_security master_no_guard_on_workflow_transition master_no_guard_on_workflow_transition_plus_calendar_wip_patchs nexedi-erp5-jp no_reindex_data_stream officejs portal_callables portal_solver_process_security_configuration reindex_calendar_after_change_calendar_exception removed_portal_skin_redundancy romain-fulltext shop-box shop-box-rebased sms_more_than_140_characters strict_catalog testnode_software_link timezones tristan tristan-merge view-aggregated-amounts vivekpab_erp5webrenderjs_layoutconfig vivekpab_jabberclient vivekpab_renderjs_interfaces wenjie wenjie_branch xiaowu_newui erp5.util-0.4.46 erp5.util-0.4.44 erp5.util-0.4.43
No related merge requests found
......@@ -154,11 +154,15 @@
return gadget.whoWantToDisplayThis(uri.segment(2))\n
.push(function (parent_href) {\n
link_element = document.createElement("a");\n
// XXX Romain: please allow to "go home" via breadcrumb\n
if (parent_href === "#erp5_gadget.jio_key=undefined") {\n
parent_href = "#";\n
}\n
link_element.textContent = parent_link.name || "Home";\n
link_element.href = parent_href;\n
link_element.setAttribute("class", "responsive ui-btn ui-icon-carat-u ui-btn-icon-left");\n
link_element.setAttribute("data-role", "button");\n
link_element.setAttribute("role", "button");\n
link_element.textContent = parent_link.name;\n
parent_element.appendChild(link_element);\n
});\n
}\n
......@@ -299,7 +303,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>936.46052.59584.21316</string> </value>
<value> <string>937.8179.20788.60245</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -317,7 +321,7 @@
</tuple>
<state>
<tuple>
<float>1407318113.56</float>
<float>1408976172.25</float>
<string>GMT</string>
</tuple>
</state>
......
......@@ -177,7 +177,8 @@
\n
breadcrumb_options.title = result.data.title ||\n
result.data.reference || options.jio_key;\n
breadcrumb_options.parent_link = result.data._links.parent || result.data._links.site_root;\n
\n
breadcrumb_options.parent_link = result.data._links.parent || "#";\n
\n
uri = new URI(\n
result.data._embedded._view._links.form_definition.href\n
......@@ -563,7 +564,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>936.56327.51436.15564</string> </value>
<value> <string>937.8167.39223.50892</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -581,7 +582,7 @@
</tuple>
<state>
<tuple>
<float>1407932681.24</float>
<float>1408975361.84</float>
<string>GMT</string>
</tuple>
</state>
......
56
57
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment