Browse Source

twitter finally working properly

pull/1/head
wes 7 years ago
parent
commit
494fd52676
  1. 5
      src/scripts/post.tag
  2. 7
      src/scripts/social.tag

5
src/scripts/post.tag

@ -85,9 +85,6 @@ next(ev) {
return;
}
self.nextloading = " loader-branded";
if (!self.end) {
self.update();
}
self.nextPost(self._id, "fadeIn");
}
@ -124,6 +121,8 @@ updatePost(postcontent) {
self.nextloading = "";
self.route(`/posts/${self._id}`);
self.refs.social.updateButton(self._id);
self.one("updated", self.toTop);
self.update();
}

7
src/scripts/social.tag

@ -4,8 +4,6 @@
<script>
import './raw.tag';
import { default as _ } from 'lodash';
import { default as jquery } from 'jquery';
var self = this;
self.tweetHtml = "";
@ -24,11 +22,6 @@ updateButton(_id) {
}
}
window.twttr.ready((twttr) => {
console.log("initial load");
self.updateButton(self.opts.postid);
});
self.on("updated", () => {
if (window.twttr.widgets !== undefined) {

Loading…
Cancel
Save