Commit f8abfd64 by Saliya Randunu

S12521571 # Client - remove unnecessary html tags from copying string and button cursor

parent 9fa933d1
......@@ -1658,6 +1658,7 @@ p.job-txt , p.job-txt span{
border-radius: 13px;
display: block;
float: right;
cursor: pointer;
}
.job-desc-box .details-box {
......
......@@ -36,6 +36,10 @@
function copyHTMLToClip(ele) {
str = $(ele).html().trim();
str = str.replace(/<span class="calcField">/g, '');
str = str.replace(/<\/span>/g, '');
str = str.replace(/<p><\/p>/g, '');
function listener(e) {
e.clipboardData.setData("text/html", str);
e.clipboardData.setData("text/plain", str);
......
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