Pman.Dialog.MTrackMilestone.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 19 Jul 2011 04:48:16 +0000 (12:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 19 Jul 2011 04:48:16 +0000 (12:48 +0800)
Pman.Dialog.MTrackMilestone.js

index 0b92826..88e125d 100644 (file)
@@ -49,17 +49,19 @@ Pman.Dialog.MTrackMilestone = {
                                 actioncomplete : function(_self,action)
                                 {
                                     if (action.type == 'setdata') {
-                                       //_this.dialog.el.mask("Loading");
-                                       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+                                       if (_this.data.id) {
+                                
+                                         this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+                                       }
                                        return;
                                     }
                                     if (action.type == 'load') {
-                                        _this.dialog.el.unmask();
+                                        
                                         return;
                                     }
                                     if (action.type =='submit') {
                                     
-                                        _this.dialog.el.unmask();
+                                        
                                         _this.dialog.hide();
                                     
                                          if (_this.callback) {