mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-73952 course: Revert iscurrent => highlighted rename
This commit is contained in:
parent
305a25ae53
commit
4bb0feb176
2
course/amd/build/actions.min.js
vendored
2
course/amd/build/actions.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
@ -616,13 +616,13 @@ define(
|
||||
replaceActionItem(actionItem, 'i/marked',
|
||||
'highlightoff', 'core', 'removemarker');
|
||||
courseeditor.dispatch('legacySectionAction', action, sectionid);
|
||||
setSectionBadge(sectionElement[0], 'highlighted', true);
|
||||
setSectionBadge(sectionElement[0], 'iscurrent', true);
|
||||
} else if (action === 'removemarker') {
|
||||
sectionElement.removeClass('current');
|
||||
replaceActionItem(actionItem, 'i/marker',
|
||||
'highlight', 'core', 'setmarker');
|
||||
courseeditor.dispatch('legacySectionAction', action, sectionid);
|
||||
setSectionBadge(sectionElement[0], 'highlighted', false);
|
||||
setSectionBadge(sectionElement[0], 'iscurrent', false);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -23,14 +23,14 @@
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"highlighted" : true,
|
||||
"iscurrent" : true,
|
||||
"hiddenfromstudents" : "1",
|
||||
"notavailable" : "0",
|
||||
"highlightedlabel" : "Highlighted"
|
||||
}
|
||||
}}
|
||||
{{#editing}}
|
||||
<span class="badge badge-pill badge-primary order-1 {{^highlighted}}d-none{{/highlighted}}" data-type="highlighted">
|
||||
<span class="badge badge-pill badge-primary order-1 {{^iscurrent}}d-none{{/iscurrent}}" data-type="iscurrent">
|
||||
{{ highlightedlabel }}
|
||||
</span>
|
||||
<span class="badge badge-pill badge-warning order-2 {{^hiddenfromstudents}}d-none{{/hiddenfromstudents}}" data-type="hiddenfromstudents">
|
||||
@ -41,9 +41,9 @@
|
||||
</span>
|
||||
{{/editing}}
|
||||
{{^editing}}
|
||||
{{#highlighted}}
|
||||
{{#iscurrent}}
|
||||
<span class="badge badge-pill badge-primary order-1">{{ highlightedlabel }}</span>
|
||||
{{/highlighted}}
|
||||
{{/iscurrent}}
|
||||
{{#hiddenfromstudents}}
|
||||
<span class="badge badge-pill badge-warning order-2">{{#str}}hiddenfromstudents{{/str}}</span>
|
||||
{{/hiddenfromstudents}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user