mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +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 shorten the nested class names...
|
||||||
// XXX revise styles...
|
// XXX revise styles...
|
||||||
showProgress: ['- Interface/Show progress bar...',
|
showProgress: ['- Interface/Show progress bar...',
|
||||||
function(text, value, max, msg){
|
function(text, value, max){
|
||||||
var viewer = this.ribbons.viewer
|
var viewer = this.ribbons.viewer
|
||||||
|
|
||||||
|
var msg = text instanceof Array ? text.slice(1).join(': ') : null
|
||||||
|
text = text instanceof Array ? text[0] : text
|
||||||
|
|
||||||
// container...
|
// container...
|
||||||
var container = viewer.find('.progress-container')
|
var container = viewer.find('.progress-container')
|
||||||
container = container.length == 0 ?
|
container = container.length == 0 ?
|
||||||
|
|||||||
@ -146,11 +146,13 @@ $(function(){
|
|||||||
ig.logger = ig.logger || {emit: function(e, v){
|
ig.logger = ig.logger || {emit: function(e, v){
|
||||||
console.log(' ', e, v)
|
console.log(' ', e, v)
|
||||||
|
|
||||||
// XXX HACK...
|
// XXX HACK -- need meaningful status...
|
||||||
if(e == 'queued'){
|
if(e == 'queued'
|
||||||
|
|| e == 'found'){
|
||||||
ig.showProgress('Progress', '+0', '+1')
|
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')
|
ig.showProgress('Progress', '+1')
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user