Julian Lam
d1685600d3
refactor: deprecate action:script.load, use filter:script.load instead
4 years ago
Julian Lam
d0136074b6
feat: allow hook unregistration, and temporary page-based hooks
...
Temporary hooks automatically unregister themselves on the next ajaxify, making them perfect for in-page events.
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Peter Jaszkowiak
9f6a682ca9
chore: eslint no-script-url
4 years ago
Julian Lam
f8bf9e99c4
fix: pass module name to `static:script.init`, +comments
...
I feel it is difficult to know exactly what the original use-cases were for these hooks, so some comments may be helpful.
4 years ago
Barış Soner Uşaklı
05be1c6603
feat: restore action:script.load, allow modifying loaded module via static:script.init
4 years ago
Julian Lam
8b09292e77
chore: add deprecation notice in comments for ajaxify.loadExtraScripts
4 years ago
Julian Lam
7da1b43f2b
fix: script failure if client-side page script does not exist
4 years ago
Julian Lam
faf5960373
fix: bug where `action:ajaxify.end` was never called if there were no init scripts
4 years ago
Julian Lam
8e5687a4af
refactor(hooks): deprecate `action:script.load` client-side hook
...
Use `static:script.init` instead.
4 years ago
Julian Lam
1d77572117
feat(hooks): update action:ajaxify.end to use new hooks module
4 years ago
Julian Lam
e5edbc6faf
feat: automatically attempt socket.io reconnection on ajaxify
...
Also, updated messaging and toaster to accurately reflect offline-mode state
4 years ago
Barış Soner Uşaklı
c1ecfd1ebf
feat: #9135 , don't try to reconnect forever
4 years ago
Barış Soner Uşaklı
5d00b0895b
fix: sso redirect on /login & /api/login
4 years ago
Barış Soner Uşaklı
698718f87c
feat: allow modifiying browser title on ajaxify
4 years ago
Barış Soner Uşaklı
73746bb489
refactor: remove old hack
4 years ago
Barış Soner Uşaklı
6f68f4d20a
fix : #9032 , fix login redirect for sso plugins
4 years ago
Barış Soner Uşaklı
5ceda14874
Revert "fix: #8955 , popstate to purged topic should go to homepage"
...
This reverts commit 39dae0aaff
.
4 years ago
Julian Lam
39dae0aaff
fix : #8955 , popstate to purged topic should go to homepage
4 years ago
Barış Soner Uşaklı
5fa098326f
fix: https://github.com/NodeBB/NodeBB/pull/8685
...
fix category link redirect on cold load
fix helpers.redirect if passed in url is external
fix ajaxify so it doesn't slice first character of external url
4 years ago
Peter Jaszkowiak
e128264b66
refactor: change Benchpress.parse to .render ( #8856 )
...
It has been deprecated with no warning message for a while
Changing these over before enabling the warning message to reduce spam
4 years ago
Barış Soner Uşaklı
c107649b40
fix : #8732
4 years ago
Barış Soner Uşaklı
6669b23d9a
feat: single href
4 years ago
Barış Soner Uşaklı
5002e0f62c
feat: refactor app.js
4 years ago
Barış Soner Uşaklı
3cd3b7a172
feat: remove app.template
4 years ago
Barış Soner Uşaklı
630bac2aa5
feat: remove global window.templates
4 years ago
Barış Soner Uşaklı
94da9fe55e
feat: add partials/footer/js.tpl
...
add ajaxify.coldLoad which gets called from partials/footer/js.tpl
5 years ago
Julian Lam
9adaccd036
feat: +assetBaseUrl, -l10BaseUrl, -requireBaseUrl
...
Additional base URLs were necessary for benchpress and translator,
and in order to not clutter the API response with needless one-
time use base URLs, I decided to use a single base that is used
by all of the services, assetBaseUrl.
5 years ago
Baris Usakli
9f78bd7a12
fix: sitemap ajaxify
6 years ago
Julian Lam
289dada5f7
fix(deps): update to eslint@6
6 years ago
Julian Lam
a97e97b9c3
fix: incorrect pathname format for app.previousUrl
6 years ago
Julian Lam
7e5cb72a59
fix : #7618 save pathname into app.previousUrl ins. of entire url
6 years ago
Julian Lam
a41769e61c
feat: update meta tags on ajaxify ( #7580 ), fixes #7544
...
* feat: wip -- refresh meta tags on ajaxify
* feat: wrapped up meta tags update on ajaxify feature
* fix: removed commented-out line
* fix: removed another commented-out line
6 years ago
Julian Lam
8aebe88417
fix : #7306
6 years ago
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
6 years ago
Barış Soner Uşaklı
4293403451
#6535 , use templateToRender clientside if its avaiable
7 years ago
Julian Lam
a3e724e134
resolve window opener being set if ajaxify overrides on external link
7 years ago
Barış Soner Uşaklı
d60d03d00f
closes #6542
7 years ago
Barış Soner Uşaklı
d5e85c2eb3
closes #6476 , closes #6546
7 years ago
Barış Soner Uşaklı
6940612688
closes #6410
7 years ago
Barış Soner Uşaklı
8ed86aaf13
closes #6476
7 years ago
Julian Lam
877b45ab00
adding old path to uploads as well, to ajaxify shirt-circuit
7 years ago
Julian Lam
bdbdf510e0
closes #6462
7 years ago
Barış Soner Uşaklı
802ec0e384
remove reduntant code
7 years ago
Barış Soner Uşaklı
76e8bcd80b
closes #6167
7 years ago
Julian Lam
94e8b2b38d
Added ajaxify.isCold()
...
And used it in app.js, so window.scrollTo(0, 0); is not called
on cold load (since you're already at the top). Useful in low-
bandwidth modes since you might accidentally get kicked to the
top of the page due to a slow connection and delayed .init().
Slightly related to testing in #6150
7 years ago
Barış Soner Uşaklı
cb4930dac8
remove version and environment from config
7 years ago
Barış Soner Uşaklı
b74fe98dc4
closes #6031
7 years ago
Peter Jaszkowiak
dc87d7fc0f
Use .js instead of .jst
...
Fix #5934
7 years ago
Peter Jaszkowiak
dc3f89a505
ajaxify t.js usage to Benchpress
8 years ago