cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/master to f2a8082
Date Thu, 05 Jun 2014 20:49:03 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 2ac001350 -> f2a8082a4


CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().


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

Branch: refs/heads/master
Commit: f2a8082a43a7f8e82f26c7129cd8c81a3acaf6f9
Parents: 2ac0013
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Jun 5 13:44:33 2014 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Jun 5 13:48:51 2014 -0700

----------------------------------------------------------------------
 ui/scripts/sharedFunctions.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2a8082a/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index d206349..c51bc8d 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -1119,6 +1119,16 @@ cloudStack.converters = {
     }
 }
 
+function isModuleIncluded(moduleName) {    
+    for(var moduleIndex = 0; moduleIndex < cloudStack.modules.length; moduleIndex++) {
+        if (cloudStack.modules[moduleIndex] == moduleName) {
+            return true;            
+            break;            
+        }
+    }    
+    return false;
+}
+
 //data parameter passed to API call in listView
 
 function listViewDataProvider(args, data, options) {


Mime
View raw message