Fix cloudbar. astakos/v0.3.0
authorroot <root@pithos.dev.grnet.gr>
Tue, 28 Feb 2012 14:51:31 +0000 (16:51 +0200)
committerroot <root@pithos.dev.grnet.gr>
Tue, 28 Feb 2012 14:51:31 +0000 (16:51 +0200)
snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js

index a0983ac..1cb5e31 100644 (file)
@@ -37,7 +37,7 @@ $(document).ready(function(){
     var profile = $('<div class="profile"></div>');
     
     // create services links and set the active class to the current service
-    $.getJSON(window.GET_SERVICES_URL, function(data) {
+    $.getJSON(window.GET_SERVICES_URL || window.CLOUDBAR_SERVICES, function(data) {
             $.each(data, function(i, el){
             var slink = $("<a>");
             if (el.icon) {
@@ -58,7 +58,7 @@ $(document).ready(function(){
     var user = $('<div class="user"></div>');    
     var username = $('<a href="#"></a>');
     var usermenu = $("<ul>");
-    var get_menu_url = window.GET_MENU_URL.concat('?location=').concat(window.location.toString());
+    var get_menu_url = (window.GET_MENU_URL || window.CLOUDBAR_MENU).concat('?location=').concat(window.location.toString());
     $.getJSON(get_menu_url, function(data) {
         $.each(data, function(i,el) {
             if (i == 0){