Changeset 84506a in indico
- Timestamp:
- 03/16/11 18:44:26 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- bb77c9
- Parents:
- 63bc1c
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (03/16/11 18:33:45)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (03/16/11 18:44:26)
- Location:
- indico
- Files:
-
- 3 edited
-
MaKaC/webinterface/tpls/js/vars.js.tpl (modified) (1 diff)
-
MaKaC/webinterface/urlHandlers.py (modified) (1 diff)
-
htdocs/js/indico/Core/Components.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/js/vars.js.tpl
ra755c1 r84506a 95 95 Urls: { 96 96 JsonRpcService: "<%= urlHandlers.UHJsonRpcService.getURL() %>", 97 SecureJsonRpcService: "<%= urlHandlers.UHSecureJsonRpcService.getURL() %>",98 97 99 98 ImagesBase: "<%= Config.getInstance().getImagesBaseURL() %>", -
indico/MaKaC/webinterface/urlHandlers.py
r19825c r84506a 4246 4246 _relativeURL = "services/json-rpc" 4247 4247 4248 class UHSecureJsonRpcService (SecureURLHandler):4249 _relativeURL = "services/json-rpc"4250 4251 4248 class UHJavascriptCalendar (URLHandler): 4252 4249 _relativeURL = "js/calendar/calendar.js" -
indico/htdocs/js/indico/Core/Components.js
r63bc1c r84506a 16 16 17 17 if (location.protocol == "https:") { 18 indicoSource = curry(jsonRpcValue, Indico.Urls.SecureJsonRpcService);19 indicoRequest = curry(jsonRpc, Indico.Urls.SecureJsonRpcService);20 imageSrc = imageFunctionGenerator(Indico.Urls.SecureImagesBase);21 22 18 function fixUrls(urls) { 23 19 for(var key in urls) { … … 28 24 } 29 25 30 // skip if the url starts with https 26 // skip if the url starts with https or it's ImagesBase 31 27 if(urls[key].indexOf('https:') === 0) { 32 28 continue; 33 29 } 34 30 35 urls[key] = urls[key].replace(/^http:/, 'https:'); 31 if(urls['Secure' + key]) { 32 // we alraedy have a secure url, e.g. for ImageBase 33 urls[key] = urls['Secure' + key]; 34 } 35 else { 36 urls[key] = urls[key].replace(/^http:/, 'https:'); 37 } 36 38 } 37 39 } 38 40 39 41 fixUrls(Indico.Urls); 40 } else {41 indicoSource = curry(jsonRpcValue, Indico.Urls.JsonRpcService);42 indicoRequest = curry(jsonRpc, Indico.Urls.JsonRpcService);43 imageSrc = imageFunctionGenerator(Indico.Urls.ImagesBase);44 42 } 43 44 indicoSource = curry(jsonRpcValue, Indico.Urls.JsonRpcService); 45 indicoRequest = curry(jsonRpc, Indico.Urls.JsonRpcService); 46 imageSrc = imageFunctionGenerator(Indico.Urls.ImagesBase); 45 47 46 48
Note: See TracChangeset
for help on using the changeset viewer.
