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

pjax: Cleanup redactor air toolbars

parent dfee8299
No related branches found
No related tags found
No related merge requests found
...@@ -280,8 +280,13 @@ $(function() { ...@@ -280,8 +280,13 @@ $(function() {
// Make a rich text editor immediately // Make a rich text editor immediately
redact(el); redact(el);
}); });
},
cleanupRedactorElements = function() {
// Drop the added redactor_air bars
$('.redactor_air').remove();
}; };
findRichtextBoxes(); findRichtextBoxes();
$(document).ajaxStop(findRichtextBoxes); $(document).ajaxStop(findRichtextBoxes);
$(document).on('pjax:success', findRichtextBoxes); $(document).on('pjax:success', findRichtextBoxes);
$(document).on('pjax:start', cleanupRedactorElements);
}); });
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