Skip to content

Commit

Permalink
Merge pull request #31 from odeialba/V106
Browse files Browse the repository at this point in the history
Release Version 1.0.6
  • Loading branch information
odeialba authored Oct 27, 2023
2 parents 999105e + cb62bd4 commit f1e4ddf
Show file tree
Hide file tree
Showing 29 changed files with 250 additions and 131 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.0.6 - 2023-10-27
### Added
- Added an option to show the results of the voting to the students.
- Added standard instructions to the activity.
### Fixed
- Fix all the codechecker errors.

## 1.0.5 - 2023-09-07
### Added
- Added missing language strings.
Expand Down
4 changes: 2 additions & 2 deletions amd/build/sortvoting.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/sortvoting.min.js.map

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

7 changes: 5 additions & 2 deletions amd/src/sortvoting.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* AMD module used when saving a new sort voting.
*
* @module mod_sortvoting/issues-list
* @module mod_sortvoting/sortvoting
* @copyright 2023 Odei Alba <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -69,7 +69,10 @@ const saveVote = function(saveSortVoteElement) {
} else {
toastAdd(getString('voteerror', 'mod_sortvoting'), {type: 'danger'});
}
if (result.allowupdate) {
if (result.seeresultsupdated) {
// Reload the whole page so the results tab is visible now but wasn't before (or viceversa).
window.location.reload();
} else if (result.allowupdate) {
saveSortVoteElement.removeAttribute('disabled');
} else {
saveSortVoteElement.style.display = 'none';
Expand Down
1 change: 0 additions & 1 deletion backup/moodle2/backup_sortvoting_activity_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class backup_sortvoting_activity_task extends backup_activity_task {

/**
* Define (add) particular settings this activity can have
*/
Expand Down
Loading

0 comments on commit f1e4ddf

Please sign in to comment.