Commit Graph

586 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
fda2aedfd8 feat: #8734, jquery-ui, jquery-form, timeago (#8748)
* feat: #8734, jquery-ui, jquery-form, timeago

get rid of forum/footer.js move that code to app.js & wait for app to load before calling ajaxify.end
make sockets.js a requirejs module
move jquery-ui to node_modules and load via requirejs
move jquery-form to node_modules and load via requirejs
move timeago to node_modules and load via requirejs
only include the css for needed jquery-ui widgets

* feat: keep socket/io global for backwards compat

* refactor: move socket listener to chat
2020-10-10 21:47:27 -04:00
Julian Lam
3c7f79cb8a fix: use console.info instead of console.log for sw registration 2020-10-05 13:45:09 -04:00
Barış Soner Uşaklı
c33dc90562 Merge branch 'master' of https://github.com/NodeBB/NodeBB 2020-09-30 12:41:33 -04:00
Barış Soner Uşaklı
54737d3076 feat: #8233, search sub categories 2020-09-30 12:41:23 -04:00
Julian Lam
8437130ec2 fix: early button/anchor clicks do nothing
This reverts commit a395324b52, and
fixes the issue where the ACP became unusable because of the earlier
variant of this code.

Thanks @psychobunny for spotting.
2020-09-30 09:18:46 -04:00
Barış Soner Uşaklı
a395324b52 Revert "fix: early button/anchor clicks do nothing"
This reverts commit 966d3f7654.
2020-09-29 18:57:16 -04:00
Julian Lam
966d3f7654 fix: early button/anchor clicks do nothing
This solves a small UX issue where clicking on a button (or anchor
that is not meant to be ajaxified) before ajaxify.end is called
leads to nothing happening because the appropriate click handler
has not been added.

This code will intercept premature clicks, wait until ajaxify.end
is called, and then re-send the click.
2020-09-29 14:40:38 -04:00
psychobunny
aa268d5eeb feat: register service worker, #8126 2020-09-28 17:46:43 -04:00
Barış Soner Uşaklı
f2f3ba49b6 feat: hightlight matches in quick search
fix title hightlights
2020-09-22 21:20:02 -04:00
Barış Soner Uşaklı
d38c872259 feat: add loading indicator 2020-09-22 20:22:50 -04:00
psychobunny
82ab6cd3b1 fix: tooltip placement on navbar search 2020-09-22 19:25:56 -04:00
psychobunny
683c01b0d3 fix: rogue tooltip on navbar profile icon 2020-09-22 19:12:12 -04:00
Barış Soner Uşaklı
02a48e1c64 fix: change user tooltip container to content 2020-09-21 12:04:29 -04:00
Barış Soner Uşaklı
047c414841 fix: add user tooltips to body
so they don't get cutoff  in containers with overflow:hidden
2020-09-18 21:28:52 -04:00
Barış Soner Uşaklı
42298fe659 fix: clear old value on focus
hide results if input lost focus during search
2020-09-15 23:00:01 -04:00
Barış Soner Uşaklı
5002e0f62c feat: refactor app.js 2020-09-06 22:36:09 -04:00
Barış Soner Uşaklı
630bac2aa5 feat: remove global window.templates 2020-09-06 21:55:31 -04:00
Barış Soner Uşaklı
94da9fe55e feat: add partials/footer/js.tpl
add ajaxify.coldLoad which gets called from partials/footer/js.tpl
2020-09-04 20:53:21 -04:00
Julian Lam
589216e720 fix: multiple alerts in the same millisecond overwrite each other 2020-08-20 14:32:20 -04:00
Barış Soner Uşaklı
3f01f4a2b8 Revert "feat: load timeago strings client-side"
This reverts commit 558a2d739c.
2020-08-11 11:06:46 -04:00
Julian Lam
558a2d739c feat: load timeago strings client-side
9adaccd036 introduced the ability to
configure an assetBaseUrl, but the timeago strings were still
calling a hardcoded value as it was handled server-side. There's
no need for the strings to be loaded until timeago is initialised.
2020-08-11 11:00:45 -04:00
Barış Soner Uşaklı
ec05783507 feat: remove js-enabled.css 2020-07-22 10:38:52 -04:00
Julian Lam
2286ee2a61 fix: invalid session error modal during logout
A brief flash can be seen, but this is exacerbated by slow
connections and/or slow server response.
2020-07-13 15:17:46 -04:00
Barış Soner Uşaklı
b459592a4e Merge branch 'master' of https://github.com/NodeBB/NodeBB 2020-06-16 14:58:09 -04:00
Barış Soner Uşaklı
f70d1648c6 feat: show more relevant snippets 2020-06-16 14:58:02 -04:00
Julian Lam
5a367ecbb4 fix: remove use of 'hidden' class in navbar toggling 2020-06-15 17:35:05 -04:00
Barış Soner Uşaklı
6349fa03e1 feat: more search changes 2020-06-10 16:56:05 -04:00
Barış Soner Uşaklı
4b38533b15 feat: more merge/search fixes 2020-06-10 15:11:57 -04:00
Barış Soner Uşaklı
5fd05dc942 feat: more search & merge fixes 2020-06-09 16:49:56 -04:00
Barış Soner Uşaklı
d92032dad1 fix: prevent logout form from submitting 2020-06-08 15:09:11 -04:00
Julian Lam
922d49be0b fix(style): switch..case 2020-06-03 11:26:08 -04:00
Barış Soner Uşaklı
f12d448ef5 feat: quick search changes 2020-05-27 20:58:54 -04:00
Barış Soner Uşaklı
bb1a56f0fe feat: move quick search into search module
so it can be used directly
2020-05-27 14:37:34 -04:00
Barış Soner Uşaklı
47d73a2ab4 fix: move checks into timeout 2020-05-27 13:25:30 -04:00
Barış Soner Uşaklı
84c20f919b fix: don't explode if server sends checkSession 2020-05-27 13:07:51 -04:00
Barış Soner Uşaklı
5781a2dc65 feat: fix session mismatch errors by clearing cookie on logout (#8338)
* feat: fix session mismatch errors by clearing cookie on logout

* feat: remove app.upateHeader

ported from 2.0

* feat: handle if user doesn't click button and just refreshes page
2020-05-27 12:15:02 -04:00
Barış Soner Uşaklı
d6c2764fe7 fix: don't trigger quick search if val doesn't change 2020-05-22 12:00:05 -04:00
Barış Soner Uşaklı
6f78113ee3 fix: prevent duplicate search triggers
if app.handleSearch is called from a plugin in action:ajaxify.end events are fired multiple time
2020-05-22 11:18:16 -04:00
Barış Soner Uşaklı
ada45a34d5 fix: search post snipets incase content is plain text 2020-05-21 14:14:37 -04:00
Barış Soner Uşaklı
40b5cbab2c refactor: remove console.log 2020-05-14 16:19:50 -04:00
Barış Soner Uşaklı
765b8156d5 feat: parse quick search tpl even if no results
allows showing "no results found" in theme
2020-05-14 16:19:32 -04:00
psychobunny
275e837bcf fix: jquery xhtml violations 2020-04-29 20:46:00 -04:00
Barış Soner Uşaklı
c8fb7f9246 fix: escape register query param 2020-01-19 22:03:18 -05:00
Barış Soner Uşaklı
4b8897d9bc fix: lint 2019-10-22 14:12:52 -04:00
Aziz Khoury
beea56b3c6 ie11 doesnt support Object.values (#7993) 2019-10-22 13:44:18 -04:00
Barış Soner Uşaklı
f31d30cd02 feat: add client side hook for quick search&normal search 2019-08-23 22:25:36 -04:00
Julian Lam
289dada5f7 fix(deps): update to eslint@6 2019-06-22 21:23:32 -04:00
Barış Soner Uşaklı
25ea634787 fix: #7659 add option to change cookie link url 2019-06-13 11:54:39 -04:00
Barış Soner Uşaklı
e65ddc98b5 fix: https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/53 2019-05-23 08:51:47 -04:00
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
2019-05-16 09:41:56 -04:00