From 892a9e13891cda19170af9052d8b7cdd2c447a99 Mon Sep 17 00:00:00 2001 From: wes Date: Tue, 25 Jul 2017 18:57:43 -0400 Subject: [PATCH] add data-text with the title and attrib --- src/scripts/post.tag | 2 +- src/scripts/social.tag | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/post.tag b/src/scripts/post.tag index 98041f7..c4e05ca 100644 --- a/src/scripts/post.tag +++ b/src/scripts/post.tag @@ -121,7 +121,7 @@ updatePost(postcontent) { self.nextloading = ""; self.route(`/posts/${self._id}`); - self.refs.social.updateButton(self._id); + self.refs.social.updateButton(self._id, self.title); self.one("updated", self.toTop); self.update(); diff --git a/src/scripts/social.tag b/src/scripts/social.tag index 2e57afe..452588e 100644 --- a/src/scripts/social.tag +++ b/src/scripts/social.tag @@ -10,13 +10,13 @@ self.tweetHtml = ""; self._id = ""; -updateButton(_id) { +updateButton(_id, title) { if (_id == undefined) { _id = self.opts.postid; } if (_id != self._id) { - self.tweetHtml = ``; + self.tweetHtml = ``; self._id = _id; self.update(); }