sbd-npm 1.2.9 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +12 -4
- package/.npmignore +0 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1712,13 +1712,15 @@ const Util = {
|
|
1712
1712
|
}
|
1713
1713
|
$(this).click(function () {
|
1714
1714
|
if (!Util.is_loading()) {
|
1715
|
-
$(this).parent()
|
1715
|
+
let this_parent = $(this).parent();
|
1716
|
+
this_parent.parent().find("i").each(function () {
|
1716
1717
|
if ($(this).hasClass("fa")) {
|
1717
1718
|
$(this).removeClass("fa-sort-asc");
|
1718
1719
|
$(this).removeClass("fa-sort-desc");
|
1719
1720
|
if (!$(this).hasClass("fa-sort")) {
|
1720
1721
|
$(this).addClass("fa-sort");
|
1721
1722
|
}
|
1723
|
+
$(this).parent().removeClass("info");
|
1722
1724
|
}
|
1723
1725
|
});
|
1724
1726
|
let sort_type = $(this).attr("data-val").toString();
|
@@ -1729,12 +1731,13 @@ const Util = {
|
|
1729
1731
|
Obj[sort_order] = Obj[sort_order] === 0 ? 1 : 0;
|
1730
1732
|
}
|
1731
1733
|
let sort_cls = Obj[sort_order] === 0 ? "fa-sort-desc" : "fa-sort-asc";
|
1732
|
-
|
1734
|
+
this_parent.find("i").each(function () {
|
1733
1735
|
if ($(this).hasClass("fa")) {
|
1734
1736
|
$(this).removeClass("fa-sort");
|
1735
1737
|
$(this).addClass(sort_cls);
|
1736
1738
|
}
|
1737
1739
|
});
|
1740
|
+
this_parent.addClass("info");
|
1738
1741
|
callback_func(1);
|
1739
1742
|
}
|
1740
1743
|
return false;
|
@@ -1819,6 +1822,7 @@ const Util = {
|
|
1819
1822
|
if (!$(this).hasClass("fa-sort")) {
|
1820
1823
|
$(this).addClass("fa-sort");
|
1821
1824
|
}
|
1825
|
+
$(this).parent().removeClass("info");
|
1822
1826
|
}
|
1823
1827
|
});
|
1824
1828
|
$(this).find("i").each(function () {
|
@@ -1827,6 +1831,7 @@ const Util = {
|
|
1827
1831
|
$(this).addClass(sort_cls);
|
1828
1832
|
}
|
1829
1833
|
});
|
1834
|
+
$(this).addClass("info");
|
1830
1835
|
});
|
1831
1836
|
});
|
1832
1837
|
},
|
@@ -2284,9 +2289,12 @@ const Util = {
|
|
2284
2289
|
if (item["snowball_follower"] && item["snowball_follower"] > 0) {
|
2285
2290
|
let snowball_follower_rank = Util.to_unit(item["snowball_follower"]) + "(" + item["snowball_follower_rank"] + ")";
|
2286
2291
|
let market_type = Util.is_hk(item["code"]) ? "hk" : "cn";
|
2287
|
-
|
2292
|
+
let url = Util.get_url("rank_holder") + "?sort_type=snowball_follower&market_type=" + market_type;
|
2293
|
+
if (item["code"]) {
|
2294
|
+
url += "&code=" + item["code"];
|
2295
|
+
}
|
2288
2296
|
let tooltip = item["snowball_follower"] + " 人关注,关注排名第 " + item["snowball_follower_rank"] + " 位";
|
2289
|
-
$("#snowball_follower").html(snowball_follower_rank + ' <i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement="top" data-original-title="' + tooltip + '"></i>');
|
2297
|
+
$("#snowball_follower").html(Util.pack_html_link(url, snowball_follower_rank) + ' <i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement="top" data-original-title="' + tooltip + '"></i>');
|
2290
2298
|
$("[data-toggle='tooltip']").tooltip();
|
2291
2299
|
}
|
2292
2300
|
},
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|