Commit Graph

333 Commits (b7fbc7a5319c2e5ab4670b53465d8cd3a93a9b19)

Author SHA1 Message Date
Julian Lam 2c62bafdc7 fixed ajaxify for pagination blocks
Julian Lam d712dcdce1 fixed issue where ajaxify couldn't handle urls with "#" href if the currently address already had a hash value present.
Julian Lam 2cb70ceccc added auto-ajaxify on reconnect 😎
Julian Lam f9a29186c4 updated ajaxify 5xx handling code to work even if nginx is used as a proxy (as it serves back 502, not 500)
barisusakli ffd22f50ff closes
barisusakli 1d72a8f0ee fix composer redirect on home page
barisusakli 6d0d74a6e9 moved topic search end to topics.js
barisusakli 3a36ae5c13 wait for loadScript & widgets.render to emit action:ajaxify.end
Julian Lam f6181e6481 fixes
psychobunny a88ad903af action:ajaxify.dataLoaded
Barış Soner Uşaklı b08774763a added tpl to ajaxify.content-loaded
Julian Lam 5a0ea28633 better fix for
Julian Lam e309a188c3 fixed issue in ajaxify.go where search module was not properly required
Julian Lam 821c9f12d6 updated scrollToPost behaviour to no longer ajaxify loudly. Also updated call to checkPagePresence to fire before the topicDOM events begin, so if an in-topic search is conducted on a different topic from the current topic, the topicDOM behaviour continues. closes
Julian Lam 1c36fbd57b fixed
psychobunny 13b4e446bf closes
Barış Soner Uşaklı 7abbbbfccf closes
barisusakli f96f6d9e2e shorter
Barış Soner Uşaklı 925b12ca22 startsWith
Julian Lam 47a7ab15be refactored translator system to be a require.js module, and not a global
Julian Lam e340b9fffe fixed save/delete/purge in category ACP,
Barış Soner Uşaklı 027f9e5a83 dont need start time anymore
psychobunny bc056f0724 can remove this line as well
psychobunny 5d7ce0011a no need for setTimeout in ajaxify
psychobunny 3ed3612047 file upload with spaces / general file upload fix wrt ajaxiy
Julian Lam 406126536a missing semicolon
Julian Lam 9fc97ce92d fixing handleACPRedirect on subfolder installs
barisusakli c448c8cc8c closes
barisusakli fd1b7bbd3a fix redirection
barisusakli f89741636c return false to prevent default
barisusakli ca31ac882c added return true/false
Julian Lam 40763d2ae7 again
Julian Lam 57a64870fd actually fixing
Barış Soner Uşaklı 53e0615df7 removed path use external
Barış Soner Uşaklı 4d45a81fdb closes
psychobunny e47c375e69 closes
barisusakli e5dc408ef5 change current page after ajaxify:start event
barisusakli f87f797bed dont keep window.location.search on regular ajaxify
barisusakli 289474edf7 closes
barisusakli 63a6702285 removed whitespace
barisusakli 23a6b33f64 not used
barisusakli 2a8437f08f removed templates config and mapping 🐑
Julian Lam 00f3084b8e closes , closes , closes , closes , closes , closes , closes , closes
Squashed commit of the following:

commit ca5064a4effa3904ce936b521b169bba8d24f1a1
Author: Julian Lam <julian@designcreateplay.com>
Date:   Thu Feb 26 08:19:32 2015 -0500

    Revert "added ajaxify popstate cache, so back/forward will just put back the already loaded page"

    This reverts commit 77d154bb8b.

commit ae07fc56c156074de8048bb627f5d9be849c8ad1
Author: Julian Lam <julian@designcreateplay.com>
Date:   Thu Feb 26 08:19:24 2015 -0500

    Revert "on click, topics are marked read from the unread page. Also fixed an issue where isPopState kept getting set to true, causing issues"

    This reverts commit d8c9ec0d40.

    Conflicts:
    	public/src/client/unread.js

commit 96ee3631d7e4e1fc2c1b7632d86684fecd1e430f
Author: Julian Lam <julian@designcreateplay.com>
Date:   Thu Feb 26 08:18:25 2015 -0500

    Revert "actually fixed isPopState error"

    This reverts commit e6701c5a1f.
psychobunny 26245133f3 linted client-side core modules
Julian Lam e6701c5a1f actually fixed isPopState error
Julian Lam d8c9ec0d40 on click, topics are marked read from the unread page. Also fixed an issue where isPopState kept getting set to true, causing issues
Julian Lam 77d154bb8b added ajaxify popstate cache, so back/forward will just put back the already loaded page
Julian Lam 8a581ed1dd fixes :rage2:
Julian Lam 57d45518bd added a preventDefault when href="#" or data-ajaxify="false", so page doesn't send user back to top (which is kind of annoying), but not sure if this may introduce side-effects. @barisusakli @psychobunny
barisusakli 200f74f1c7 closes
barisusakli bbfec7d443 fix post index parse
barisusakli 08c1dad3ee topics.isFollowing works with multiple tids now
psychobunny a7d73d4106 fixes adding new routes to user/xxx/route
psychobunny 5ee0ed401f fixed ajaxify's redirecting to external URLs.. well fixed redirecting in general
Julian Lam b278f27ffe partial fix to
barisusakli ddd6ed9e8c 403 page
barisusakli be11577aa4 closes
barisusakli 47c1092842 moved registerLoader/refresh to top
barisusakli 776fb29dce removed preloader leftovers
psychobunny 45affa3043 closes
barisusakli 7a51520074
barisusakli 0ede4abe18 possible fix for
barisusakli 7de9b998b5 fix typo in ajaxify, closes
psychobunny ed60deb3f5 fixed ACP from previous commit
barisusakli 43806e5921 replay ie host fix
https://github.com/NodeBB/NodeBB/pull/2216
Julian Lam dedf7a6715 closed
psychobunny 15052143d3 that preloader, will blow up your datacenter.
barisusakli 0dc780148a removed global room
socket.io already puts everyone into a room named ''
Julian Lam 063a4e5628 finished up UX integration for in-topic searching, added mousetrap lib to capture ctrl-F only in topic view, closed
Julian Lam 347d7de25b an ajaxify.go 302 will pass callback and quiet arguments along as well now
Julian Lam e497290dbc removed commented-out code
Julian Lam fcbdc5e271 added recompilation of templates to NodeBB Reloading -
Julian Lam 5936c72f96 further fix to
barisusakli 53d20cf058 parse variables before rendering widgets
psychobunny 193832ea9b closes
psychobunny a880ac6e9f do one api call for template configs rather than two on cold load
barisusakli 4fd2973c53 closes
barisusakli e0be4d146f closes
barisusakli 8146358aac closes
fixed translator.load, it wasn't passing in language and was trying to
load undefined.json
barisusakli 093e373025 removed console.log
barisusakli 2d94df93b8 isArray is enough
psychobunny 67c5477fb2 testing transition speed change without waiting for widgets to render
psychobunny 310dbc754e closes
psychobunny 224dd49102 no need to delay prefetcher anymore
psychobunny 829dcb134e logic fail, time for coffee
psychobunny e382e34656 unnecessary brackets
psychobunny 2851a9a96b don't ajaxify in until animation is completed; reduced minimum wait duration for preloader
barisusakli 9aeab08109 removed stop
barisusakli 93a6402879 removed stop increase timeout to 100ms
psychobunny 5b6acbad1e optimized widget call by bundling all queries into one for ; fixes active users widget crash
also fixes b3819fd076 properly
psychobunny c6183f1a82 closes
psychobunny ecbb05ccca widgets.render doesn't actually use the url
Julian Lam 186473fa7b adding undefined check to hrefEmpty
frissdiegurke 2d9bc7eee7 fixed no href-attribute handled as external link
barisusakli 501c81e357 closes
barisusakli aadca3a675 fix calls to removeRelativePath in ajaxify.js
barisusakli db84ced78f removeRelativePath public
Charles 9734403114 Fix removeRelativePath
Instead of checking the existence of relative_path (without /) anywhere on the url, it really should check that the url only starts with the relative_path.

Example

```
relative_path = /forum
without / = forum
url = /category/forum/5
removeRelativePath = ory/forum/5
```
barisusakli b2e48b21a2 pass url to onAjaxError
psychobunny b881131a65 fixes