diff options
author | Anna Koskinen <anna@vaadin.com> | 2012-11-30 12:58:05 +0200 |
---|---|---|
committer | Anna Koskinen <anna@vaadin.com> | 2012-11-30 13:00:07 +0200 |
commit | faf6b3861d26571ffefd3dc60c2ff7d5685576d0 (patch) | |
tree | d7f8109ed0c03396f49895cf806499ccd670196b /WebContent/VAADIN/vaadinBootstrap.js | |
parent | 93f932e52558dd933aaa7a8c8b60c8306b0cc189 (diff) | |
download | vaadin-framework-faf6b3861d26571ffefd3dc60c2ff7d5685576d0.tar.gz vaadin-framework-faf6b3861d26571ffefd3dc60c2ff7d5685576d0.zip |
Added prefix "v-" to internal parameters (#10156)
Change-Id: I79ac824bc19fa42b976954148e69d54fb91b77ab
Diffstat (limited to 'WebContent/VAADIN/vaadinBootstrap.js')
-rw-r--r-- | WebContent/VAADIN/vaadinBootstrap.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js index 60f1b02452..64a1a00111 100644 --- a/WebContent/VAADIN/vaadinBootstrap.js +++ b/WebContent/VAADIN/vaadinBootstrap.js @@ -84,10 +84,10 @@ // No special url defined, use the same URL that loaded this page (without the fragment) url = window.location.href.replace(/#.*/,''); } - url += ((/\?/).test(url) ? "&" : "?") + "browserDetails=1"; - var rootId = getConfig("rootId"); + url += ((/\?/).test(url) ? "&" : "?") + "v-browserDetails=1"; + var rootId = getConfig("v-rootId"); if (rootId !== undefined) { - url += "&rootId=" + rootId; + url += "&v-rootId=" + rootId; } // Tell the UI what theme it is configured to use @@ -99,7 +99,7 @@ url += '&' + vaadin.getBrowserDetailsParameters(appId); // Timestamp to avoid caching - url += '&' + (new Date()).getTime(); + url += '&v-' + (new Date()).getTime(); var r; try { @@ -155,7 +155,7 @@ var bootstrapApp = function(mayDefer) { var vaadinDir = getConfig('vaadinDir'); - var themeUri = vaadinDir + 'themes/' + getConfig('theme') + var themeUri = vaadinDir + 'themes/' + getConfig('theme'); loadTheme(themeUri); var widgetset = getConfig('widgetset'); @@ -204,8 +204,8 @@ }, getBrowserDetailsParameters: function(parentElementId) { // Screen height and width - var url = 'sh=' + window.screen.height; - url += '&sw=' + window.screen.width; + var url = 'v-sh=' + window.screen.height; + url += '&v-sw=' + window.screen.width; // Window height and width var cw = 0; @@ -219,12 +219,12 @@ cw = document.documentElement.clientWidth; ch = document.documentElement.clientHeight; } - url += '&cw=' + cw + '&ch=' + ch; + url += '&v-cw=' + cw + '&v-ch=' + ch; var d = new Date(); - url += '&curdate=' + d.getTime(); + url += '&v-curdate=' + d.getTime(); var tzo1 = d.getTimezoneOffset(); // current offset var dstDiff = 0; @@ -241,37 +241,37 @@ } // Time zone offset - url += '&tzo=' + tzo1; + url += '&v-tzo=' + tzo1; // DST difference - url += '&dstd=' + dstDiff; + url += '&v-dstd=' + dstDiff; // Raw time zone offset - url += '&rtzo=' + rtzo; + url += '&v-rtzo=' + rtzo; // DST in effect? - url += '&dston=' + (tzo1 != rtzo); + url += '&v-dston=' + (tzo1 != rtzo); var pe = document.getElementById(parentElementId); if (pe) { - url += '&vw=' + pe.offsetWidth; - url += '&vh=' + pe.offsetHeight; + url += '&v-vw=' + pe.offsetWidth; + url += '&v-vh=' + pe.offsetHeight; } // Location - url += '&loc=' + encodeURIComponent(location.href); + url += '&v-loc=' + encodeURIComponent(location.href); // Window name if (window.name) { - url += '&wn=' + encodeURIComponent(window.name); + url += '&v-wn=' + encodeURIComponent(window.name); } // Detect touch device support - try { document.createEvent("TouchEvent"); url += "&td=1";} catch(e){}; + try { document.createEvent("TouchEvent"); url += "&v-td=1";} catch(e){}; return url; } }; log('Vaadin bootstrap loaded'); -})();
\ No newline at end of file +})(); |