Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Overlay/templates/helper.js')
-rw-r--r--plugins/Overlay/templates/helper.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/Overlay/templates/helper.js b/plugins/Overlay/templates/helper.js
index ee62cd60aa..1342bf79f0 100644
--- a/plugins/Overlay/templates/helper.js
+++ b/plugins/Overlay/templates/helper.js
@@ -6,26 +6,26 @@
*/
var Overlay_Helper = {
-
- /** Encode the iframe url to put it behind the hash in sidebar mode */
- encodeFrameUrl: function(url) {
- // url encode + replace % with $ to make sure that browsers don't break the encoding
- return encodeURIComponent(url).replace(/%/g, '$')
- },
-
- /** Decode the url after reading it from the hash */
- decodeFrameUrl: function(url) {
- // reverse encodeFrameUrl()
- return decodeURIComponent(url.replace(/\$/g, '%'));
- },
-
- /** Get the url to launch overlay */
- getOverlayLink: function(idSite, period, date, link) {
- var url = 'index.php?module=Overlay&period=' + period + '&date=' + date + '&idSite=' + idSite;
- if (link) {
- url += '#l=' + Overlay_Helper.encodeFrameUrl(link);
- }
- return url;
- }
-
+
+ /** Encode the iframe url to put it behind the hash in sidebar mode */
+ encodeFrameUrl: function (url) {
+ // url encode + replace % with $ to make sure that browsers don't break the encoding
+ return encodeURIComponent(url).replace(/%/g, '$')
+ },
+
+ /** Decode the url after reading it from the hash */
+ decodeFrameUrl: function (url) {
+ // reverse encodeFrameUrl()
+ return decodeURIComponent(url.replace(/\$/g, '%'));
+ },
+
+ /** Get the url to launch overlay */
+ getOverlayLink: function (idSite, period, date, link) {
+ var url = 'index.php?module=Overlay&period=' + period + '&date=' + date + '&idSite=' + idSite;
+ if (link) {
+ url += '#l=' + Overlay_Helper.encodeFrameUrl(link);
+ }
+ return url;
+ }
+
}; \ No newline at end of file