Changeset 583
- Timestamp:
- 04/01/09 10:05:49 (8 months ago)
- Files:
-
- trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/conf.js (modified) (1 diff)
- trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/photos.js (modified) (2 diffs)
- trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/threads.js (modified) (3 diffs)
- trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/ui.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/conf.js
r541 r583 42 42 timeout: true, 43 43 retry: true, 44 fileLogging: false 44 fileLogging: false, 45 sort: false, 46 normalize: false 45 47 }, 46 48 trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/photos.js
r559 r583 784 784 // Normalize the photo list and selected list with the DOM 785 785 normalize: function() { 786 if(conf.console.normalize) { 787 logStringMessage('normalize'); 788 } 786 789 if (isNormalizing || _block_normalize) { 787 790 photos.normalizeTimeoutId = window.setTimeout(function() { 788 791 photos.normalize(); 789 }, 100);792 }, 500); 790 793 return; 791 794 } 792 795 isNormalizing = true; 796 if(conf.console.normalize) { 797 logStringMessage('normalize [in]'); 798 } 793 799 document.getElementById('photos').style.display = 'none'; 794 800 document.getElementById('normalizing').style.display = '-moz-box'; … … 815 821 document.getElementById('photos').style.display = '-moz-box'; 816 822 document.getElementById('normalizing').style.display = 'none'; 823 if(conf.console.normalize) { 824 logStringMessage('normalize [out]'); 825 } 817 826 isNormalizing = false; 818 827 }, trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/threads.js
r556 r583 439 439 SortCallback.prototype = { 440 440 run: function() { 441 if(conf.console.sort) { 442 logStringMessage('sort'); 443 } 441 444 // Allow blocking sorts during loading 442 445 if (0 != _block_sort) { 446 window.setTimeout(function() { 447 threads.main.dispatch(new SortCallback(), threads.main.DISPATCH_NORMAL); 448 }, 500 ); 443 449 return; 444 450 } … … 446 452 // Perform the sort 447 453 block_normalize(); 454 if(conf.console.sort) { 455 logStringMessage('sort [in] ' + _block_normalize); 456 } 448 457 if (1 >= photos.list.length) { 449 if (1 == photos.list.length) { buttons.upload.enable(); } 458 if (1 == photos.list.length) { 459 buttons.upload.enable(); 460 } 461 if(conf.console.sort) { 462 logStringMessage('sort [out]'); 463 } 450 464 unblock_normalize(); 451 465 return; … … 475 489 } 476 490 unblock_normalize(); 477 photos.normalize(); 491 if(conf.console.sort) { 492 logStringMessage('sort [out]'); 493 } 494 photos.normalize(); 478 495 479 496 // And finally allow them to upload trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/ui.js
r550 r583 202 202 203 203 about: function() { 204 //photos.normalize(); 204 205 window.openDialog('chrome://uploadr/content/about.xul', 205 206 'about-dialog', 'chrome,modal,centerscreen', … … 382 383 var unblock_normalize = function() { 383 384 --_block_normalize; 385 if(_block_normalize < 0) { 386 logStringMessage("extra unblock_normalize :-("); 387 } 384 388 }; 385 389 var _block_exit = 0;