cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [06/50] git commit: updated refs/heads/4.4 to d5220a8
Date Mon, 28 Jul 2014 14:04:18 GMT
CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().

(cherry picked from commit 431ea8e9c2a09d85b089cd5bf608eb0ab340f083)


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

Branch: refs/heads/4.4
Commit: f7697637cb5e6787d4f8f23ef0d8432f28d8b921
Parents: ebcb5a5
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Jun 5 13:44:33 2014 -0700
Committer: Daan Hoogland <daan@onecht.net>
Committed: Mon Jul 28 16:02:25 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f7697637/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