Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue 10 in ep_tables #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions static/js/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@ exports.aceInitialized = function (hook, context) {
};
exports.acePostWriteDomLineHTML = function (hook_name, args, cb) {
// Iterate through the child nodes (spans) and point SyntaxHighlighter at them

//don't do this if the node given to us isn't really a DOM node.
//In the 'playback' tag, the node given here is a fake dictionary that looks like a node
if(!args.node.tagName) return;
var children = args.node.children;
for (var i = 0; i < children.length; i++) {
if (args.node.children[i].className.indexOf("list") != -1 || args.node.children[i].className.indexOf("tag") != -1 || args.node.children[i].className.indexOf("url") != -1) continue;
Expand Down