mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
3.2.5
This commit is contained in:
21
public/js/plugins/schedule/editor.js
vendored
21
public/js/plugins/schedule/editor.js
vendored
@@ -36,7 +36,24 @@ function initScheduleEditor(id, eventType)
|
||||
}
|
||||
});
|
||||
$('.richeditor').trumbowyg({
|
||||
lang: 'fr'
|
||||
lang: 'fr',
|
||||
btns: [
|
||||
['viewHTML'],
|
||||
['emoji'],
|
||||
['undo', 'redo'], // Only supported in Blink browsers
|
||||
['strong', 'em', 'del'],
|
||||
['superscript', 'subscript'],
|
||||
['fontfamily'],
|
||||
['fontsize'],
|
||||
['foreColor', 'backColor'],
|
||||
['link'],
|
||||
['insertImage'],
|
||||
['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
|
||||
['unorderedList', 'orderedList'],
|
||||
['horizontalRule'],
|
||||
['removeformat'],
|
||||
['fullscreen']
|
||||
]
|
||||
});
|
||||
$('select').selectpicker();
|
||||
|
||||
@@ -264,6 +281,7 @@ function selectCourseMode(mode, niveau, periode)
|
||||
$('#nameContainer'+niveau+'-'+periode).removeClass('d-none');
|
||||
$('#modeSwitchC'+niveau+'-'+periode).addClass('active');
|
||||
$('#modeSwitchO'+niveau+'-'+periode).removeClass('active');
|
||||
$('#use_course_n'+niveau+'_p'+periode).prop("checked", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -274,6 +292,7 @@ function selectCourseMode(mode, niveau, periode)
|
||||
$('#nameContainer'+niveau+'-'+periode).addClass('d-none');
|
||||
$('#modeSwitchC'+niveau+'-'+periode).removeClass('active');
|
||||
$('#modeSwitchO'+niveau+'-'+periode).addClass('active');
|
||||
$('#use_course_n'+niveau+'_p'+periode).prop("checked", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user