forked from azhurb/stalker_portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm.js
28 lines (19 loc) · 844 Bytes
/
alarm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(function(){
// The first argument - caption under the icon in the main menu
main_menu.add(get_word('Alarm'), [], 'alarm.png', function(){
var params = '';
if (stb.user['web_proxy_host']){
params = '?proxy=http://'+stb.user['web_proxy_host']+':' +stb.user['web_proxy_port'];
}
stb.setFrontPanel('.');
if (!params){
params += '?';
}else{
params += '&';
}
params += 'referrer='+encodeURIComponent(window.location);
//window.location = '/' + stb.portal_path + '/external/olltv/index.html'+params;
window.location = '/' + stb.portal_path +'/external/alarm2/index.php'+params;
}, {layer_name : "alarm2"}); // For correct module work it is neccessary to point unique layer_name
loader.next();
})();