]> git.wh0rd.org Git - tt-rss.git/commitdiff
add some cool unicode ellipsis characters (closes #167)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Nov 2007 10:49:13 +0000 (11:49 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 Nov 2007 10:49:13 +0000 (11:49 +0100)
feedlist.js
functions.php

index dfe400850cff8ebc88b66de0cb0cee455b95e078..577357b4d761cdae1471fe57b0c931d4c14c0687 100644 (file)
@@ -165,12 +165,12 @@ function toggleCollapseCat_af(effect) {
                var elem = effect.element;
                var cat = elem.id.replace("FCATLIST-", "");
                var cap = document.getElementById("FCAP-" + cat);
-       
+
                if (Element.visible(elem)) {
-                       cap.innerHTML = cap.innerHTML.replace("...", "");
+                       cap.innerHTML = cap.innerHTML.replace("", "");
                } else {
-                       if (cap.innerHTML.lastIndexOf("...") != cap.innerHTML.length-3) {
-                               cap.innerHTML = cap.innerHTML + "...";
+                       if (cap.innerHTML.lastIndexOf("") != cap.innerHTML.length-3) {
+                               cap.innerHTML = cap.innerHTML + "";
                        }
                }
 
index 4a6613a60dd29559b71811d7951ddc5d80860fa3..613641b318356c40469d9bebfafd5c0696035e6b 100644 (file)
 
        function truncate_string($str, $max_len) {
                if (mb_strlen($str, "utf-8") > $max_len - 3) {
-                       return mb_substr($str, 0, $max_len, "utf-8") . "...";
+                       return mb_substr($str, 0, $max_len, "utf-8") . "&hellip;";
                } else {
                        return $str;
                }
 
                        if ($hidden) {
                                $holder_style = "display:none;";
-                               $ellipsis = "...";
+                               $ellipsis = "";
                        } else {
                                $holder_style = "";
                                $ellipsis = "";
                                        if ($collapsed == "t" || $collapsed == "1") {
                                                $holder_class = "feedCatHolder";
                                                $holder_style = "display:none;";
-                                               $ellipsis = "...";
+                                               $ellipsis = "";
                                        } else {
                                                $holder_class = "feedCatHolder";
                                                $holder_style = "";
                                $tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
                                
                                if ($num_tags == $tag_limit) {
-                                       $tags_str .= "...";
+                                       $tags_str .= "&hellip;";
 
                                } else if ($num_tags < $tag_limit) {
                                        $tags_str .= $tag_str;
                        $tags_str = preg_replace("/, $/", "", $tags_str);
                        $f_tags_str = preg_replace("/, $/", "", $f_tags_str);
 
-                       $all_tags_div = "<span class='cdmAllTagsCtr'>...<div class='cdmAllTags'>All Tags: $f_tags_str</div></span>";
+                       $all_tags_div = "<span class='cdmAllTagsCtr'>&hellip;<div class='cdmAllTags'>All Tags: $f_tags_str</div></span>";
                        $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
 
                        if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
                                                if ($num_tags < 5) {
                                                        $tags_str .= "<a href=\"javascript:viewfeed('$tag')\">$tag</a>, "; 
                                                } else if ($num_tags == 5) {
-                                                       $tags_str .= "...";
+                                                       $tags_str .= "&hellip;";
                                                }
                                        }
 
                                        $tags_str = preg_replace("/, $/", "", $tags_str);
                                        $full_tags_str = preg_replace("/, $/", "", $full_tags_str);
 
-                                       $all_tags_div = "<span class='cdmAllTagsCtr'>...<div class='cdmAllTags'>All Tags: $full_tags_str</div></span>";
+                                       $all_tags_div = "<span class='cdmAllTagsCtr'>&hellip;<div class='cdmAllTags'>All Tags: $full_tags_str</div></span>";
 
                                        $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);