added support for progress dialog messages in the markup
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 20:46:58 +0000 (20:46 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Mar 2010 20:46:58 +0000 (20:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16074 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/ProgressDialog.js

index 9b344d1..887fe04 100644 (file)
@@ -13,6 +13,7 @@ if(!dojo._hasResource['openils.widget.ProgressDialog']) {
         [dijit.Dialog],
         {
             indeterminate : false,
+            message : '',
 
             startup : function() {
                 this.inherited(arguments);
@@ -34,7 +35,7 @@ if(!dojo._hasResource['openils.widget.ProgressDialog']) {
                     this.progress.indeterminate = false;
                 }
 
-                if(msg) {
+                if(msg || (msg = this.message) ) {
                     if(!this.msgDiv) {
                         this.msgDiv = dojo.create('div', {innerHTML : msg});
                     }