ikiwiki/IkiWiki/Plugin
Joey Hess ace3665f81 improve detection of ajax request
Firefox sent an accept header for application/xml, not application/json,
and also weakened the priority to 0.8. So that stuff is not to be trusted;
instead I found a better way: When an ajax upload is *not* being made,
the Upload Attachment button will be used, so enable ajax if an upload
is being made without that button having been used.

Also, testing with firefox revealed it refused to process a response that
was type application/json, and checking the demo page for the jquery file
upload plugin, it actually returns the json with type text/html. Ugh.
Followed suite.

Now tested with: chromium, chromium (w/o js), firefox, firefox (w/o js),
and w3m.
2011-06-17 15:17:20 -04:00
..
404.pm add missing getsetup hook 2010-07-13 15:23:44 -04:00
aggregate.pm better long filename detection method 2011-06-10 19:04:18 -04:00
amazon_s3.pm setup file ordering 2010-02-12 06:35:52 -05:00
anonok.pm Group related plugins into sections in the setup file, and drop unused rcs plugins from the setup file. 2010-02-11 22:24:15 -05:00
attachment.pm improve detection of ajax request 2011-06-17 15:17:20 -04:00
autoindex.pm autoindex: default to autoindex_commit=1 as intended 2011-01-22 22:37:46 +00:00
blogspam.pm blogspam: Don't check modifications from admins for spam, and also allow the blogspam_pagespec to do other matches against who the user is. 2011-01-24 16:59:15 -04:00
brokenlinks.pm brokenlinks: use pagespec_match_list 2009-10-09 13:35:11 -04:00
bzr.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
calendar.pm needsbuild hook interface changed; the hooks should now return the modified array of things that need built. (Backwards compatability code keeps plugins using the old interface working.) 2010-09-07 12:08:59 -04:00
camelcase.pm Avoid %links accumulating duplicates. (For TOVA) 2009-05-06 00:27:24 -04:00
color.pm remove unnecessary and troublesome filter calls 2010-07-04 15:06:48 -04:00
comments.pm look up avatar at comment post time 2011-03-30 11:24:01 -04:00
conditional.pm remove unnecessary and troublesome filter calls 2010-07-04 15:06:48 -04:00
creole.pm format plugin categorization 2010-02-12 01:10:36 -05:00
cutpaste.pm cutpaste: Fix bug that occured in some cases involving inlines when text was pasted on a page before being cut. 2010-09-15 16:24:50 -04:00
cvs.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
darcs.pm darcs: Fix multiple issues preventing rcs_diff from working. 2011-03-02 12:39:58 -04:00
date.pm setup file ordering 2010-02-12 06:35:52 -05:00
ddate.pm finalise version 3.00 of the plugin api 2008-12-23 16:34:19 -05:00
editdiff.pm fix pagediff to not display as "preview" 2010-05-06 22:19:14 -04:00
editpage.pm editpage: Avoid inheriting internal page types. 2011-02-01 21:01:26 -04:00
edittemplate.pm edittemplate: Fix crash if using a .tmpl file or other non-page file as a template for a new page. 2010-11-20 14:54:43 -04:00
embed.pm finalise version 3.00 of the plugin api 2008-12-23 16:34:19 -05:00
external.pm external: Disable RPC::XML's "smart" encoding, which sent ints for strings that contained only a number, fixing a longstanding crash of the rst plugin. 2010-09-14 15:37:45 -04:00
favicon.pm finalise version 3.00 of the plugin api 2008-12-23 16:34:19 -05:00
filecheck.pm make use of precompiled regex objects 2010-11-20 00:02:49 +00:00
flattr.pm Revert "insert flattr javascript via sanitize, not format hook" 2010-08-12 18:18:35 -04:00
format.pm txt: Fix display when used inside a format directive. 2010-10-25 22:37:34 -04:00
fortune.pm setup file ordering 2010-02-12 06:35:52 -05:00
getsource.pm use cgitemplate, remove misctemplate 2011-01-05 17:15:38 -04:00
git.pm git: Fix bug involving attempting to web revert a commit that included changes to attachments. 2010-12-29 20:19:58 -04:00
goodstuff.pm repolist: New plugin to support the rel=vcs-* microformat. 2009-01-07 16:07:46 -05:00
google.pm Add placeholder text in search form (in html5 mode only). 2010-05-02 13:49:56 -04:00
goto.pm use cgitemplate, remove misctemplate 2011-01-05 17:15:38 -04:00
graphviz.pm Use Digest::SHA built into perl rather than external Digest::SHA1 to simplify dependencies. Closes: #591040 2010-07-31 15:54:25 -04:00
haiku.pm setup file ordering 2010-02-12 06:35:52 -05:00
highlight.pm Update highlight plugin for highlight api. 2010-12-29 13:05:20 -04:00
hnb.pm hnb: Fixed broken use of mkstemp that had caused dangling temp files, and prevented actually rendering hnb files. 2010-06-27 13:49:51 -04:00
html.pm format plugin categorization 2010-02-12 01:10:36 -05:00
htmlbalance.pm htmlbalance: be compatible with HTML::Tree 4.0 2010-09-26 22:33:54 +01:00
htmlscrubber.pm Fix htmlscrubber_skip to be matched on the source page, not the page it is inlined into. Should allow setting to "* and !comment(*)" to scrub comments, but leave your blog posts unscrubbed, etc. 2010-11-12 00:00:54 -04:00
htmltidy.pm htmltidy: Avoid breaking the sidebar when websetup is running. 2011-02-03 12:49:13 -04:00
httpauth.pm httpauth: Avoid redirecting the user to the cgiauthurl if they already have a login session. 2010-08-30 18:33:00 -04:00
img.pm use one-parameter form of urlto 2010-11-29 15:07:26 -04:00
inline.pm inline: allow assigning an id to postform/feedlink 2011-02-22 17:33:07 -04:00
link.pm bugfix: record email-like links as page links 2010-06-23 14:05:57 -04:00
linkmap.pm setup file ordering 2010-02-12 06:35:52 -05:00
listdirectives.pm needsbuild hook interface changed; the hooks should now return the modified array of things that need built. (Backwards compatability code keeps plugins using the old interface working.) 2010-09-07 12:08:59 -04:00
localstyle.pm localstyle: New plugin, allows overrding the toplevel local.css with one that is closer to a page. 2009-11-09 13:39:05 -05:00
lockedit.pm stop using REMOTE_ADDR 2010-06-23 16:35:51 -04:00
map.pm map: don't create useless </ul><ul> sequences 2011-02-09 14:39:28 -04:00
mdwn.pm format plugin categorization 2010-02-12 01:10:36 -05:00
mercurial.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
meta.pm HTML::Entities::encode_numeric is not exported 2011-04-30 17:17:19 -04:00
mirrorlist.pm use a div, not a p .. and in html5, a nav 2010-05-02 14:41:20 -04:00
moderatedcomments.pm stop using REMOTE_ADDR 2010-06-23 16:35:51 -04:00
monotone.pm * IkiWiki/Plugin/monotone.pm: monotone v0.48 has a small error that 2011-03-30 16:59:01 +02:00
more.pm more: Add pages parameter to limit where the more is displayed. (thanks, dark) 2010-11-16 15:00:04 -04:00
norcs.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
opendiscussion.pm Group related plugins into sections in the setup file, and drop unused rcs plugins from the setup file. 2010-02-11 22:24:15 -05:00
openid.pm updated jquery and made it its own underlay 2011-06-15 19:15:06 -04:00
orphans.pm setup file ordering 2010-02-12 06:35:52 -05:00
otl.pm format plugin categorization 2010-02-12 01:10:36 -05:00
pagecount.pm setup file ordering 2010-02-12 06:35:52 -05:00
pagestats.pm typo 2010-04-15 14:45:03 -04:00
pagetemplate.pm finalise version 3.00 of the plugin api 2008-12-23 16:34:19 -05:00
parentlinks.pm indent 2010-12-25 13:23:23 -04:00
passwordauth.pm stop using REMOTE_ADDR 2010-06-23 16:35:51 -04:00
pingee.pm setup file ordering 2010-02-12 06:35:52 -05:00
pinger.pm aggregate, pinger: Use Net::INET6Glue if available to support making ipv6 connections. 2011-05-09 14:00:48 -04:00
po.pm Merge remote-tracking branch 'intrigeri/po' 2011-06-03 12:36:30 -04:00
poll.pm use one-parameter form of urlto 2010-11-29 15:07:26 -04:00
polygen.pm setup file ordering 2010-02-12 06:35:52 -05:00
postsparkline.pm setup file ordering 2010-02-12 06:35:52 -05:00
prettydate.pm typo 2009-07-01 13:45:28 -04:00
progress.pm setup file ordering 2010-02-12 06:35:52 -05:00
rawhtml.pm format plugin categorization 2010-02-12 01:10:36 -05:00
recentchanges.pm Only unlink excess recentchanges from srcdir if not in transientdir 2011-01-07 20:13:01 +00:00
recentchangesdiff.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
relativedate.pm Use local paths when including Javascript 2010-11-23 00:06:07 +00:00
remove.pm fix removal of staged attachments 2011-06-15 17:46:08 -04:00
rename.pm implement renaming of held attachments 2011-06-14 16:02:09 -04:00
repolist.pm add section information 2010-02-12 04:22:15 -05:00
rsync.pm setup file ordering 2010-02-12 06:35:52 -05:00
search.pm search: Update search page when page.tmpl or searchquery.tmpl are locally modified. 2011-06-03 20:31:20 -04:00
shortcut.pm setup file ordering 2010-02-12 06:35:52 -05:00
sidebar.pm Revert po vs. template kludges. 2010-07-11 11:03:41 +02:00
signinedit.pm Group related plugins into sections in the setup file, and drop unused rcs plugins from the setup file. 2010-02-11 22:24:15 -05:00
skeleton.pm.example needsbuild hook interface changed; the hooks should now return the modified array of things that need built. (Backwards compatability code keeps plugins using the old interface working.) 2010-09-07 12:08:59 -04:00
smiley.pm smiley: warn instead of error for missing smileys 2010-08-13 17:58:21 -04:00
sortnaturally.pm Added missing registration of checkconfig hook. 2010-10-31 10:12:01 -04:00
sparkline.pm Use Digest::SHA built into perl rather than external Digest::SHA1 to simplify dependencies. Closes: #591040 2010-07-31 15:54:25 -04:00
svn.pm Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits. 2010-12-29 19:58:49 -04:00
table.pm call preprocess in scan mode hooks before scan hooks 2010-08-30 15:06:58 -04:00
tag.pm tag: Avoid autocreating multiple tag pages that vary only in capitalization. The first capitalization seen of a tag will be used for the tag page. 2011-04-30 16:30:07 -04:00
template.pm template_depends: throw nice error message when template cannot be found 2010-09-27 15:58:01 -04:00
testpagespec.pm setup file ordering 2010-02-12 06:35:52 -05:00
teximg.pm teximg: Use `\[` and `\]` instead of not recommended `$$`. 2010-12-26 14:46:29 -04:00
textile.pm format plugin categorization 2010-02-12 01:10:36 -05:00
theme.pm needsbuild hook interface changed; the hooks should now return the modified array of things that need built. (Backwards compatability code keeps plugins using the old interface working.) 2010-09-07 12:08:59 -04:00
tla.pm rcs_commit and rcs_commit_staged api changes 2010-06-23 19:04:36 -04:00
toc.pm setup file ordering 2010-02-12 06:35:52 -05:00
toggle.pm Use local paths when including Javascript 2010-11-23 00:06:07 +00:00
transient.pm avoid uninitialized value warning when running -dumpsetup 2011-02-25 17:32:36 -04:00
txt.pm txt: Fix display when used inside a format directive. 2010-10-25 22:37:34 -04:00
typography.pm remove unnecessary IkiWiki:: 2010-02-12 04:01:04 -05:00
underlay.pm remove add_templates option 2010-04-22 14:35:00 -04:00
userlist.pm encode html 2011-06-09 10:46:09 -04:00
version.pm needsbuild hook interface changed; the hooks should now return the modified array of things that need built. (Backwards compatability code keeps plugins using the old interface working.) 2010-09-07 12:08:59 -04:00
websetup.pm allow for a html formatted description in websetup 2011-05-13 18:44:11 -04:00
wikitext.pm format plugin categorization 2010-02-12 01:10:36 -05:00
wmd.pm Use local paths when including Javascript 2010-11-23 00:06:07 +00:00