diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-14 10:52:44 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-14 10:52:44 +0400 |
commit | fa07f14aec1515c24e3fd4a2a1dd298606ae8c90 (patch) | |
tree | e9af4a9b06afde8419ad1c5c6d2a95bc7827334b /plugins/SegmentEditor | |
parent | 5b8543374ff0592d3d3ed7cc163e595f38446314 (diff) |
Use .text instead of .html in one portion of SegmentEditor JS.
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 6aefb4d04c..8c3029c674 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -84,12 +84,14 @@ Segmentation = (function($) { { var selector = 'div.segmentList ul li[data-definition="'+current+'"]'; var foundItems = $(selector); + var title = $('<b></b>'); if( foundItems.length > 0) { var name = $(foundItems).first().find("span.segname").text(); - segmentationTitle.html("<b>"+name+"</b>"); + title.text(name); } else { - segmentationTitle.html("<b>Custom Segment</b>"); + title.text("Custom Segment"); } + segmentationTitle.html(title); } else { $(self.content).find(".segmentationTitle").text(self.translations['SegmentEditor_DefaultAllVisits']); |