minor changes to scrollbars -- found bug I'm not sure how to fix, so here's a stub...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-13 05:46:46 +04:00
parent c893085b60
commit 92b928fbfb
2 changed files with 10 additions and 3 deletions

View File

@ -511,7 +511,7 @@ function getProgressContainer(mode, parent){
// Shorthand:
// resetProgressBar(name)
//
function progressBar(name, container, close, hide_timeout){
function progressBar(name, container, close, hide_timeout, auto_remove){
container = container == null
? getProgressContainer()
: container
@ -523,6 +523,7 @@ function progressBar(name, container, close, hide_timeout){
: hide_timeout < 0 ? 0
: hide_timeout > 3000 ? 3000
: hide_timeout
auto_remove = auto_remove == null ? true : auto_remove
var widget = getProgressBar(name)
@ -568,6 +569,10 @@ function progressBar(name, container, close, hide_timeout){
setTimeout(function(){
widget.hide()
if(auto_remove){
widget.remove()
}
}, hide_timeout)
})
.on('progressReset', function(){

View File

@ -34,7 +34,9 @@ function getWorkerProgressBar(name, worker, container){
container,
function(){
WORKERS[name].dropQueue()
})
},
null,
true)
worker
.progress(function(done, total){
@ -57,7 +59,7 @@ function getWorkerProgressBar(name, worker, container){
// get/create a named worker queue...
//
// XXX rename this to something task-related.... (???)
function getWorkerQueue(name, pool_size, container, no_auto_start, no_progress){
function getWorkerQueue(name, pool_size, container, no_auto_start, no_progress, auto_clear){
pool_size = pool_size == null ? 1 : pool_size
// create a new worker queue...