Commit 021b0985 authored by ygerasimov's avatar ygerasimov Committed by voleger

Issue #2090701 by ygerasimov, pifagor, alex_optim, voleger: Allow newline in...

Issue #2090701 by ygerasimov, pifagor, alex_optim, voleger: Allow newline in the "rel" link property
parent 122a3608
......@@ -1072,8 +1072,9 @@ Lightbox = {
parts["flashvars"] = parts["style"].match(/flashvars:\s?(.*?);/)[1];
}
}
if ($(link).attr('rel').match(/\[.*\]\[(.*)\]/)) {
parts["title"] = $(link).attr('rel').match(/\[.*\]\[(.*)\]/)[1];
if ($(link).attr('rel').match(/\[.*\]\[([\s\S]*)\]/)) {
var title = $(link).attr('rel').match(/\[.*\]\[([\s\S]*)\]/)[1];
parts["title"] = title.replace(/\n/g, '<br />');
}
return parts;
},
......
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