Changeset 4690
- Timestamp:
- 08/20/09 10:06:42 (4 years ago)
- Location:
- trunk/TagsPlugin/templates
- Files:
-
- 2 edited
-
tagsplugin2.tmpl (modified) (2 diffs)
-
view.tagsplugin2.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TagsPlugin/templates/tagsplugin2.tmpl
r4686 r4690 1 1 2 2 3 %TMPL:DEF{tagsplugin :tagentry}% <form class='foswikiTagsPlugin' type='post' action='%SCRIPTURL{rest}%/TagsPlugin/tag' id='foswikiTagsPluginEntryForm'>3 %TMPL:DEF{tagsplugin2:tagentry}% <form class='foswikiTagsPlugin' type='post' action='%SCRIPTURL{rest}%/TagsPlugin/tag' id='foswikiTagsPluginEntryForm'> 4 4 <input id="foswikiTagInput" type='text' name='tag' value='enter new tag' onclick="if(this.value=='enter new tag'){this.value='';}"/> 5 5 <input type='hidden' name='item' value='%BASEWEB%.%BASETOPIC%' /> … … 7 7 <input type='hidden' name='redirectto' value='%SCRIPTURL{view}%/%BASEWEB%.%BASETOPIC%' /> 8 8 </form> %TMPL:END% 9 10 %{ TAGLIST }%11 %TMPL:DEF{tagsplugin:taglist:header}%<span class="tagList">%TMPL:END%12 %TMPL:DEF{tagsplugin:taglist:format}%<a class="foswikiTag" href="$tagurl">$tag</a>%TMPL:END%13 %TMPL:DEF{tagsplugin:taglist:separator}%, %TMPL:END%14 %TMPL:DEF{tagsplugin:taglist:footer}%</span>%TMPL:END%15 16 %{ TAGCLOUD }%17 %TMPL:DEF{tagsplugin:tagcloud:css}%18 <!-- from http://24ways.org/2006/marking-up-a-tag-cloud -->19 <style type='text/css'>20 .tag-cloud {padding:0px 60px;}21 /* display the individual items next to each other, not one-per-line */22 .tag-cloud LI { display: inline; padding-right:10px;}23 /* hide the extra context from CSS-enabled browsers, but not screenreaders */24 .tag-cloud SPAN { position: absolute; left: -999px; width: 990px; }25 /* size is purely presentational, based upon the class */26 .tag-cloud .not-popular { font-size: 1em; }27 .tag-cloud .not-very-popular { font-size: 1.3em; }28 .tag-cloud .somewhat-popular { font-size: 1.6em; }29 .tag-cloud .popular { font-size: 1.9em; }30 .tag-cloud .very-popular { font-size: 2.2em; }31 .tag-cloud .ultra-popular { font-size: 2.5em; }32 /* no underlines */33 .tag-cloud a { text-decoration:none; background-color:#fbfeff;border-bottom:1px solid #e5edff;font-weight:normal; }34 .tag-cloud .foswikiTagCount {font-size:0.5em;}35 </style>%TMPL:END%36 %TMPL:DEF{tagsplugin:tagcloud:header}%%TMPL:P{tagsplugin:tagcloud:css}%<ol class='tag-cloud'>%TMPL:END%37 %TMPL:DEF{tagsplugin:tagcloud:format}%<li class="$tagrange"><span>$count items are tagged with </span><a href='$tagurl' class='foswikiTag'>$tag <font class="foswikiTagCount">($count)</font></a></li>%TMPL:END%38 %TMPL:DEF{tagsplugin:tagcloud:separator}%39 %TMPL:END%40 %TMPL:DEF{tagsplugin:tagcloud:footer}%</ol>%TMPL:END% -
trunk/TagsPlugin/templates/view.tagsplugin2.tmpl
r4686 r4690 14 14 (function($){ 15 15 $(function(){ 16 $("#foswikiTagsPluginEntryForm").submit(function(event) {17 x = $("#foswikiTagInput").val();18 alert(x);19 event.preventDefault();20 });16 // $("#foswikiTagsPluginEntryForm").submit(function(event) { 17 // x = $("#foswikiTagInput").val(); 18 // alert(x); 19 // event.preventDefault(); 20 //}); 21 21 $("#foswikiTagInput").autocomplete("%SCRIPTURL{view}%/%SYSTEMWEB%/TagsPluginTagEntrySearch", { 22 22 extraParams: { skin:"text", cover:"text" },
Note: See TracChangeset
for help on using the changeset viewer.
