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:
authorsgiehl <stefan@piwik.org>2017-03-26 19:10:10 +0300
committersgiehl <stefan@piwik.org>2017-03-26 19:11:31 +0300
commit8574a58c20a572609d969d9dd3d428eaf4cd123e (patch)
treec06c5295a4028c48505b4c39c41c03a3fd114316 /plugins/CoreHome/javascripts/broadcast.js
parent4138e951366b796bb52b7750443aa207595038f4 (diff)
updates method documentation of `broadcast.buildReportingUrl`
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r--plugins/CoreHome/javascripts/broadcast.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js
index 2c6fad9eb5..7117a0fb69 100644
--- a/plugins/CoreHome/javascripts/broadcast.js
+++ b/plugins/CoreHome/javascripts/broadcast.js
@@ -237,20 +237,16 @@ var broadcast = {
},
/**
- * propagateAjax -- update hash values then make ajax calls.
- * example :
- * 1) <a href="javascript:broadcast.propagateAjax('module=Referrers&action=getKeywords')">View keywords report</a>
- * 2) Main menu li also goes through this function.
+ * Returns the current hash with updated parameters that were provided in ajaxUrl
*
- * Will propagate your new value into the current hash string and make ajax calls.
+ * Parameters like idGoal and idDashboard will be automatically reset if the won't be relevant anymore
*
- * NOTE: this method will only make ajax call and replacing main content.
+ * NOTE: this method does not issue any ajax call, but returns the hash instead
*
* @param {string} ajaxUrl querystring with parameters to be updated
- * @param {boolean} [disableHistory] the hash change won't be available in the browser history
- * @return {void}
+ * @return {string} current hash with updated parameters
*/
- buildReportingUrl: function (ajaxUrl, disableHistory) {
+ buildReportingUrl: function (ajaxUrl) {
// available in global scope
var currentHashStr = broadcast.getHash();