Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item13916: More unicode fixes
Also note that Ajax interface is broken on Foswiki 2.x due to
removal of simplemodal.  Needs someone to rewrite it.
  • Loading branch information
gac410 committed Jan 11, 2017
1 parent 3497ed8 commit 80dc3da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion data/System/TagMePlugin.txt
Expand Up @@ -57,6 +57,11 @@ will see:
<div class="foswikiImage"><img src="%ATTACHURLPATH%/topictags_styleblog_open.gif" alt="Screenshot of tags on a topic, style=blog" width="489" height="464" /></div>

---++++ "jqui": an AJAX interface
<div class="foswikiHelp"> *Note:* The AJAX interface requires the deprecated
Simplemodal JQuery plugin. It is no longer available on recent versions of
the JQueryPlugin.
</div>

An experimental interactive user interface is also provided, implemented using the latest version of JQueryPlugin in TagMeAjaxHelper.

All features work without having to re-load the topic:
Expand Down Expand Up @@ -389,11 +394,12 @@ This can be done from the Extensions | !TagMePlugin tab - tick the ={Plugins}{Ta
---++ Plugin info
%TABLE{columnwidths="10%,90%"}%
| Plugin Author: | Foswiki:Main.ArthurClemens |
| Copyright: | &copy; 2006-2012, Foswiki Contributors, &copy; 2006-2007, Peter Thoeny |
| Copyright: | &copy; 2006-2017, Foswiki Contributors, &copy; 2006-2007, Peter Thoeny |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 10 Jan 2017: | 2.2: Foswiki:Tasks.Item13916: Support Unicode Web, Topic and Tags. |
| 27 Jul 2012: | 2.1.1: FlorianSchlichting: Foswiki:Tasks.Item8344: allow everyone to change tags by setting TAGMEPLUGIN_ALLOW_TAG_CHANGE to an empty value (bugfix).%BR%\
Foswiki:Tasks.Item12009: allow any logged-in user to create new tags (bugfix). |
| 23 May 2012: | 2.1.0: Arthur Clemens: allow adding of tags only if user has change permission. Only show close buttons if user is allowed to remove tags (AJAX interface). |
Expand Down
7 changes: 6 additions & 1 deletion lib/Foswiki/Plugins/TagMePlugin.pm
Expand Up @@ -1390,13 +1390,18 @@ sub _getTagInfoList {
my @list = ();
if ( opendir( DIR, "$workAreaDir" ) ) {
my @files =
grep { !/^_tags_all\.txt$/ } grep { /^_tags_.*\.txt$/ } readdir(DIR);
grep { !/^_tags_all\.txt$/ } grep { /^_tags_.*\.txt$/ } map { _decode_utf8($_) } readdir(DIR);
closedir DIR;
@list = map { s/^_tags_(.*)\.txt$/$1/; $_ } @files;
}
return sort @list;
}

sub _decode_utf8 {
return Foswiki::decode_utf8( $_[0] ) if $Foswiki::UNICODE;
return $_[0];
}

# =========================
sub _readTagInfo {
my ($webTopic) = @_;
Expand Down

0 comments on commit 80dc3da

Please sign in to comment.