mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-03 21:34:34 +01:00
Fixing page previews
This commit is contained in:
@@ -335,14 +335,14 @@
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
function preview_page() {
|
||||
editor.save(); // Save the CodeMirror data to the Textarea
|
||||
$('#page-edit').attr('action', '{{ request.script_root }}/admin/pages?operation=preview');
|
||||
$('#page-edit').attr('target', '_blank');
|
||||
$('#page-edit').submit();
|
||||
}
|
||||
function preview_page() {
|
||||
editor.save(); // Save the CodeMirror data to the Textarea
|
||||
$('#page-edit').attr('action', '{{ request.script_root }}/admin/pages?operation=preview');
|
||||
$('#page-edit').attr('target', '_blank');
|
||||
$('#page-edit').submit();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#media-insert').click(function (e) {
|
||||
var tag = $('#media-icon').children()[0].nodeName.toLowerCase();
|
||||
console.log(tag);
|
||||
|
||||
Reference in New Issue
Block a user