sbd-npm 1.5.32 → 1.5.33

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/snowball_tweet.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.32",
3
+ "version": "1.5.33",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/snowball_tweet.js CHANGED
@@ -109,7 +109,16 @@ $(function () {
109
109
  $("#today_tweet_statistics_modal_body").html(html.join("")).find("a").each(function() {
110
110
  $(this).click(function() {
111
111
  Tweet.set_today_date();
112
- $("#uid").val($(this).attr("data-val"));
112
+ $("#tweet_list").html("");
113
+ let uid = $(this).attr("data-val");
114
+ if (uid) {
115
+ let user_name = $(this).text();
116
+ let uid_object = $("#uid");
117
+ if (uid_object.find("option[value='" + uid + "']").length === 0) {
118
+ uid_object.append($("<option>", { value: uid, text: user_name }));
119
+ }
120
+ uid_object.val(uid);
121
+ }
113
122
  $('#today_tweet_statistics_modal').modal('hide');
114
123
  setTimeout(Tweet.fetch_tweet_data, 789);
115
124
  });