Robin Ward
274743b877
Refactor: Move initialization code into separate initializers that use the API we
...
developed for plugins.
2013-12-03 14:22:32 -05:00
Robin Ward
de78ee302a
- Extract Browser capabilities from Discourse namespace into a Singleton.
...
- Change Scrolling slack based on Android / Touch / Desktop
2013-12-03 13:03:19 -05:00
Sam
e57ddcf276
remove discourse dependency from message bus
2013-11-14 16:37:50 +11:00
Robin Ward
a1a89d01c4
JSHint
2013-11-12 11:25:27 -05:00
demil
adcfa4cf9f
Update discourse.js
...
Inserted if (url.indexOf(u) != -1) return url; in getURL function because of bug in subdirectory install on some urls doubles relative url prefix, for example /forum/forum/latest.json. With this fix it works fine.
2013-11-12 02:36:03 +01:00
Régis Hanol
934ede7d91
shorter message for untranslated strings
2013-11-04 11:52:12 +01:00
Sam
b567bd3d37
shift site settings in front of routes
2013-10-18 11:10:10 +11:00
Robin Ward
fc00269b7f
Pop up with user information when clicking avatar on topic page
2013-10-03 13:06:30 -04:00
Robin Ward
63d86eb9eb
FIX: Allow Spoiler plugin (and others that use prototype.on) to work even if ListView was not initialized.
2013-10-01 13:53:26 -04:00
Robin Ward
be0ce08cc2
Ember Upgrade: 1.0
2013-10-01 11:16:27 -04:00
Robin Ward
e3a56864dd
Changes to support Spoiler Alert plugin
2013-09-19 18:01:30 -07:00
Sam
681ff74cb8
Revert "inject currentUser into controllers & routes"
...
This reverts commit 7ec34b205a
.
2013-09-11 13:26:46 +10:00
Neil Lalonde
cc2acafc9a
Enable mobile view. Use local storage to remember whether you chose mobile or desktop view. Mobile device detection needs to be replaced with a better solution.
2013-09-10 16:44:17 -04:00
Gosha Arinich
7ec34b205a
inject currentUser into controllers & routes
...
Through Ember's DI, instead of doing so via a mixin.
2013-09-07 19:34:25 +03:00
Neil Lalonde
82bc6b677f
Add link in hamburger menu to switch between mobile and desktop views
2013-08-29 15:19:28 -04:00
Neil Lalonde
b84c7e4efb
Store mobile flag in Discourse.Session instead of Discourse
2013-08-27 16:50:50 -04:00
Neil Lalonde
009dec833f
Use Discourse.Resolver to load mobile templates when they exist
2013-08-27 13:41:36 -04:00
Sam
7787770758
leftover console.log
...
jshint is upset
2013-08-27 16:02:36 +10:00
Sam
c4a0152dc6
recover from bad CSRF tokens without requiring a hard refresh of the browser
2013-08-27 15:56:12 +10:00
Sam
b69d089d06
we need to decalre favcount to keep tests happy
2013-08-18 21:52:13 +10:00
Chris Hunt
4372fc2f2e
Switch out faviconNotify for favcount.js
2013-08-18 11:26:03 -07:00
Robin Ward
86246a64eb
Convert Discourse.Site
and Discourse.ScreenTrack
to use Discourse.Singleton
2013-08-08 12:49:58 -04:00
Robin Ward
51f5cf77fb
Convert Discourse.User
to use Discourse.Singleton
2013-08-08 12:42:08 -04:00
Neil Lalonde
57baf1f112
Logout takes you to the front page instead of leaving you on your user activity page
2013-08-06 16:04:02 -04:00
Robin Ward
b11e1f8b40
Added ember-renderspeed library for profiling rendering. Removed old probes stuff that
...
that was just profiling the run loop.
2013-07-29 12:52:09 -04:00
Sam
aa6c92922d
SECURITY: correct our CSRF implementation to be much more aggressive
2013-07-29 15:13:13 +10:00
Robin Ward
5d66f6ed8e
Minor fixes. Link directoy to user activity to avoid a redirect.
2013-07-26 15:56:29 -04:00
Robin Ward
e77ee1eaa8
Moved highestSeenByTopic to the Discourse.Session
2013-07-26 15:18:46 -04:00
Robin Ward
894dc2c6fd
Moved Discourse.ajax into a mixin.
2013-07-26 15:12:40 -04:00
Robin Ward
20f3707fbe
Moved Resolver to new File
2013-07-26 15:04:29 -04:00
Robin Ward
773823c41f
Remove Discourse.transient. Use a singleton for session data, it's a lot cleaner.
2013-07-26 14:59:28 -04:00
Robin Ward
fca83cb185
Upgrade Ember to Fix CVE-2013-4170
2013-07-26 13:10:52 -04:00
Robin Ward
82c734ec84
FIX: FAQ wasn't loading sometimes
2013-07-16 12:11:30 -04:00
Régis Hanol
924c5d65cb
wrapped I18n.lookup to inject the "js" namespace
2013-07-09 02:10:55 +02:00
Robin Ward
28c168fc2b
FIX: Unintended edits with composer
2013-07-04 13:35:15 -04:00
Robin Ward
ba0bd934ba
FIX: Links to images in posts won't go through the Discoruse router
2013-07-03 14:06:34 -04:00
Robin Ward
5770879472
Refactor: Move Topic Details into better objects, identity map, tests, query string filters
2013-07-02 10:36:46 -04:00
Neil Lalonde
c79ab3fc2e
Change modal that asks which topic you want to reply in; upgrade bootbox.js
2013-06-24 15:01:07 -04:00
Robin Ward
82c21868f3
Moved JSHint into Qunit suite. It's much harder to forget about now!
2013-06-21 14:07:11 -04:00
Robin Ward
3257bef387
Category List and Topic View Integration Test
2013-06-20 15:02:26 -04:00
Chris Hunt
09d3800701
Move 'dynamic favicon' from Server to User pref
2013-06-14 23:58:24 -07:00
Robin Ward
5193ddc72f
Super basic test support for listing topics
2013-06-13 15:08:42 -04:00
Sam
eca2931a63
double notification is not really something we need.
2013-06-12 14:14:15 +10:00
Sam
fa8a84f20c
removed sugar.js, port functionality to moment and underscore.js
...
bring in latest ace from local so we don't mess up with https
2013-06-11 15:27:26 +10:00
Chris Hunt
af1c14939e
Add 'dynamic favicon' setting
2013-06-07 17:15:49 -07:00
Robin Ward
7c715e76e8
Refactor: Light pass of didInsertElement calls of views
2013-06-07 12:13:46 -04:00
Robin Ward
0b97ea6345
Better HTML emails, smarter email digests, new email section in admin with digest preview
2013-06-05 17:47:25 -04:00
Sam
21b3359ea4
Merge pull request #957 from chrishunt/chrishunt/lock-down-the-base
...
Add 'login required' site setting
2013-06-04 17:22:08 -07:00
Sam
5f85aaee1d
correct message bus regression
...
implement automatically updating dates in list
2013-06-05 09:32:44 +10:00
Chris Hunt
122f9188c9
Redirect Ember routes to login if login required
2013-06-04 16:10:10 -07:00
Chris Hunt
789289a290
Show login modal on header buttons if required
2013-06-04 16:10:10 -07:00
Sam
3ef16f292d
remove dead code
...
update title properly when count in list changes
remove broken (*) title notification from topic cause its just weird
2013-06-03 10:38:57 +10:00
Robin Ward
1833c124d9
FIX? : Sometimes preloaded data is missing
2013-06-02 14:05:38 -04:00
Robin Ward
0af0a214b2
Refactor: Back all modals by controllers
2013-05-31 12:29:38 -04:00
Robin Ward
d75b160385
Enable subscribing to notifications on start, instead of currentUser
...
change which was hokey.
2013-05-28 17:12:37 -04:00
Robin Ward
57f97880e6
Refactor: Instead of getting currentUser
from the Discourse namespace, use
...
`Discourse.User.current()`
2013-05-28 11:25:56 -04:00
Robin Ward
e9f1e28322
Removed a bunch of bindings.
2013-05-24 11:22:17 -04:00
Robin Ward
6843ba7ed6
Fix regression: default to JSON type on GET requests.
2013-05-07 17:17:21 -04:00
Robin Ward
bd99d5a40c
Calls to Discourse.ajax no longer need getURL
-- will be done automatically.
2013-05-07 15:16:27 -04:00
Robin Ward
0b4fc5d81c
Deprecate success
and error
in Discourse.ajax
2013-05-07 11:25:21 -04:00
Sam
65cd00cf25
moderators now have teeth, more at http://meta.discourse.org/t/moderator-permission-set/6307/5
...
allow pms to be targetted at groups
2013-05-02 15:15:53 +10:00
Régis Hanol
ff309cf024
FIX: shift+click on links
...
Default browser's behavior when shift+clicking was messed up.
This adds the shift key modifier to the list of click modifiers in both
`click_track` and `discourse`.
Also updated & refactored a bit the `click_track_spec`.
2013-04-30 15:48:58 +02:00
Sam
de9ca54aed
* event machine fix is critical (long polling has been broken)
...
* thin upgrade
* work in progress - groups
* fix live-refresh in dev
2013-04-19 13:06:00 +10:00
Neil Lalonde
c0f3c47196
Use message bus to broadcast addition and removal of categories
2013-04-10 15:53:36 -04:00
Sam
bf8e756175
Merge pull request #637 from wojciechka/master
...
Putting rootURL in JavaScript using Discourse::base_uri and erb
2013-04-04 21:42:54 -07:00
Robin Ward
fa1ba6791b
Work in Progress: Content Editing in Admin Section
2013-04-04 17:26:22 -04:00
Wojciech Kocjan
a875b1c44a
Store base URI in Discourse.BaseUri and use it in all places where rootURL was previously used
2013-04-04 11:16:38 +02:00
Robin Ward
5ec41d454c
Converted a bunch of ajax calls to use promises
2013-04-03 16:24:42 -04:00
Robin Ward
61b5c0340e
Convert all Ajax calls to use Discourse.ajax()
2013-04-01 18:09:23 -04:00
Régis Hanol
f1015fd73a
updated PreloadStore API
...
so that it is more clear that we are deleting preloaded data once read
2013-03-20 16:26:46 +01:00
Wojciech Kocjan
e6ccc300dc
Support for running discourse with a prefix (i.e. as http://servername/discourse )
2013-03-16 00:01:21 +01:00
Sam
38f185355d
added options to disable quoting and open links in new tabs
...
fixed a some regressions
removed some dead code
fixed messages about constants being re-defined
2013-03-12 20:06:58 -07:00
Robin Ward
86af49e663
More Markdown refactoring - fixed bug with Pagedown not showing on user profile - replaced jQuery occurrences with $.
2013-03-05 15:39:21 -05:00
Robin Ward
1caf1e6b45
Clean up discourse.js
2013-02-26 15:20:06 -05:00
Robin Ward
88267429c5
Remove fastclick for now -- we saw some regressions on iPad and want to make sure they weren't caused by
...
it.
2013-02-26 10:47:23 -05:00
Robin Ward
e461c84253
Clean up JS, add YUIDoc support, automatically create IIFE via asset pipeline
2013-02-25 17:16:57 -05:00
Sam Saffron
cb3d839104
fix hinting
2013-02-25 11:18:10 +11:00
Sam Saffron
b9f3666f5a
fast click instead of hacky double event binding
2013-02-25 11:11:46 +11:00
Sam Saffron
82e2fae1b8
isolate notifications in channel per user
2013-02-24 10:24:06 +11:00
Robin Ward
f661fa609e
Convert all CoffeeScript to Javascript. See:
...
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
2013-02-20 19:01:13 -05:00