Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/webroot/js/stats/plot-selection.js
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/webroot/js/stats/plot-selection.js')
-rwxr-xr-xsite/app/webroot/js/stats/plot-selection.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/site/app/webroot/js/stats/plot-selection.js b/site/app/webroot/js/stats/plot-selection.js
index 5310f32..805e3b9 100755
--- a/site/app/webroot/js/stats/plot-selection.js
+++ b/site/app/webroot/js/stats/plot-selection.js
@@ -65,9 +65,15 @@ var plotSelection = {
menu.addItem({'value': 'date', 'name': localized['statistics_js_groupby_selector_date']}).select();
menu.addItem({'value': 'week', 'name': localized['statistics_js_groupby_selector_week']});
menu.addItem({'value': 'month', 'name': localized['statistics_js_groupby_selector_month']});
+ menu.addItem({'value': 'week_over_week', 'name':localized['statistics_js_groupby_selector_week_over_week']});
$('#group-by-selector').hide();
},
+
+ getGroupByValue: function() {
+ return (!this.dropdowns['group-by-selector']) ? 'date' :
+ this.dropdowns['group-by-selector'].selectedItem.value;
+ },
addAdditionalDropdown: function() {
var type = plotSelection.dropdowns['plot-selector'].selectedItem.value;
@@ -371,4 +377,4 @@ var plotSelection = {
}
});
}
-}; \ No newline at end of file
+};