Commit Graph

169 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
19c448612d feat: remove global RELATIVE_PATH 2020-09-06 22:12:53 -04:00
Barış Soner Uşaklı
79e847d424 fix: #8558, only navigate if user is in same topic 2020-08-11 10:20:17 -04:00
Barış Soner Uşaklı
519e665939 fix: #8538, go to first unread instead of last read 2020-07-31 10:34:10 -04:00
Barış Soner Uşaklı
50703db879 fix: #8363, dont break history 2020-06-05 18:24:11 -04:00
Barış Soner Uşaklı
0c265a41d4 fix: #8363, go to hash when entering topic 2020-06-05 17:56:31 -04:00
Julian Lam
f2c725c658 fix: topic search shortcut for macs 2020-05-06 12:55:54 -04:00
Barış Soner Uşaklı
6e5de39ba0 fix: also fix updating bookmark if sorting is newest_to_oldest 2020-02-27 18:56:22 -05:00
Barış Soner Uşaklı
bd640a1107 Topic await errors (#7727)
* feat: derp await

* feat: restore user.getSettings

* feat: cleanup

* feat: make tid const

* feat: cleanup

* fix: tests

* feat: deprecate filter:controllers.topic.get

* feat: rewrite post-index logic

* feat: change calculation to match others

* fix: use .async

* feat: remove try/catch wrapper
2019-07-03 12:48:26 -04:00
Julian Lam
98c14e0e68 fix: removal of scroll anchoring code in favour of browser handling
closes #6150
2018-11-20 16:56:54 -05:00
Barış Soner Uşaklı
1ce15e69ab dont require search and moustrap on topic page until needed 2018-11-18 10:32:08 -05:00
Barış Soner Uşaklı
c02d584b53 reduce initial js payload/requests 2018-11-17 20:50:07 -05:00
Baris Usakli
c343b93a37 optimize ajaxify
- do not call $.timeago twice on topic load and for widgets
- do not use toLocaleString for each timeago string, use a single
Intl.DateTimeFormat instance instead
- do not call format for empty timeago strings, ie a post that isnt
edited doesnt have a timeago string
- do not call isTouchDevice for every element
- remove app.replaceSelfLinks, this is superceded with /me route
- store references to jquery objects in navigator instead of creating
them on every scroll
2018-11-17 14:07:56 -05:00
Julian Lam
c95ad2c46a closes nodebb/nodebb-theme-persona#339 2018-10-11 14:29:49 -04:00
Ben Lubar
00776bdd8e Bookmark optimization (#6315)
* Set the user's bookmark if their current bookmark is past the end of the topic.

* Optimize forked topic bookmark updating.

Remove support for updating bookmarks for users who sort by votes.

Don't even consider updating bookmarks for users who have not read the posts being removed.

Only compute post indices once per fork operation instead of once per user that has ever read the topic.
2018-02-08 10:50:12 -05:00
Barış Soner Uşaklı
96084340ad closes #6186 2017-12-19 16:03:05 -05:00
Barış Soner Uşaklı
548ec6baf7 closes #6144 2017-12-03 08:32:31 -05:00
Baris Usakli
9dee81b37f closes #5830 2017-07-14 17:29:31 -04:00
Barış Soner Uşaklı
bca79da8c6 closes #4197
add in-topic search support to dbsearch
prevent multiple click handlers on in-topic search widget(each click was
causing multiple scrolls)
fix index
2017-07-12 19:29:41 -04:00
Barış Soner Uşaklı
53a2a7244d closes #5765 2017-06-20 23:08:12 -04:00
Barış Soner Uşaklı
b13ed26587 closes #5755 2017-06-13 20:15:48 -04:00
Barış Soner Uşaklı
3a1eba2537 merge 2017-05-08 13:49:35 -04:00
barisusakli
73700ed747 closes #5617 2017-04-21 13:48:43 -04:00
Peter Jaszkowiak
30b47d39f3 Fix #5536 2017-04-19 20:33:03 -06:00
barisusakli
5ca8456340 move image code to client/topic/images 2017-03-02 18:11:31 +03:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
277a7fb8b4 ESlint key-spacing, no-trailing-spaces 2017-02-18 01:27:46 -07:00
Peter Jaszkowiak
b1b486f729 ESlint quote-props 2017-02-18 01:19:20 -07:00
Peter Jaszkowiak
52f2028206 ESlint no-multiple-empty-lines 2017-02-17 22:08:23 -07:00
Peter Jaszkowiak
b09b3aef7f ESlint no-undef, remove global comments 2017-02-17 22:03:55 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Ben Lubar
ea10f51f2e UI for replies-to-post (needs theme update) 2016-10-27 18:45:21 -05:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
5e77b87a1e removed scroll duration 2016-09-17 16:19:24 +03:00
barisusakli
a72ccfb067 only remove page # on IS 2016-09-15 19:16:52 +03:00
barisusakli
8868668daa fix navigator displaying wrong index
related to #4998
2016-08-31 23:23:25 +03:00
Mathias Schreck
ce9ee62fa0 Handle callback errors 2016-08-17 12:54:59 +02:00
barisusakli
9207d6a74d fix so the parent button doesn't ajaxify if the post is already on the screen 2016-08-16 23:27:43 +03:00
Julian Lam
e019eb40c4 altering ajaxify abort behaviour to look for null instead of empty string, and triggering ajaxify.end when abort occurs 2016-08-10 12:50:41 -04:00
Ben Lubar
85e42aee6e make ?page=[numbers] links work for users with pagination disabled. remove ?page when updating the URL for infinite scroll 2016-07-17 15:47:58 -05:00
Ben Lubar
3214d00105 convert post parent button to a link 2016-07-14 16:28:11 -05:00
barisusakli
4bbc8110a9 closes #4772 2016-06-21 14:43:38 +03:00
barisusakli
e8650dcaa4 closes #4619 2016-05-10 11:39:38 +03:00
barisusakli
ff9b2bad49 closes #4512 2016-04-18 16:07:04 +03:00
Julian Lam
f91f705f90 Merge branch 'master' into fix-vendors 2016-04-04 18:46:24 -04:00
barisusakli
3a27e7b0ea closes #4405 2016-03-29 12:39:41 +03:00
barisusakli
3b9120cd38 closes #4476 2016-03-28 11:28:41 +03:00
Julian Lam
add82ba6c9 Added threshold detection when scrolling upwards
... for less jolty upwards scrolling.
2016-03-28 01:53:36 -04:00
Julian Lam
3e2231d2cb Fixing viewport shuffling due to image load
Introduced new method ".loadImages()" in posts client side lib
to handle viewport height changes when loading images. Requires
nodebb-plugin-markdown@5.0.0

@BenLubar @boomzillawtf
2016-03-27 15:56:49 -04:00
RaceProUK
fd854b134d Allow for a little scrolling before dismissing bookmark alert
This is just in case someone scrolls a little accidentally; the alert remains so they can still follow it if they want to
2016-03-21 19:49:35 +00:00