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:
authorThomas Steur <tsteur@users.noreply.github.com>2016-10-30 23:07:48 +0300
committerGitHub <noreply@github.com>2016-10-30 23:07:48 +0300
commit8bec1fa32bd34bdfecdfbd63d9f141148d7ba642 (patch)
treee21580974bd9035d3ef9ea04a3bde1407d2c5d5c /plugins/CoreHome/javascripts
parent5f88573d93c38be03adce8e6fba96b223489d5f0 (diff)
parent1bce378f201b7706a1e3f272b914020e72c63a13 (diff)
Merge pull request #10751 from piwik/menuselect
Make sure to create a dropdown menu when there are more than 5 entries
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rw-r--r--plugins/CoreHome/javascripts/broadcast.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js
index 9034c9eef5..3ec2a0821d 100644
--- a/plugins/CoreHome/javascripts/broadcast.js
+++ b/plugins/CoreHome/javascripts/broadcast.js
@@ -315,6 +315,15 @@ var broadcast = {
}
}
+ var updatedUrl = new RegExp('&updated=([0-9]+)');
+ var updatedCounter = updatedUrl.exec(currentSearchStr);
+ if (!updatedCounter) {
+ currentSearchStr += '&updated=1';
+ } else {
+ updatedCounter = 1 + parseInt(updatedCounter[1]);
+ currentSearchStr = currentSearchStr.replace(new RegExp('(&updated=[0-9]+)'), '&updated=' + updatedCounter);
+ }
+
if (strHash && currentHashStr.length != 0) {
var params_hash_vals = strHash.split("&");
for (var i = 0; i < params_hash_vals.length; i++) {