MDL-73952 course: Revert iscurrent => highlighted rename
This commit is contained in:
Vendored
+1
-1
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}}
|
||||
|
||||
Reference in New Issue
Block a user