Changeset 14664
- Timestamp:
- 04/26/12 15:44:44 (13 months ago)
- Location:
- trunk/TopicInteractionPlugin
- Files:
-
- 7 edited
-
lib/Foswiki/Plugins/TopicInteractionPlugin/Core.pm (modified) (4 diffs)
-
pub/System/TopicInteractionPlugin/jquery.uploader.uncompressed.js (modified) (1 diff)
-
pub/System/TopicInteractionPlugin/metadata.pattern.uncompressed.css (modified) (3 diffs)
-
pub/System/TopicInteractionPlugin/metadata.uncompressed.js (modified) (4 diffs)
-
templates/attach.topicinteraction.tmpl (modified) (2 diffs)
-
templates/metadata.tmpl (modified) (3 diffs)
-
templates/view.topicinteraction.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TopicInteractionPlugin/lib/Foswiki/Plugins/TopicInteractionPlugin/Core.pm
r13578 r14664 20 20 use Foswiki::Sandbox (); 21 21 use JSON (); 22 use Encode (); 22 23 23 24 use constant DEBUG => 0; # toggle me … … 198 199 199 200 ($web, $topic) = Foswiki::Func::normalizeWebTopicName($web, $topic); 201 #print STDERR "topic='$topic'\n"; 200 202 unless (Foswiki::Func::topicExists($web, $topic)) { 201 203 printJSONRPC($response, 101, "Topic $web.$topic does not exist", $id); … … 240 242 } 241 243 242 my $queryString = $ENV{QUERY_STRING} ;244 my $queryString = $ENV{QUERY_STRING} || ''; 243 245 244 246 foreach my $item (split(/[&;]/, $queryString)) { … … 258 260 259 261 $value =~ s/%([\da-f]{2})/chr(hex($1))/gei; 260 261 262 my $session = $Foswiki::Plugins::SESSION; 262 263 my $downgradedValue = $session->UTF82SiteCharSet($value); 263 264 $value = $downgradedValue if defined $downgradedValue; 264 265 265 266 $value =~ s/^\s+//g; 266 267 $value =~ s/\s+$//g; -
trunk/TopicInteractionPlugin/pub/System/TopicInteractionPlugin/jquery.uploader.uncompressed.js
r13578 r14664 519 519 520 520 /************************************************************************/ 521 $( document).ready(function() {521 $(function() { 522 522 523 523 var attachFileSizeLimit = foswiki.getPreference("TopicInteractionPlugin.attachFileSizeLimit") || 0; 524 attachFileSizeLimit *= 1024; 524 525 525 526 defaults = { -
trunk/TopicInteractionPlugin/pub/System/TopicInteractionPlugin/metadata.pattern.uncompressed.css
r13063 r14664 1 1 /* pattern skin adjustments */ 2 .foswikiAttachments table, 2 3 .foswikiLayoutTable, 3 4 .foswikiNullTable { … … 28 29 } 29 30 31 .foswikiAttachments, .foswikiFormStep, 30 32 .foswikiMetaData .foswikiFormStep { 31 33 padding:0px; 32 34 border:0px; 33 35 } 36 37 .foswikiAttachments .foswikiFormSteps { 38 padding:20px; 39 } 40 34 41 #patternScreen .foswikiFormSteps h2 { 35 42 padding-left:0px; … … 37 44 } 38 45 39 .foswikiAttachments table {40 width:auto;41 }42 46 43 47 th { 44 48 line-height:inherit; 45 49 } 50 51 .foswikiMetaDataHelp { 52 display:none; 53 } 54 .patternTopicActions { 55 padding:12px 20px; 56 border-width:1px; 57 } -
trunk/TopicInteractionPlugin/pub/System/TopicInteractionPlugin/metadata.uncompressed.js
r13578 r14664 448 448 loadDialog("#foswikiAttachmentPreviewer", "attachments::previewer"); 449 449 $previewer = $("#foswikiAttachmentPreviewer"), 450 $previewer.find(".foswikiAttachmentName").text(decodeURI (attachmentOpts.filename));450 $previewer.find(".foswikiAttachmentName").text(decodeURIComponent(attachmentOpts.filename)); 451 451 $previewer.find(".foswikiPreviewContainer").load(previewUrl, function() { 452 452 setTimeout(function() { … … 484 484 485 485 $.log("METADATA: show attachment editor"); 486 $container.find("input[name=origfilename]").val(decodeURI (attachmentOpts.filename));487 $container.find("input[name=filename]").val(decodeURI (attachmentOpts.filename));488 $container.find("input[name=filecomment]").val(decodeURI (attachmentOpts.filecomment));486 $container.find("input[name=origfilename]").val(decodeURIComponent(attachmentOpts.filename)); 487 $container.find("input[name=filename]").val(decodeURIComponent(attachmentOpts.filename)); 488 $container.find("input[name=filecomment]").val(decodeURIComponent(attachmentOpts.filecomment)); 489 489 $container.find(".foswikiThumbnailContainer").empty(); 490 490 … … 567 567 }, 568 568 onShow: function(dialog) { 569 dialog.container.find("#deleteAttachment").text(decodeURI (attachmentOpts.filename));569 dialog.container.find("#deleteAttachment").text(decodeURIComponent(attachmentOpts.filename)); 570 570 dialog.container.find(".foswikiThumbnailContainer").append(thumbnail); 571 571 }, 572 572 onSubmit: function(dialog) { 573 573 $.blockUI({ 574 message:"<h1>Deleting "+decodeURI (attachmentOpts.filename)+" ...</h1>",574 message:"<h1>Deleting "+decodeURIComponent(attachmentOpts.filename)+" ...</h1>", 575 575 fadeIn: 0, 576 576 fadeOut: 0 … … 616 616 $container.find(".foswikiMoveOne").show(); 617 617 $container.find(".foswikiMoveMultiple").hide(); 618 $container.find("input[name=filename]").val(decodeURI (attachmentOpts.filename));618 $container.find("input[name=filename]").val(decodeURIComponent(attachmentOpts.filename)); 619 619 $container.find(".foswikiThumbnailContainer").append(thumbnail); 620 620 }, -
trunk/TopicInteractionPlugin/templates/attach.topicinteraction.tmpl
r11309 r14664 1 1 %TMPL:INCLUDE{"attach"}% 2 2 %TMPL:INCLUDE{"metadata"}% 3 4 %TMPL:DEF{"attachments::hidden"}%%URLPARAM{"attachments_hidden" default="on"}%%TMPL:END% 5 %TMPL:DEF{"attachments::showuploader"}%%URLPARAM{"attachments_showuploader" default="on"}%%TMPL:END% 3 6 4 7 %TMPL:DEF{"content"}%<!-- content --> … … 10 13 icon="cross" 11 14 }% 12 <h1>13 <noautolink>%MAKETEXT{"Attachments at [_1]" args="%TMPL:P{"topictitle"}%"}%</noautolink>14 <span class='foswikiAttachmentsCount foswikiSmall foswikiGrayText'>()</span>15 </h1>16 %CLEAR%17 15 <div>%TMPL:P{"attachments"}%</div> 18 16 %TMPL:P{"metadata::css"}% -
trunk/TopicInteractionPlugin/templates/metadata.tmpl
r13578 r14664 60 60 %IF{"context FlexPaperPluginEnabled" then="$percntFLEXPAPERINIT$percnt"}%<!-- --> 61 61 %ADDTOZONE{"script" 62 id=" NATSKIN::METADATA::JS"62 id="METADATA::JS" 63 63 requires="JQUERYPLUGIN::LIVEQUERY, JQUERYPLUGIN::UI, JQUERYPLUGIN::UPLOAD" 64 64 text="<script src='%PUBURLPATH%/%SYSTEMWEB%/TopicInteractionPlugin/metadata.js'></script>" … … 68 68 %TMPL:DEF{"metadata::css"}%<!-- --> 69 69 %ADDTOZONE{"head" 70 tag="NATSKIN::METADATA::CSS"70 id="METADATA::CSS" 71 71 requires="NATSKIN::CSS" 72 72 text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/TopicInteractionPlugin/metadata.css' media='all' />" 73 73 }%<!-- --> 74 %TMPL:P{context="ImagePluginEnabled" then="metadata::css::imageplugin"}%<!-- --> 75 <!-- -->%TMPL:END% 76 77 %{ ################################################################################ }% 78 %TMPL:DEF{"metadata::css::imageplugin"}%<!-- --> 74 79 %ADDTOZONE{"head" 75 tag="IMAGEPLUGIN"76 text="<link rel='stylesheet' href='%PUBURL %/%SYSTEMWEB%/ImagePlugin/style.css' media='all' />"80 id="IMAGEPLUGIN" 81 text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/ImagePlugin/style.css' media='all' />" 77 82 }%<!-- -->%TMPL:END% 78 83 … … 307 312 <option class="foswikiOption" value="">%MAKETEXT{"Bulk action"}%</option> 308 313 <option class="foswikiOption" value="createlink">%MAKETEXT{"Insert links"}%</option> 309 <option class="foswikiOption" value="createimagegallery">%MAKETEXT{"Create image gallery"}%</option> 314 %IF{"context ImageGalleryPluginEnabled" 315 then=" <option class='foswikiOption' value='createimagegallery'>%MAKETEXT{"Create image gallery"}%</option>" 316 else="<!-- -->" 317 }% 310 318 <option class="foswikiOption" value="download">%MAKETEXT{"Download"}%</option> 311 319 <option class="foswikiOption" value="hide">%MAKETEXT{"Hide"}%</option> -
trunk/TopicInteractionPlugin/templates/view.topicinteraction.tmpl
r12642 r14664 11 11 <a name="topic-actions"></a> 12 12 <div class="patternTopicActions"> 13 <div class="patternTopicAction"> 14 <span class="patternActionButtons">%TMPL:P{"topicactionbuttons"}%</span> 15 </div> 13 <span class="patternActionButtons">%TMPL:P{"topicactionbuttons"}%</span> 16 14 </div>%TMPL:END%
Note: See TracChangeset
for help on using the changeset viewer.
