mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-60985 tool_usertours: Hide next on last, prev on first and primary.
This commit is contained in:
parent
7850f76a93
commit
3bd2e330ab
2
admin/tool/usertours/amd/build/tour.min.js
vendored
2
admin/tool/usertours/amd/build/tour.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -646,14 +646,15 @@ export default class Tour {
|
||||
|
||||
// Is this the first step?
|
||||
if (this.isFirstStep(stepConfig.stepNumber)) {
|
||||
template.find('[data-role="previous"]').prop('disabled', true);
|
||||
template.find('[data-role="previous"]').hide();
|
||||
} else {
|
||||
template.find('[data-role="previous"]').prop('disabled', false);
|
||||
}
|
||||
|
||||
// Is this the final step?
|
||||
if (this.isLastStep(stepConfig.stepNumber)) {
|
||||
template.find('[data-role="next"]').prop('disabled', true);
|
||||
template.find('[data-role="next"]').hide();
|
||||
template.find('[data-role="end"]').removeClass("btn-secondary").addClass("btn-primary");
|
||||
} else {
|
||||
template.find('[data-role="next"]').prop('disabled', false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user