Revision c3ef34ef
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js | ||
---|---|---|
37 | 37 |
var profile = $('<div class="profile"></div>'); |
38 | 38 |
|
39 | 39 |
// create services links and set the active class to the current service |
40 |
$.getJSON(window.GET_SERVICES_URL, function(data) { |
|
40 |
$.getJSON(window.GET_SERVICES_URL || window.CLOUDBAR_SERVICES, function(data) {
|
|
41 | 41 |
$.each(data, function(i, el){ |
42 | 42 |
var slink = $("<a>"); |
43 | 43 |
if (el.icon) { |
... | ... | |
58 | 58 |
var user = $('<div class="user"></div>'); |
59 | 59 |
var username = $('<a href="#"></a>'); |
60 | 60 |
var usermenu = $("<ul>"); |
61 |
var get_menu_url = window.GET_MENU_URL.concat('?location=').concat(window.location.toString());
|
|
61 |
var get_menu_url = (window.GET_MENU_URL || window.CLOUDBAR_MENU).concat('?location=').concat(window.location.toString());
|
|
62 | 62 |
$.getJSON(get_menu_url, function(data) { |
63 | 63 |
$.each(data, function(i,el) { |
64 | 64 |
if (i == 0){ |
Also available in: Unified diff