Fixing page previews

selenium-screenshot-testing 1.1.0
Kevin Chung 2017-12-28 04:09:42 -05:00
parent 20a7d6a769
commit d861b70603
1 changed files with 7 additions and 7 deletions

View File

@ -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);