Commit c3ef34ef authored by root's avatar root
Browse files

Fix cloudbar.

parent a9281516
......@@ -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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment