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