Commit Graph

416 Commits (8e5687a4afc12887c1c9706269edbf6ec8df78cd)

Author SHA1 Message Date
Julian Lam 54e36f7c54 Update ajaxify logic w/ returnPath support
If returnPath is defined, and url is null, then ajaxify will
execute a replaceState instead of an ajaxification.

Used in cases where a separate route is pushed but you'll want to
return to the page you were on previously. (see: )
barisusakli e11140b7ef retry once
psychobunny 54d47e1e24 allow data-ajaxify=false for external links to override config.openOutgoingLinksInNewTab
Barış Soner Uşaklı cf681721d5 responseJSON is undefined on 502
psychobunny 45bc387749 Revert "fixes #4289"
This reverts commit c2b428cc95.
Julian Lam c2b428cc95 fixes
barisusakli e6cf8ec5cf more flagged posts shenanigans
barisusakli f09ee86e42 closes
barisusakli 694b96ea60 closes
Julian Lam b52475c270 Merge remote-tracking branch 'origin/master' into user-icons
Conflicts:
	public/src/client/account/edit.js
	src/middleware/middleware.js
	src/socket.io/meta.js
	src/socket.io/user/picture.js
	src/user.js
	src/views/admin/manage/group.tpl
barisusakli d146bff2a1 send less data when leaving rooms
barisusakli f2d6f931af closes
barisusakli b556652582 fix chat redirect
Julian Lam 97dd5500a1 Merge remote-tracking branch 'origin/master' into user-icons
barisusakli 22d6742422 closes
Julian Lam c2da45c2f0 user profile changing logic
barisusakli 9361ff0772 closes
barisusakli 95b709c806 dont crash if data.responseJSON doesnt exist
barisusakli c3719ea5b5 closes
barisusakli 9d4d904479 404 fix
barisusakli 48512bff6b get rid of app.exposeConfigToTemplates
barisusakli 0be3bd1893 removed ajaxify.variables
barisusakli eaefd9d24c remove meta/title.js and meta.title.build
barisusakli 5e3e1f8781
barisusakli 9e1d5c8113 closes
barisusakli 5a15ee7713
Julian Lam 93007bc34f fixed regression of pagination caused by changes to ajaxification logic
Julian Lam 7e6703c18e more line ending conversion
Julian Lam 957766c1d7 fixed
Julian Lam fdefff3516 fixes
barisusakli 1413fc1b1a closes
Julian Lam 22251cb0bd fixed , introduced new navigation data property, "targetBlank", deprecated "target", which was never exposed anyway, and updated default values
Julian Lam 4b9eab6dc0 fixes
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
psychobunny 0816928949 unset preloader cache after loading url
psychobunny 09c632330b render widgets sooner
psychobunny bfcd13144e Merge branch 'master' of https://github.com/NodeBB/NodeBB
psychobunny 4ee055c3ea closes
barisusakli e035d8f1de closes
fixes user images in subfolder installs, if user image has https dont
append relative_path,
also removes relative_path in ajaxify.loadData so it doesnt call
/forum/api/forum/category etc.
psychobunny 5b17f9a7a4 added caching per url + rate limiting mechanism to prefetcher, closes
psychobunny 1e05a92c1e no need to send prefetched state anymor
psychobunny 71214c6255 fixed preloader
psychobunny fee591e551 fixes
psychobunny 1fecbd0b90 fixed function signature for ajaxify.loadData
Julian Lam 667a78902e closed
psychobunny bf63c927c6 trigger ajaxify.loadingData regardless of cached state
psychobunny 7f011fe583 calling it ajaxify.preloader instead
psychobunny d5bf83f43f closes
psychobunny 10716c37d3 closes
Julian Lam b56df975e0 fixed 1495
barisusakli d43d363a7a refactored topics.js
removed ajaxify.register_events using removeListener now