Skip to content
Permalink
Browse files
Merge branch 'MDL-59758_notes-fix' of git://github.com/dmonllao/moodle
  • Loading branch information
David Monllao committed Nov 7, 2017
2 parents cae3729 + 57c9b7f commit d6d2cec4a04d32aed0849ddd03a0561d8bc3e780
Showing with 13 additions and 3 deletions.
  1. +1 −1 user/amd/build/participants.min.js
  2. +11 −1 user/amd/src/participants.js
  3. +1 −1 user/templates/add_bulk_note.mustache

Some generated files are not rendered by default. Learn more.

@@ -147,7 +147,17 @@ define(['jquery', 'core/str', 'core/modal_factory', 'core/modal_events', 'core/t

var states = [];
for (var key in this.noteStateNames) {
states.push({value: key, label: this.noteStateNames[key]});
switch (key) {
case 'draft':
states.push({value: 'personal', label: this.noteStateNames[key]});
break;
case 'public':
states.push({value: 'course', label: this.noteStateNames[key], selected: 1});
break;
case 'site':
states.push({value: key, label: this.noteStateNames[key]});
break;
}
}

var context = {stateNames: states, stateHelpIcon: this.stateHelpIcon};
@@ -36,7 +36,7 @@
</label>
<select name="state" id="bulk-state" class="custom-select">
{{#stateNames}}
<option value="{{value}}">{{label}}</option>
<option value="{{value}}" {{#selected}}selected{{/selected}}>{{label}}</option>
{{/stateNames}}
</select>
{{{stateHelpIcon}}}

0 comments on commit d6d2cec

Please sign in to comment.