Repository: cloudstack
Updated Branches:
  refs/heads/master 2459f55c2 -> ea196a4ff

CLOUDSTACK-6852: UI - modules - add global variable drModuleIncluded.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a8a853e3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a8a853e3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a8a853e3

Branch: refs/heads/master
Commit: a8a853e32250e2ec384dd432931658b430aa77cd
Parents: 2459f55
Author: Jessica Wang <jessicaw...@apache.org>
Authored: Fri Jun 6 13:16:27 2014 -0700
Committer: Jessica Wang <jessicaw...@apache.org>
Committed: Fri Jun 6 13:29:53 2014 -0700

----------------------------------------------------------------------
 ui/scripts/cloudStack.js      | 3 +++
 ui/scripts/sharedFunctions.js | 2 ++
 ui/scripts/storage.js         | 3 ---
 3 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a8a853e3/ui/scripts/cloudStack.js
----------------------------------------------------------------------
diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js
index be7692d..ad53a4a 100644
--- a/ui/scripts/cloudStack.js
+++ b/ui/scripts/cloudStack.js
@@ -490,5 +490,8 @@
         }
 
         document.title = _l('label.app.name');
+               
+        // set value to global variable
+        drModuleIncluded = isModuleIncluded("dr");     
     });
 })(cloudStack, jQuery);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a8a853e3/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index c51bc8d..bec0336 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -49,6 +49,8 @@ var md5HashedLogin = false;
 var pageSize = 20;
 //var pageSize = 1; //for testing only
 
+var drModuleIncluded = false;
+
 var rootAccountId = 1;
 
 //async action

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a8a853e3/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 32a6a7e..6f35452 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -901,14 +901,11 @@
                                                     });
                                                 }
 
-                                              
-                                                var drModuleIncluded = 
isModuleIncluded("dr");
                                                 var volumeDrEnabled = false;   
                                            
                                                 if (drModuleIncluded) {
                                                     volumeDrEnabled = 
cloudStack.dr.sharedFunctions.isVolumeDrEnabled(args.context.volumes[0]);       
                                             
                                                 }    
                                                 
-                                                
                                                 $(['Running', 
'Stopped']).each(function() {
                                                     $.ajax({
                                                         url: 
createURL('listVirtualMachines'),

Reply via email to