Joey Hess
89e0de5bc4
improved, possibly faster getelementsbyclass by willu
2008-07-25 01:43:37 -04:00
Joey Hess
99b59f2d62
toggle: Fix incompatability between javascript and webkit.
2008-07-25 01:24:20 -04:00
Joey Hess
c2f621cb1c
fix encoding issues with link conversion
...
Have to convert link text to page name going in.
And on the way out, need to replace spaces with underscores in the link
text, which is not normally done with titles.
2008-07-24 12:36:10 -04:00
Joey Hess
8b3d2ab0bc
test suite and partial fix for encoding issues in link renaming
2008-07-23 21:04:11 -04:00
Joey Hess
762bf0b887
foldage
2008-07-23 19:25:46 -04:00
Joey Hess
985a34b09e
fixup editpage links on rename
2008-07-23 19:20:11 -04:00
Joey Hess
7befc6deb3
link fixup on rename working
2008-07-23 19:12:05 -04:00
Joey Hess
4918c164e8
preserve case of subpage
2008-07-23 19:03:37 -04:00
Joey Hess
8b063a24d9
case preservation
2008-07-23 18:57:27 -04:00
Joey Hess
4691a2ad39
add renamepage hooks
...
Implemented for regular wikilinks, with a test suite.
2008-07-23 18:14:20 -04:00
Joey Hess
335a6a59e6
Merge branch 'master' into tova
2008-07-23 15:00:07 -04:00
Joey Hess
1d1767192c
attachment: Do not escape _ when determining attachment filenames.
2008-07-23 14:58:39 -04:00
Joey Hess
29f32d0ba3
add a list of broken links after the rename
2008-07-22 20:30:54 -04:00
Joey Hess
1c9a3cb82b
add a rename summary
2008-07-22 20:17:03 -04:00
Joey Hess
2b9615194e
fix gettext
2008-07-22 19:44:31 -04:00
Joey Hess
421559b230
edit page fixup in postrename
2008-07-22 18:17:11 -04:00
Joey Hess
89b3bb7e38
check for absolute paths
2008-07-22 17:38:31 -04:00
Joey Hess
9776bbf853
Don't allow uploading an attachment with the same name as an existing page, to avoid confusion.
2008-07-22 17:12:20 -04:00
Joey Hess
114e20e948
typo
2008-07-22 17:03:28 -04:00
Joey Hess
cbddb5a4b8
add rcs_commit_staged and rcs_rename
...
Implemented for git and svn so far.
Note that rcs_commit_staged does assume that the rcs has the ability to
"stage" multiple changes for a later commit. Support for this varies, but
all we really care about is staging removals and renames, which, AFAIK, all
modern rcs's support.
2008-07-22 16:14:33 -04:00
Joey Hess
cf9620074a
qualifiy
2008-07-22 15:07:07 -04:00
Joey Hess
bac47cdecd
make message a bit more generic
2008-07-22 15:06:59 -04:00
Joey Hess
cbf1c8b810
rename checks improvements
2008-07-22 14:01:23 -04:00
Joey Hess
569d31d875
permission checking improvements
...
Break out into function so it can be done up-front before confirmation too.
2008-07-22 13:29:54 -04:00
Joey Hess
ac1226031e
avoid uninitialised value
2008-07-22 13:23:11 -04:00
Joey Hess
a3e16cd29f
really add
2008-07-21 22:44:37 -04:00
Joey Hess
0c9fe2f99c
use check_canattach
...
As noted, this may be overkill..
2008-07-21 22:44:19 -04:00
Joey Hess
f9cbe871ad
factor out check_canattach
...
Other plugins will need to use this.
2008-07-21 22:41:31 -04:00
Joey Hess
96c529826d
skeleton rename plugin
2008-07-21 22:30:43 -04:00
Joey Hess
ed05e40566
error if nothing selected
2008-07-21 22:11:24 -04:00
Joey Hess
6e243a45e5
probably redundant symlink check
2008-07-21 21:57:58 -04:00
Joey Hess
18d2403647
Merge branch 'master' into tova
...
Conflicts:
debian/changelog
2008-07-21 17:27:50 -04:00
Simon McVittie
09a5cdbb34
Don't prepend tagbase to tags if they start with "./" or "/".
...
That syntax made little sense previously, and this allows sites to put
"most" of their tags under $tagbase.
2008-07-21 22:02:55 +01:00
Joey Hess
97e21ae21c
don't show an error if the image is missing, instead, a broken link
2008-07-21 16:53:52 -04:00
Joey Hess
7910f1c352
remove debugging
2008-07-21 16:53:46 -04:00
Joey Hess
d724a26754
avoid internal error message when img uses just-deleted page
...
I think this used to be a fatal error, not just inline error, so I don't
know why it was never noticed, but if a page that an img directive mentions
gets deleted, bestlink() returns a file that no longer exists, and
srcfile() throws an error.
Note that bestlink's behavior of returning a deleted file could be
considered buggy. But, if it's changed to not do that, the page with the img
on it is not updated at all when the file is removed.
2008-07-21 16:38:40 -04:00
Joey Hess
d9af10a1be
typos
2008-07-21 16:21:59 -04:00
Joey Hess
90de84b442
typos
2008-07-21 16:21:46 -04:00
Joey Hess
b182f5e573
need to untaint..
2008-07-21 16:20:02 -04:00
Joey Hess
2461ce0de6
a few bugfixes
...
Including a check the the file is in the srcdir, as opposed to some other
directory.
2008-07-21 16:18:28 -04:00
Joey Hess
af9c5e4bba
support for removing attachments
2008-07-21 15:02:29 -04:00
Joey Hess
a1df39ed4a
simplified confirmation form
...
also, there's no titlepage conversion issues
2008-07-21 14:22:57 -04:00
Joey Hess
b1b5860b29
touchups
2008-07-21 14:03:39 -04:00
Joey Hess
494e7ab8ba
redirect after removal
2008-07-21 13:53:34 -04:00
Joey Hess
c924c76bd8
basically, removal works
...
Still need to consider all the edge cases..
2008-07-21 13:50:12 -04:00
Joey Hess
a204f86786
form tweaks; use title
2008-07-21 13:31:58 -04:00
Joey Hess
b286ce04cb
implemented form state saving and retrieval
...
This is overkill for delete, since it's only used on Cancel. But it will be
crucial for rename, so as to restore any pending edits after renaming a
page.
2008-07-21 13:23:07 -04:00
Joey Hess
8e7b31a19c
basic removal form skeleton
2008-07-21 12:54:23 -04:00
Joey Hess
46617c23f4
rename skeleton.pm
...
Add '.example' so it's not installed with the other plugins.
2008-07-21 07:49:28 -04:00
Gabriel McManus
e3b0584a49
Use correct term prefixes when searching.
...
The Z term prefix is for stemming and shouldn't be used here.
X is for custom fields.
2008-07-19 13:23:02 -04:00