summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-03-18 21:01:01 +0900
committersyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-03-18 21:01:01 +0900
commitc79d490ec98625f7b5e396c5572463accb4cf17a (patch)
tree72f6ebbfe0df3b14dc0c14265ce410bbe09613e1 /src
parentFix (diff)
downloadsharkey-c79d490ec98625f7b5e396c5572463accb4cf17a.tar.gz
sharkey-c79d490ec98625f7b5e396c5572463accb4cf17a.tar.bz2
sharkey-c79d490ec98625f7b5e396c5572463accb4cf17a.zip
Update post-detail.tag
Diffstat (limited to 'src')
-rw-r--r--src/web/app/mobile/tags/post-detail.tag11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/web/app/mobile/tags/post-detail.tag b/src/web/app/mobile/tags/post-detail.tag
index 107fca5938..4fc16bcb38 100644
--- a/src/web/app/mobile/tags/post-detail.tag
+++ b/src/web/app/mobile/tags/post-detail.tag
@@ -341,12 +341,11 @@
</style>
<script>
- this.mixin('api');
-
import compile from '../../common/scripts/text-compiler';
+ import getPostSummary from '../../common/scripts/get-post-summary';
+ import openPostForm from '../scripts/open-post-form';
- this.getPostSummary = require('../../common/scripts/get-post-summary');
- this.openPostForm = require('../scripts/open-post-form');
+ this.mixin('api');
this.fetching = true;
this.loadingContext = false;
@@ -364,7 +363,7 @@
post: post,
isRepost: isRepost,
p: p,
- summary: this.getPostSummary(p)
+ summary: getPostSummary(p)
});
this.trigger('loaded');
@@ -421,7 +420,7 @@
});
this.reply = () => {
- this.openPostForm({
+ openPostForm({
reply: this.p
});
};