Skip to content

Commit

Permalink
BugFix: Sticky progress bar position issue fixed for the popups format.
Browse files Browse the repository at this point in the history
- CD-319, CD-318
  • Loading branch information
abinesh-lmsace committed Dec 11, 2024
1 parent d7b56ae commit 523f0f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion element/chapter/amd/build/chapter.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 element/chapter/amd/build/chapter.min.js.map

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

8 changes: 8 additions & 0 deletions element/chapter/amd/src/chapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ define(['jquery', 'mod_contentdesigner/elements', 'core/ajax', 'core/fragment',
stickyProgress();
});

// Popup format support.
var popup = document.querySelector('body.format-popups .modal-content .modal-body');
if (popup !== null) {
popup.addEventListener('scroll', () => {
stickyProgress();
});
}

window.addEventListener('scroll', () => {
stickyProgress();
});
Expand Down
7 changes: 7 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,11 @@ body#page-mod-contentdesigner-view {
cursor: pointer;
}
}
}

.format-popups .modal .modal-body .contentdesigner-content.sticky-progress {
.contentdesigner-progress.fixed-top {
position: sticky;
top: -20px;
}
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

defined('MOODLE_INTERNAL') || die();
$plugin->version = 2024110802; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2024110803; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2020061500; // Requires this Moodle version.
$plugin->component = 'mod_contentdesigner'; // Full name of the plugin (used for diagnostics).
$plugin->release = 'v1.1';
Expand Down

0 comments on commit 523f0f4

Please sign in to comment.