MDL-74465 blocks: allow configuration in modal

Introduce 'pagehash' - an identifier that uniquely identifies a page for the user session
This commit is contained in:
Marina Glancy
2023-03-30 12:15:54 +01:00
parent 1150b08264
commit 6b081d2e9f
26 changed files with 611 additions and 362 deletions
+1 -1
View File
@@ -4230,7 +4230,7 @@ class flat_navigation extends navigation_node_collection {
$addblockurl = "?{$url->get_query_string(false)}";
$PAGE->requires->js_call_amd('core/addblockmodal', 'init',
[$PAGE->pagetype, $PAGE->pagelayout, $addblockurl]);
[$addblockurl, $this->page->get_edited_page_hash()]);
}
}