r60332 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60331‎ | r60332 | r60333 >
Date:18:44, 23 December 2009
Author:yaron
Status:deferred
Tags:
Comment:
Removed extra spaces from file name output
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_UploadWindow.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow.php
@@ -564,11 +564,11 @@
565565 // at the end in any case
566566 var cur_value = parent.document.getElementById("{$this->mInputID}").value;
567567 if (cur_value == '') {
568 - parent.document.getElementById("{$this->mInputID}").value = "$basename {$this->mDelimiter} ";
 568+ parent.document.getElementById("{$this->mInputID}").value = "$basename{$this->mDelimiter} ";
569569 } else {
570570 var last_char = cur_value.charAt(cur_value.length - 1);
571571 if (last_char == '{$this->mDelimiter}' || last_char == ' ') {
572 - parent.document.getElementById("{$this->mInputID}").value += "$basename {$this->mDelimiter} ";
 572+ parent.document.getElementById("{$this->mInputID}").value += "$basename{$this->mDelimiter} ";
573573 } else {
574574 parent.document.getElementById("{$this->mInputID}").value += "{$this->mDelimiter} $basename{$this->mDelimiter} ";
575575 }

Status & tagging log