Skip to content
Snippets Groups Projects
Commit 4a945c5b authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: No popup warning when creating a draft

parent a18bf0c6
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,8 @@ $(function() {
});
$(document).ajaxError(function(event, request, settings) {
if (settings.url.indexOf('ajax.php/draft') != -1) {
if (settings.url.indexOf('ajax.php/draft') != -1
&& settings.type.touppercase() == 'POST') {
$('.richtext').each(function() {
var redactor = $(this).data('redactor');
if (redactor) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment