[open-ils-commits] r12778 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 3 14:26:12 EDT 2009
Author: erickson
Date: 2009-04-03 14:26:09 -0400 (Fri, 03 Apr 2009)
New Revision: 12778
Added:
trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js
Log:
popup progress bar
Added: trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js (rev 0)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js 2009-04-03 18:26:09 UTC (rev 12778)
@@ -0,0 +1,33 @@
+if(!dojo._hasResource['openils.widget.ProgressDialog']) {
+ dojo.provide('openils.widget.ProgressDialog');
+ dojo.require('dijit.ProgressBar');
+ dojo.require('dijit.Dialog');
+ dojo.require('openils.Util');
+
+ /**
+ * A popup dialog with an embedded progress bar. imagine that.
+ */
+
+ dojo.declare(
+ 'openils.widget.ProgressDialog',
+ [dijit.Dialog],
+ {
+ indeterminate : false,
+
+ startup : function() {
+ this.inherited(arguments);
+ this.progress = new dijit.ProgressBar();
+ this.progress.indeterminate = this.indeterminate;
+ this.progress.startup();
+ openils.Util.addCSSClass(this.progress.domNode, 'oils-progress-dialog');
+ this.containerNode.appendChild(this.progress.domNode);
+ if(this.indeterminate) this.update();
+ },
+
+ update : function() {
+ this.progress.update.apply(this.progress, arguments);
+ }
+ }
+ );
+}
+
More information about the open-ils-commits
mailing list