Commit ddf6aac3 authored by flothoni's avatar flothoni

clone.js; update function to clean div id content

parent 5b3c3570
Pipeline #160950 failed with stages
in 381 minutes and 3 seconds
......@@ -1333,7 +1333,7 @@ Clone.prototype = {
var time_length = this.m.samples.order.length
var html = ""
var clean_title = function(title){ return title.replace(/ ()%-/gi,"_")} //.replace("/","").replace("(","").replace(")","").replace("%","") }
var clean_title = function(title){ return title.replace(/[&\/\\#,+()$~%.'":*?<>{} ]/gi,'_').replace(/__/gi,'_')}
var header = function(content, title) {
title = (title == undefined) ? clean_title(content) : clean_title(title)
return "<tr id='modal_header_"+title+"'><td class='header' colspan='" + (time_length + 1) + "'>" + content + "</td></tr>" ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment