mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
added loading to the progress, still a stub (not sure how to go about this yet)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fec0f35171
commit
53d1ececc4
@ -1136,9 +1136,12 @@ var WidgetTestActions = actions.Actions({
|
||||
// XXX shorten the nested class names...
|
||||
// XXX revise styles...
|
||||
showProgress: ['- Interface/Show progress bar...',
|
||||
function(text, value, max, msg){
|
||||
function(text, value, max){
|
||||
var viewer = this.ribbons.viewer
|
||||
|
||||
var msg = text instanceof Array ? text.slice(1).join(': ') : null
|
||||
text = text instanceof Array ? text[0] : text
|
||||
|
||||
// container...
|
||||
var container = viewer.find('.progress-container')
|
||||
container = container.length == 0 ?
|
||||
|
||||
@ -146,11 +146,13 @@ $(function(){
|
||||
ig.logger = ig.logger || {emit: function(e, v){
|
||||
console.log(' ', e, v)
|
||||
|
||||
// XXX HACK...
|
||||
if(e == 'queued'){
|
||||
// XXX HACK -- need meaningful status...
|
||||
if(e == 'queued'
|
||||
|| e == 'found'){
|
||||
ig.showProgress('Progress', '+0', '+1')
|
||||
|
||||
} else if(e == 'loaded' || e == 'done' || e == 'written'){
|
||||
} else if(e == 'loaded' || e == 'done' || e == 'written'
|
||||
|| e == 'skipping' || e == 'index'){
|
||||
ig.showProgress('Progress', '+1')
|
||||
}
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user