41 Commits (90e72f4ea68e2eb6c32a69c3089478bf8e3545c7)

Author SHA1 Message Date
Barış Soner Uşaklı dc670a7bb5 closes #6983
after first pass of timeago, title contains "21 lis 2018, 10:30" which is invalid for new Date(), check before passing it to format
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
psychobunny 76a2b4800b add back timeago.allowFuture so we can notify when a ban will expire 8 years ago
Barış Soner Uşaklı 670a5d9ca0 fix timestamp not showing for replies, remove allowFuture @julianlam 8 years ago
Peter Jaszkowiak b227297ef3 ESlint no-use-before-define 8 years ago
Peter Jaszkowiak a0a50677da ESlint n-loop-func, yoda 8 years ago
Peter Jaszkowiak 64a6322002 ESlint no-extra-boolean-cast
and no-shadow-restricted-names
8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak 34e233fe1d ESlint spaced-comment 8 years ago
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines 8 years ago
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments 8 years ago
Julian Lam d77f417cf3 allowing timeago timestamps to be in the future 8 years ago
Peter Jaszkowiak 0b4c39338e Translation bootbox wrapper
- Replaced minfied bootbox file with unminified one since it's minified at build anyways
- Removed existing override
- Made translator more verbose in dev mode; it now warns about missing translations
8 years ago
barisusakli 4cb48c46ab closes #5242 8 years ago
Julian Lam d28f7de19e fixes #5228 8 years ago
Julian Lam 0f93206122 lint 8 years ago
Julian Lam 7d523fae0f closes #5200 8 years ago
Julian Lam 885316d78f also show minutes and hours in cut off timestamp 8 years ago
Julian Lam 75ff60e4d5 partial revert of a9984bb, adding in a layer to translate ISO
timestamp to datetime attribute and save localised string into
title attribute.

Fixes #5109
8 years ago
barisusakli a9984bb926 closes #5108 8 years ago
Sergii Paryzhskyi e515b791da Fix eslint rules (#5117)
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
HeeL 9a0d764bbd Fix wrap-iife linter rule 8 years ago
barisusakli 5983235875 .translateAttr 9 years ago
Julian Lam ff8fb0e9ab no need to set var, just use rjs 9 years ago
Manuel Valle a60e3c63cf Update overrides.js
Inside **translate** function, **translator** refers to *global* genereting warnings. Added a **translator** variable refering to **translator** module.
This solves some problems using *bootbox* in my plugins and widgets
9 years ago
Julian Lam dc916c5e3c closes #3817 9 years ago
barisusakli fbfb39f967 moved socket connection out of app.js 9 years ago
Peter Jaszkowiak ad7b561dd4 Fixed translator backwards compatibility issue
Also removed the _clearMenus global object because populating the global namespace is bad, bad, bad
10 years ago
Julian Lam 47a7ab15be refactored translator system to be a require.js module, and not a global 10 years ago
psychobunny 32ce785e5a somebody was trying to save trees by reducing whitespace
burn the trees
10 years ago
psychobunny 540facaaab try #2 (I give up, grunt-watch seems so unpredictable... on windows anyways) 10 years ago
barisusakli c5ccf4333b translate helpers 11 years ago
psychobunny 4cd86affae update all files with new url 11 years ago
Micheil Smith 3e82cab398 Add missing new lines at end of files. 11 years ago
barisusakli 1664d179b9 closes #1245 11 years ago
akhoury b59c10a1e9 took out some overrides out utils to a new overrides.js 11 years ago