Skip to content
Extraits de code Groupes Projets
Valider fd2f6ada rédigé par benakamoorthi's avatar benakamoorthi
Parcourir les fichiers

Refs #3184, change current period when date selector's selected period is clicked again.

git-svn-id: http://dev.piwik.org/svn/trunk@6875 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent cbfb130b
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -270,7 +270,7 @@ $(document).ready(function() { ...@@ -270,7 +270,7 @@ $(document).ready(function() {
} }
}; };
updateDate = function (dateText, inst) updateDate = function (dateText)
{ {
piwikHelper.showAjaxLoading('ajaxLoadingCalendar'); piwikHelper.showAjaxLoading('ajaxLoadingCalendar');
var date = dateText; var date = dateText;
...@@ -377,6 +377,17 @@ $(document).ready(function() { ...@@ -377,6 +377,17 @@ $(document).ready(function() {
period = broadcast.getValueFromUrl('period', request_URL), period = broadcast.getValueFromUrl('period', request_URL),
lastPeriod = selectedPeriod; lastPeriod = selectedPeriod;
// if clicking on the selected period, change the period but not the date
if (selectedPeriod == period)
{
if (piwik.period != selectedPeriod) // only reload if current period is different from selected
{
selectedPeriod = period;
updateDate(piwik.currentDateString);
}
return true;
}
// switch the selected period // switch the selected period
selectedPeriod = period; selectedPeriod = period;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter