Skip to content

Commit

Permalink
=allow thumb of files currently uploading to contain exotic characters
Browse files Browse the repository at this point in the history
git-svn-id: file:///root/var/svn/trunk/uploadr@557 2ccee060-bf41-0410-b5a3-d28fdbd3ea41
  • Loading branch information
Jerome Decq committed Mar 18, 2009
1 parent 14952a9 commit 93a63f4
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -294,7 +294,7 @@ var photos = {
p = Cc['@mozilla.org/network/protocol;1?name=file']
.getService(Ci.nsIFileProtocolHandler)
.getFileFromURLSpec(p).path;
// p = Cc["@mozilla.org/network/io-service;1"]
// p = Cc["@mozilla.org/network/io-service;1"]
// .getService(Components.interfaces.nsIIOService).newURI(p).QueryInterface(Ci.nsIFileURL).file.path
}
if(currentPathsLists.indexOf(p) === -1) {
Expand Down Expand Up @@ -718,7 +718,7 @@ var photos = {

// Setup progress bar for this photo and show it in the queue
var img = document.createElementNS(NS_HTML, 'img');
img.src = 'file:///' + escape(p.thumb);
img.src = 'file:///' + encodeURIComponent(p.thumb);
img.width = p.thumb_width;
img.height = p.thumb_height;
var stack = document.createElement('stack');
Expand Down Expand Up @@ -783,11 +783,11 @@ var photos = {

// Normalize the photo list and selected list with the DOM
normalize: function() {
if (isNormalizing || _block_normalize) {
photos.normalizeTimeoutId = window.setTimeout(function() {
photos.normalize();
}, 100);
return;
if (isNormalizing || _block_normalize) {
photos.normalizeTimeoutId = window.setTimeout(function() {
photos.normalize();
}, 100);
return;
}
isNormalizing = true;
document.getElementById('photos').style.display = 'none';
Expand Down

0 comments on commit 93a63f4

Please sign in to comment.