Ryan Scheuermann wrote:
Hey all,

I couldn't find the ticket for this issue anywhere, and I'm running off the latest nightly. WinXP, FF1.5. When I upload an MP3 using inline-uploading.php, in the "Options" pane, I try to toggle between Using Title/Using Filename/Using Icon - and when I "Send to editor" it always uses the title (no matter what option I chose). The problem is in this Javascript function (inline-uploading.php - lines 373-391):

function toggleOtherIcon(n) {
   od = document.getElementById('div'+n);
   o = document.getElementById('p'+n);
   oi = document.getElementById('I'+n);
   if ( oi.innerHTML == htmldecode(usingtitle) ) {
       o.innerHTML = filename[n];
       oi.innerHTML = usingfilename;
} else if ( oi.innerHTML == htmldecode(usingfilename) && icon[n] != '' ) {
       o.innerHTML = icon[n];
       oi.innerHTML = usingicon;
   } else {
       o.innerHTML = title[n];
       oi.innerHTML = usingtitle;
   }
   if ( oi.innerHTML == usingicon )
       od.className = 'otherwrap usingicon';
   else
       od.className = 'otherwrap usingtext';
}

This function just needs an "updateOtherIcon" function like the "updateImage" function to correctly update the DIV's innerHTML. I imagine this issue is a problem with any other uploaded file, not just MP3's. I'd gladly fix this issue, but I'm sure someone else with more intimate knowledge of the code would be better suited.

Ryan Scheuermann


The old adage applies: if it ain't in Trac, it doesn't exist. Please submit a bug.

--
----------
Doug Stewart
Systems Administrator/Web Applications Developer
Lockheed Martin Advanced Technology Labs
[EMAIL PROTECTED]
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to