324 Commits

Author SHA1 Message Date
Theopolisme
f3b3ea85ee Improvements to the custom submitter field 2015-02-24 17:29:44 -06:00
Theopolisme
732130d070 If no |u= specified, don't add "undefined" to submitters list 2015-02-24 17:20:45 -06:00
Theopolisme
dbe615f12d Include all dependencies at top of core.js on build, resolves #47
Now we no longer have to request dependency files separately, speeding
up load times as well as resolving the “undefined Hogan” error as
reported in the linked issue.
2015-02-24 17:16:04 -06:00
Theopolisme
735a8da2b4 Add top-level option to unmark as under review if self-review, resolves #48 2015-02-24 17:14:42 -06:00
Theopolisme
b09bbff240 bump version 2015-02-24 17:05:45 -06:00
Theopolisme
a27142afa3 Fix non-mainspace talk page handling, resolves #50 2015-02-24 16:52:55 -06:00
Theopolisme
bdd556d3df Update dependency name 2015-02-24 16:47:46 -06:00
Theopolisme
c4a99f54ae Make categories actually load correctly
I made this fix a few months ago and pushed it to live but for some
reason forgot to commit it until now—whoops!
2015-02-24 16:47:37 -06:00
Theo Patt
973f6a3f97 Merge pull request #49 from zanhecht/zanhecht-revid-patch-1
Include oldid field in {{db-g12}}
2015-02-24 16:37:10 -06:00
APerson
503138bd29 Improve duplicate decline form autofilling
Won't autofill if the name is equal to 'sandbox', and will now autofill for a few more potential reasons.
2015-02-24 12:24:40 -05:00
APerson
9689803b32 Disable cat link when cat empty to fix #52 2015-02-23 12:32:47 -05:00
zanhecht
1cf3052c14 Include oldid field in {{db-g12}}
Per https://github.com/WPAFC/afch-rewrite/pull/28#issuecomment-64842043

I included the ternary operator as well to handle failure to grab the revId a bit more gracefully
2015-02-11 11:47:43 -05:00
zanhecht
bbe82641c2 Fetch revid and store as pg.additionalData.revId 2015-02-11 11:34:06 -05:00
APerson
32fe0521ed remove logging line from random cat link function 2015-02-10 14:59:19 -05:00
APerson
27e7e5d8e5 Preload form w/ declines as duplicate; fixes #43 2015-01-23 16:39:20 -05:00
APerson
647588f4b3 Give the submission username some love
Validation, etc.
2015-01-16 21:45:10 -05:00
APerson
b2b8bd1380 Revert "Changed password prompt for upload.py"
This reverts commit 5a0ddecfd42941cc4356a2f1dbf082e4f001f43b because it broke the script.
2015-01-16 19:48:13 -05:00
APerson
5a0ddecfd4 Changed password prompt for upload.py
Included username and site.
2015-01-14 19:40:17 -05:00
APerson
34abe97304 add textfield class to a textfield
*LESS intensifies*
2015-01-12 12:24:20 -05:00
APerson
c2e0b283a6 fix up outdated comment 2015-01-12 12:02:07 -05:00
APerson
5bac041af4 Merge pull request #40 from Lorwp/master
Change "WindowsError" to "OSError"
2015-01-09 07:42:16 -05:00
lorwp
f017688e06 Fix "OSError" Capitalisation. 2015-01-09 15:08:16 +11:00
lorwp
cd0d4322bd Change "WindowsError" to "OsError"
Changing “WindowsError” To “OsError” due to errors on a Mac
2015-01-09 15:04:56 +11:00
APerson
1c620a5d5c Add draft category counts to "next submission" link to fix #38 2015-01-08 22:09:35 -05:00
APerson
112397b579 Changed button font size per request
It was requested on #wikipedia-en that since Helvetica degrades at large font sizes, the font for the buttons should be changed to Arial.
2015-01-08 21:56:45 -05:00
APerson
3e9262c7fb Next random submissions no longer open in a new tab
Per multiple requests in IRC and on WT:WPAFC. A new, optional parameter was added to AFCH.makeLinkElementToPage which sets `target` for the `<a>` to `'_self'` instead of `'_blank_'`.
2014-12-27 20:15:56 -05:00
theopolisme
1a80f50675 Merge pull request #35 from josve05a/patch-2
Add two additional comments to be removed when cleaning the page.
2014-12-11 18:38:18 -06:00
josve05a
747c55b645 adding 2 comments
adding 2 comments. I may have done something wrong when adding <ref> and [[
\\
2014-12-12 01:32:41 +01:00
theopolisme
c8225f6a97 Merge branch 'master' of https://github.com/WPAFC/afch-rewrite 2014-12-11 17:24:00 -06:00
theopolisme
6c7d3bd93f Merge branch 'master' of https://github.com/WPAFC/afch-rewrite 2014-12-11 17:23:53 -06:00
theopolisme
86f470468f Merge pull request #34 from McIntireEvan/master
Notify User if the talk page exists
2014-12-11 17:20:24 -06:00
Evan McIntire
7b72a4f73f Notify User if the talk page exists
Upon typing a title, the plugin will check for the main page, the talk
page, a draft page in the format 'draft:title' and the talk page for the
draft, in that order of importance

Known issues: The error message flashes a little when the name is being
typed, due to the different namespaces being checked.

Notify User if the talk page exists (fixed)

Reworked the code from the previous commit, removing most of it in favor
of a $.when().fail() block to check for the existence of a talk page when
the actual page does not exist

Fixed Minor Issues

Removed namespace: in favor of 'Talk:' + title
Removed a random ` from a comment

Resolved issues

Use .done() instead of .when().fail()
Move linkToPage declaration to be with the other variables

Minor Fixes

Removed unnecesary return
Fixed indentation
2014-12-11 17:19:56 -06:00
theopolisme
341ce8402c Use simpler "AFCH vX" summary ad 2014-12-11 17:18:54 -06:00
theopolisme
c8e09b2f94 Revert "Suggest current draft title when article exists" 2014-12-11 17:18:54 -06:00
zanhecht
86d479c5b1 Suggest current draft title when article exists
When an article exists, suggest the title of the current draft instead of "chocolate chip cookies". For "Draft:Example", it would suggest "Example", and for "User:Example/Title" or "Wikipedia talk:Articles for creation/Title" it would suggest "Title".
2014-12-11 17:18:53 -06:00
APerson
948b203cd3 Merge pull request #33 from WPAFC/random-submission-link
Added links to random submissions
2014-12-09 23:29:49 -05:00
APerson
593630fedc removed pointless code
i.e. code that was rendered pointless by the new way of displaying "next submission" links
2014-12-09 23:26:27 -05:00
APerson
f242e86948 spelling fix 2014-12-08 19:58:33 -05:00
APerson
be13e0efda Added links to random submissions 2014-12-08 14:46:45 -05:00
theopolisme
d9e02a6156 Use simpler "AFCH vX" summary ad 2014-12-06 15:45:57 -06:00
theopolisme
5059ac05b8 Merge pull request #32 from WPAFC/revert-30-patch-3
Revert "Suggest current draft title when article exists"
2014-12-03 16:52:25 -06:00
theopolisme
c4290034d4 Revert "Suggest current draft title when article exists" 2014-12-03 16:48:46 -06:00
APerson
b24f7f7b31 Merge pull request #30 from zanhecht/patch-3
Suggest current draft title when article exists
2014-12-02 23:40:34 -05:00
APerson
30fc3eb3d1 Fix upload script when there's no password
If there's no password passed in via the command line but `--force` is
used, the script assumes that "`--force`" is the password.
2014-11-27 22:39:39 -05:00
theopolisme
87bfca1b71 Add fallback blank strings for status and timestamp, fix #29 2014-11-27 19:48:10 -06:00
zanhecht
908c98e6d9 Suggest current draft title when article exists
When an article exists, suggest the title of the current draft instead of "chocolate chip cookies". For "Draft:Example", it would suggest "Example", and for "User:Example/Title" or "Wikipedia talk:Articles for creation/Title" it would suggest "Title".
2014-11-25 16:49:33 -05:00
theopolisme
53f80ef75e Revert "It appears that this hack is no longer necessary *crosses fingers*"
This reverts commit c05056ce86b06cff154d21a2fdd3bb0340fb099a.

For future reference, exact details about why this hack IS necessary:

> Very recently I'm having this trouble where as I'm typing in letters
into the Category field, when the dropbox appears for options, it
blanks out my cat field after a second, so I need to add or subtract a
typed letter to be able to see what I'm typing, which is kinda hinky.
—MatthewVanitas
2014-11-21 23:42:11 -06:00
theopolisme
51da282378 Add prefillBiographyDetails which may save some time; hygiene
Currently prefillBiographyDetails prefills the LISTAS/DEFAULTSORT if
the page title is only two words—assumes that word 1 is first name,
word 2 is last name. This won’t be right 100% of the title, but for the
most part might be kinda handy.

In the future, envision also having the pre-existing PERSONDATA
detection here…
2014-11-08 22:48:00 -06:00
theopolisme
9b71f1033e Whitelist checking: Offer a one-click disable link and instructions for #17 2014-11-08 22:12:23 -06:00
theopolisme
39f84b4de4 Add link to "Getting Started" article to the README 2014-11-08 13:43:27 -06:00