Sha256: 6c8734484560b513fd7fb9d6a4b9d2c87a6f3166588caf9edb028e38c08b4dff

Contents?: true

Size: 904 Bytes

Versions: 4

Compression:

Stored size: 904 Bytes

Contents

//>>built
define("dojox/mobile/ProgressBar",["dojo/_base/declare","dojo/dom-class","dojo/dom-construct","dijit/_WidgetBase"],function(_1,_2,_3,_4){
return _1("dojox.mobile.ProgressBar",_4,{value:"0",maximum:100,label:"",baseClass:"mblProgressBar",buildRendering:function(){
this.inherited(arguments);
this.progressNode=_3.create("div",{className:"mblProgressBarProgress"},this.domNode);
this.msgNode=_3.create("div",{className:"mblProgressBarMsg"},this.domNode);
},_setValueAttr:function(_5){
_5+="";
this._set("value",_5);
var _6=Math.min(100,(_5.indexOf("%")!=-1?parseFloat(_5):this.maximum?100*_5/this.maximum:0));
this.progressNode.style.width=_6+"%";
_2.toggle(this.progressNode,"mblProgressBarNotStarted",!_6);
_2.toggle(this.progressNode,"mblProgressBarComplete",_6==100);
this.onChange(_5,this.maximum,_6);
},_setLabelAttr:function(_7){
this.msgNode.innerHTML=_7;
},onChange:function(){
}});
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/mobile/ProgressBar.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/mobile/ProgressBar.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/mobile/ProgressBar.js
dojox-rails-0.11.0 vendor/assets/javascripts/mobile/ProgressBar.js