197 Commits

Author SHA1 Message Date
theopolisme
a3454dc971 G13: Non-AFC space drafts must have an {{AFC submission}} template to be eligible 2014-05-04 19:51:27 -05:00
theopolisme
f4aff2730e Don't show a "references after reflist" error if references are embedded in the reflist 2014-05-04 19:50:32 -05:00
theopolisme
5afdf19c31 CSD: Use built in editPage status element with custom statusText
Let’s not reinvent the wheel here. Plus, adds (diff) link and all that
good stuff.
2014-04-30 17:41:51 -05:00
theopolisme
be4abe0d08 Expand embedded tags (like <nowiki>) 2014-04-28 17:36:30 -05:00
theopolisme
d6daaa1200 Show log page in status message 2014-04-28 16:32:32 -05:00
theopolisme
e2143cb60b stupid typos are stupid 2014-04-28 16:31:41 -05:00
theopolisme
cfccff6ee4 Avoid duplicate entries for WikiProjects 2014-04-21 16:22:18 -05:00
theopolisme
37c04681a9 Update comment text -.- 2014-04-21 16:19:27 -05:00
theopolisme
5ed3b8fc80 Warn when the submission contains HTML comments longer than 30 characters 2014-04-20 12:07:17 -05:00
theopolisme
7431c20276 Standardize names (previously they magically changed from view to show) 2014-04-20 12:06:50 -05:00
theopolisme
02c3c9a722 Show build errors in upload.py 2014-04-20 11:35:56 -05:00
theopolisme
c6b1c34375 Fix toggle target 2014-04-20 11:08:28 -05:00
theopolisme
2fa1efe109 listaref is apparently valid 2014-04-20 11:08:00 -05:00
theopolisme
849b24deea Resolve deferred before returning when no deletions present 2014-04-16 12:14:41 -07:00
theopolisme
b8be6e4cdc ho hum 2014-04-13 17:12:49 -07:00
theopolisme
6a3a158e45 "v0.7" 2014-04-13 17:11:04 -07:00
theopolisme
3d214df6c3 Derp 2014-04-13 17:06:19 -07:00
theopolisme
a2fe834055 Add release.py which automates release+commit+tag process 2014-04-13 17:02:08 -07:00
theopolisme
f33c06d13e editPage: handle nochange, diffLink -> $diffLink 2014-04-12 13:15:40 -05:00
theopolisme
823b19ef2d Wait for other JS to load before marking old links
So we don’t miss scripts loaded after afch-rewrite.
2014-04-12 11:01:54 -05:00
theopolisme
5ca33cd4f9 Make diff link smaller, generalize classes 2014-04-12 10:45:59 -05:00
theopolisme
9b8e76cb59 Include a diff link in the "Saved $1" message after successful edits
Also update AFCH.status.Element.update() to handle jQuery input.
2014-04-10 18:43:56 -05:00
theopolisme
41852b4036 Only remove spaces and tabs before <ref> tags, not newlines
Prevents awkward situations. See diff at
https://en.wikipedia.org/w/index.php?title=Château_Haldimand&diff=prev&o
ldid=603494895
2014-04-09 16:12:10 -05:00
theopolisme
c9c71de016 Try "1" for accesskey 2014-04-09 05:58:29 -05:00
theopolisme
eca7227ca1 Cosmetic: sort dependencies for readability 2014-04-09 05:53:37 -05:00
theopolisme
3752c3cde0 Change to "k" accesskey 2014-04-09 05:52:53 -05:00
theopolisme
ad5f7a97c9 "Recently used" decline reasons! (yay, mw.user.options <3)
Add AFCH.userData as a wrapper around mw.user.options. The main benefit
of using this wrapper is when the page is reloaded using ajax — we use
an intermediate cache which stores values until mw.user.options updates
(on reload). Additionally, handles the API requests to set values
(which is nice ;) ).

As far as the “recently used” menu goes, it shows the three most
recently selected decline reasons as well as the “custom” reason (which
is always displayed).
2014-04-08 18:36:08 -05:00
theopolisme
c61e040b23 Multiples instances support: for feedback link, jquery object, not selector 2014-04-08 18:30:57 -05:00
theopolisme
2c1a1e7bf2 Move "Review" link to p-cactions, and also warn users about using the old script
Append “ (old)” to old review links, and (once afch-rewrite is > v1.0)
show a warning once per session about using an “unsupported version”.
2014-04-08 18:30:17 -05:00
theopolisme
ea18f73a6f Switch to LESS, build-based, more modular styling system
Run `grunt build` to build AFCH, or just use scripts/upload.py — this
will create all the necessary files in the /build directory, including
minified css based on the…

LESS files! That’s right, variables, nested selectors, and more. Expect
cleaner, tidier code…already switched much of it over.

Additionally, using LESS, our CSS selectors are much more specific,
pretty much 100% ensuring we’ll avoid future class/selector conflicts.

We now ALSO use a combination of classes and $afch.find() to ensure
that multiple AFCH instances can run at one time on a page.

Big commit, yay :)
2014-04-06 14:51:26 -05:00
theopolisme
2face48074 Include copyvio urls in the decline template as well 2014-04-05 21:22:39 -05:00
theopolisme
293d8791a0 Better unbalanced <ref> handling
Just use a (very) simple regex plus a filter rather than a ridiculously
complicated regex.
2014-04-05 10:09:00 -05:00
theopolisme
89a932c009 Use postWithToken() method which automatically gets a new token if the current one is invalid
Should help alleviate (in fact, completely remove) badtoken errors as
discussed in #8.
2014-04-05 09:03:36 -05:00
theopolisme
382fd8db01 CSS: be more restrictive with classes, re #7 2014-04-05 08:49:56 -05:00
theopolisme
cc39fafc5e Offer to patrol page when accepting 2014-03-29 22:38:05 -05:00
theopolisme
59d238d394 Remove sandbox templates 2014-03-29 21:46:42 -05:00
theopolisme
549ff7e81a Offer a "rationale" field when postponing G13 deletion (becomes a comment on the submission) 2014-03-29 09:12:19 -05:00
theopolisme
e585f4f475 Another copyvio url? No problem! 2014-03-28 20:11:11 -05:00
theopolisme
fce3ad7fa6 Ignore placeholder text 2014-03-28 18:16:30 -05:00
theopolisme
aab2a6b0d5 Don't add multiple CSD templates for copyvios 2014-03-28 07:55:37 -05:00
theopolisme
602ff748f4 This is not an HTML comment...whoops! 2014-03-28 05:57:12 -05:00
theopolisme
5956806e3f v0.6
Because turtles dancing are cool. Plus, I kinda revamped a whole ton of
stuff over the past few days…y’know how that goes.
2014-03-27 18:20:01 -05:00
theopolisme
ab6e2ac382 Reset font size and line height for #afch div
Prevent the new “typography refresh” from screwing up our styling.
2014-03-27 18:16:15 -05:00
theopolisme
fbb9f9808a Reinstate feedback link in the initial header
Additionally, allow custom link text in AFCH.initFeedback(), as well as
tidy up the header css a bit and remove an unneeded class.
2014-03-27 18:15:40 -05:00
theopolisme
ddb7eef6fc Automagically refresh the page in place after all ajax requests are complete
Also, move the #afch div before #mw-content-text to support this (so we
can outright replace #mw-content-text when loading new content).
2014-03-26 18:29:38 -05:00
theopolisme
6c3b4b2e3b Check titleblacklist 2014-03-26 12:16:04 -05:00
theopolisme
bb3906d0eb Add whitelist checking
The script now checks if the user if listed on the AFCH whitelist. If
they are not listed, the AFCH instance is destroyed. Also fix
nonexistent page handling a bit.
2014-03-26 11:07:13 -05:00
theopolisme
d8811256fb Completely reload the main options panel when back button pressed
Thanks, Anne! This ensures that if modifications are made to the page
via the review panel, we can respond to these with the dynamic buttons,
refreshed warnings, etc. TODO: consider refreshing the page html
($().load()) when the page is edited, rather than showing the reload
link…?
2014-03-26 11:01:23 -05:00
theopolisme
ff1d6307f9 tidy 2014-03-26 10:59:26 -05:00
theopolisme
563a17565b Add AFCH.destroy()
When called, destroys the AFCH instance. Completely. Subscripts use
AFCH.addDestroyFunction() to dismantle themselves as well, which has
been done in submissions.js.
2014-03-26 10:59:16 -05:00