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:
Alex A. Naanou 2016-11-04 21:46:57 +03:00
parent fec0f35171
commit 53d1ececc4
2 changed files with 9 additions and 4 deletions

View File

@ -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 ?

View File

@ -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')
}
}}