Skip to content

Commit

Permalink
Designer 1.5 issues fixed.
Browse files Browse the repository at this point in the history
- Change the order of prerequisites tab setting added.
- Backup and restore issues fixed.
  • Loading branch information
raja-lmsace committed Nov 1, 2023
1 parent 37131c7 commit 71c02a8
Show file tree
Hide file tree
Showing 15 changed files with 264 additions and 54 deletions.
2 changes: 1 addition & 1 deletion amd/build/designer_section.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/designer_section.min.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions amd/src/designer_section.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@
if ((nodeName in preventionNodes)
|| document.body.classList.contains('editing') || iscircle || isDescription || isPadlock || ispopupModule) {
if (ispopupModule && !document.body.classList.contains('editing')) {
var li = event.target.closest('li.activity');
li.querySelector('a[href]').click();
if (event.target.closest("button[data-action='toggle-manual-completion']") == null && event.target.closest(".mod-description-action") == null) {
var li = event.target.closest('li.activity');
li.querySelector('a[href]').click();
}
// event.target.closest('a').click();
}
return null;
Expand Down
6 changes: 4 additions & 2 deletions backup/moodle2/restore_format_designer_plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ protected function after_restore_module() {
*/
protected function after_restore_section() {

$this->add_related_files('format_designer', 'sectiondesignbackground', null);
$this->add_related_files('format_designer', 'sectiondesigncompletionbackground', null);
$files = \format_designer\options::get_file_areas('section');
foreach ($files as $file => $component) {
$this->add_related_files($component, $file, 'course_section');
}
}
}
Loading

0 comments on commit 71c02a8

Please sign in to comment.