[bugs] [Bug 1239] New - Renaming folders show wrong name but
behaves correctly
bugs at bugs.horde.org
bugs at bugs.horde.org
Fri May 9 15:33:47 PDT 2003
http://bugs.horde.org/show_bug.cgi?id=1239
*** shadow/1239 Fri May 9 14:33:47 2003
--- shadow/1239.tmp.32715 Fri May 9 14:33:47 2003
***************
*** 0 ****
--- 1,46 ----
+ Bug#: 1239
+ Product: Horde
+ Version: 2.2 Stable
+ Platform: PHP Code
+ OS/Version: All
+ Status: NEW
+ Resolution:
+ Severity: minor
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org
+ ReportedBy: jessian at usp.br
+ URL:
+ Summary: Renaming folders show wrong name but behaves correctly
+
+ Well, this is it
+
+ In the folders.php page, the "Rename Folder" action
+ show the next folder's name as the one to be renamed
+ and also as the default suggestion. Thank God it
+ renames the folder selected, not the one shown. :-))
+
+ I have kind of a block of new code here:
+ ( imp/templates/folders/javascript.inc - IMP 3.2.2 )
+ -- lines 133 and so on --
+ for (var i = 0, j = 0; i < document.fmanager.elements.length; i++) {
+ if (document.fmanager.elements[i].type == "checkbox") {
+ if (document.fmanager.elements[i].checked) {
+ tmp = window.prompt('<?php echo addslashes(_("You are renaming the
+ folder: ")) ?>' +
+ displayNames[j] + "\n" +
+ '<?php echo addslashes(_("Please enter the new
+ name:")) ?>', displayNames[j]);
+ if (tmp == null || tmp == '') {
+ return false;
+ }
+ newnames = newnames + tmp + "\n";
+ oldnames = oldnames + document.fmanager.elements[i].value + "\n";
+ }
+ j++;
+ }
+ }
+
+ Thank you for everything
+ Jessian
More information about the bugs
mailing list