Commit Graph

3204 Commits

Author SHA1 Message Date
Max Goodman
b85db4f99f Add MinimalController request begin hook. 2013-07-24 16:53:55 -07:00
Max Goodman
fb9a4f5b47 authentication: Don't depend on RedditController cookie objects.
This enables code reuse outside of the RedditController timeline (such
as in the beta mode plugin).
2013-07-24 16:53:55 -07:00
Max Goodman
f78ffab2e6 Make copies of multireddits private by default. 2013-07-24 16:53:55 -07:00
Max Goodman
fdbb0b8c98 Improve accuracy of listing chooser selected matching.
This fixes the "front" tab being selected when viewing other users'
multis, among other issues.
2013-07-24 16:53:55 -07:00
Max Goodman
dfd97d13d5 multi API: Revert to array of subreddit data; return data on PUT.
I've decided to return to using an array for multi API subreddit data
since it more closely resembles a collection of objects.
2013-07-24 16:53:55 -07:00
Max Goodman
adb37a1225 Fix error line wrapping glitch when hovering listing chooser create tab. 2013-07-24 16:53:54 -07:00
Max Goodman
8007496321 Improve error messages for invalid multi names. 2013-07-24 16:53:54 -07:00
Max Goodman
a5479b0ac9 Add moderator tab to listing chooser. 2013-07-24 16:53:54 -07:00
Max Goodman
b9d0558cc3 showWorkingDeferred: handle null Deferred object. 2013-07-24 16:53:54 -07:00
Max Goodman
7b92f4b506 Only preload GET requests.
This fixes multi deletion through the frontend.
2013-07-24 16:53:54 -07:00
Max Goodman
352eb675db Fix broken preload expiration function.
>:(
2013-07-24 16:53:54 -07:00
Max Goodman
b12cafd377 Auto-focus the name field when showing copy form. 2013-07-24 16:53:54 -07:00
Max Goodman
9759934f7a Add multireddit copying to the frontend. 2013-07-24 16:53:54 -07:00
Max Goodman
ac04ea4504 Add multi tab hover slide animation. 2013-07-24 16:53:54 -07:00
Max Goodman
80813ce073 Only show multi info bar subreddit categorize bubbles if logged in. 2013-07-24 16:53:54 -07:00
Max Goodman
6516e74c40 Allow batch setting multi subreddits via the PUT api call. 2013-07-24 16:53:54 -07:00
Max Goodman
d923cdfca0 Use similar sr_props data structure across client and API. 2013-07-24 16:53:54 -07:00
Max Goodman
f1ad4375d1 Increase subreddit count limit accuracy when adding subreddits. 2013-07-24 16:53:54 -07:00
Max Goodman
358f25c6d8 Count subreddits (not properties) in the multi subreddit limit. 2013-07-24 16:53:54 -07:00
Max Goodman
7a7f1b9311 Accept subreddit objects in multi add_srs/del_srs. 2013-07-24 16:53:54 -07:00
Max Goodman
cf70e146c1 Don't automatically commit model when adding/removing multi subreddits. 2013-07-24 16:53:54 -07:00
Max Goodman
4baf05d70e Reduce listing chooser z-indexes
Fixes the "my subreddits" menu showing up beneath listing chooser tabs.
2013-07-24 16:53:54 -07:00
Max Goodman
ab5700c1f7 Remove absolute positioning for top tabs.
This was causing the "more" menu to be ppositioned without taking the
tabs into account.
2013-07-24 16:53:54 -07:00
Max Goodman
3657e2f93d Throttle /api/multi/mine fetches. 2013-07-24 16:53:54 -07:00
Max Goodman
19482c6a0b Add global multi model cache for model object sharing/reuse. 2013-07-24 16:53:53 -07:00
Max Goodman
66a1a837aa Move multi right bar items into own view; add subscribe bubbles. 2013-07-24 16:53:53 -07:00
Max Goodman
79b98a4632 Camelcaseify "sr_name" template param. 2013-07-24 16:53:53 -07:00
Max Goodman
adc9f0fc36 Add status code to VSRByName errors.
This makes it easier to treat them as fatal in on_validation_error.
2013-07-24 16:53:53 -07:00
Max Goodman
00ba19dedb Add search pages for LabeledMultis. 2013-07-24 16:53:53 -07:00
Max Goodman
a3381ab238 Move more stylesheet properties into BaseSite.
This fixes stylesheet usage on FakeSubreddits.
2013-07-24 16:53:53 -07:00
Max Goodman
79c5508c49 Strip /r/ and r/ from subreddit names entered into the sidebar UI. 2013-07-24 16:53:53 -07:00
Max Goodman
97cc413aae Index multireddit subreddit lists by lowercase name.
This prevents dupes with different capitalization.
2013-07-24 16:53:53 -07:00
bsimpson63
7b65747702 Add LabeledMulti routes for rising and randomrising. 2013-07-24 16:53:53 -07:00
Max Goodman
8c7bbb3ec4 In multi subscribe bubbles, sort checked multis to the top. 2013-07-24 16:53:53 -07:00
Max Goodman
5829b50148 Sort multi and subreddit names alphabetically. 2013-07-24 16:53:53 -07:00
Max Goodman
95c3d83d41 Listen to correct event to update subscribe bubble when data loads. 2013-07-24 16:53:53 -07:00
Max Goodman
bb5a6f1100 bubble: Stop appending to parent element when hidden.
This avoids unintentional styling of bubble content within the parent
element when it is supposed to be hidden.
2013-07-24 16:53:53 -07:00
Max Goodman
490d981adc Allow a static domain to be specified for subreddit stylesheets.
Since the S3 bucket we upload stylesheets to is not necessarily the same
as the rest of the statics, it is useful to be able to specify this
static domain separately.
2013-07-24 16:53:53 -07:00
Max Goodman
20132aa123 Add comments/moderator/misc minor listings for LabeledMultis.
Adds the following minor listings:
 * comments
 * gilded comments
 * moderator util listings
 * modlog
 * messages
2013-07-24 16:53:53 -07:00
Max Goodman
229ee6f7a3 Allow admins to view and edit multis not owned by them. 2013-07-24 16:53:53 -07:00
Max Goodman
68d247388f Only show the listing chooser on html pages.
This fixes a listing chooser template error on non-html styles.
2013-07-24 16:53:52 -07:00
Max Goodman
46a4457233 Explicitly set errors in VJSON, with error codes. 2013-07-24 16:53:52 -07:00
Max Goodman
6779827936 Remove default RedditError code.
This conflicts with the wiki's notion that error objects without codes
set aren't fatal.
2013-07-24 16:53:52 -07:00
Max Goodman
269c3c392a Add simple URL-based multireddit title. 2013-07-24 16:53:52 -07:00
Max Goodman
19e6e4e7a1 Fix creating multis for users with capitals in their name. 2013-07-24 16:53:52 -07:00
Max Goodman
c7ffe74d0d Clean up Subreddit _defaults whitespace.
Doing this in a separate commit for clarity.
2013-07-24 16:53:52 -07:00
Max Goodman
edbf16e920 Add _defaults dict to BaseSite and fix the MRO.
Making default values actual properties overrides the _defaults
__getattr__ logic in Things. Also, I needed to fix the ordering of the
parent classes so the Thing __getattr__ overrided the one in BaseSite.
2013-07-24 16:53:52 -07:00
Max Goodman
fedb7edd10 Add multi title property. 2013-07-24 16:53:52 -07:00
Max Goodman
1c91e4db7f Remove unused (?) default property. 2013-07-24 16:53:52 -07:00
Max Goodman
b60e681514 Show working indicator when refreshing listings. 2013-07-24 16:53:52 -07:00