[open-ils-commits] r15816 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 12 00:03:02 EST 2010
Author: erickson
Date: 2010-03-12 00:02:59 -0500 (Fri, 12 Mar 2010)
New Revision: 15816
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js
Log:
added option for displaying a message inside the progressdialog
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js 2010-03-12 03:48:01 UTC (rev 15815)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js 2010-03-12 05:02:59 UTC (rev 15816)
@@ -26,13 +26,25 @@
this.progress.update.apply(this.progress, arguments);
},
- show : function(ind) {
+ show : function(ind, msg) {
if(ind || this.indeterminate) {
this.progress.indeterminate = true;
this.update();
} else {
this.progress.indeterminate = false;
}
+
+ if(msg) {
+ if(!this.msgDiv) {
+ this.msgDiv = dojo.create('div', {innerHTML : msg});
+ }
+ this.containerNode.insertBefore(this.msgDiv, this.progress.domNode);
+ } else {
+ if(this.msgDiv) {
+ this.containerNode.removeChild(this.msgDiv);
+ this.msgDiv = null;
+ }
+ }
this.inherited(arguments);
},
More information about the open-ils-commits
mailing list