6.0.0-beta1
7/5/25

[#8127] Javascript error in sub folder preview
Summary Javascript error in sub folder preview
Queue DIMP
Queue Version 1.1.1
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester ffv (at) tjpr (dot) jus (dot) br
Created 03/30/2009 (5941 days ago)
Due 03/30/2009 (5941 days ago)
Updated 01/13/2010 (5652 days ago)
Assigned 03/30/2009 (5941 days ago)
Resolved 04/20/2009 (5920 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/20/2009 10:28:11 PM Michael Slusarz Comment #6
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
This is probably a symptom of the greater overall issue - we should 
not be displaying subfolders in the 'specialfolders' section of the 
folder list, since it is not really designed for that (in terms of 
sizing the folderlist).  The solution: if a specialfolder contains 
children, create a dummy container entry in the bottom list and 
display subfolders there instead.  This has been implemented for IMP 5 
(it will not be backported to DIMP 1.x).
03/31/2009 02:14:41 AM ffv (at) tjpr (dot) jus (dot) br Comment #5 Reply to this comment
Hi all,



tries to create subfolders (many subfolders) inside of folder "Sent" 
of form that when expanded it makes with that the Trash folder does 
not appear in the left panel. After this, click in any subfolder 
inside of the folder "Sent" and verifies that a Javascript error will   
appear in the browser



.
03/30/2009 05:35:53 PM Michael Slusarz Comment #4 Reply to this comment
I can not reproduce on either IE 6 or IE 7.
03/30/2009 04:05:10 PM ffv (at) tjpr (dot) jus (dot) br Comment #3 Reply to this comment
Hi,



  the error appears as "Invalid Argument" in line 1927 of script 
"js/prototype.js" in the following stretch of code:



     for (var property in styles)

       if (property == 'opacity') element.setOpacity(styles[property]);

       else

         elementStyle[(property == 'float' || property == 'cssFloat') ?

           (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 
'styleFloat') :

             property] = styles[property];







When activating debug, the value of styles[property] appears as " - 
19px". I believe that this value would have to be positive. This 
Happens when a system folder possesss many subfolders and the user 
expands it making with that it does not fit all the objects in the 
screen.
03/30/2009 12:55:18 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
And what *is* the error message? Also, make sure to load the 
uncompressed javascript file versions from js/src, so that we get 
meaningful line numbers.
03/30/2009 03:02:06 AM ffv (at) tjpr (dot) jus (dot) br Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Javascript error in sub folder preview
Due ⇒ 03/30/2009
Queue ⇒ DIMP
Milestone ⇒
Patch ⇒ No
New Attachment: javascriptbug.jpg Download
State ⇒ Unconfirmed
Reply to this comment
Hi all,

has A  Bug of Javascript when I have many sub folders inside of a 
system folder (Sent, Drafts, Trash). In this case, when I click in one 
of innumerable subpastas, a Javascript error happens and the subfolder 
preview does not occur. In annex I show an image as example. This bug 
happens with IE6,7,8 and it does not occur with firefox

Saved Queries