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,7 +335,6 @@
});
}
$(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');
@ -343,6 +342,7 @@
$('#page-edit').submit();
}
$(document).ready(function () {
$('#media-insert').click(function (e) {
var tag = $('#media-icon').children()[0].nodeName.toLowerCase();
console.log(tag);