-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from odeialba/V106
Release Version 1.0.6
- Loading branch information
Showing
29 changed files
with
250 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
*/ | ||
|
@@ -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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.