Skip to content

Commit

Permalink
Refs #2135
Browse files Browse the repository at this point in the history
Fixing couple small bugs
  • Loading branch information
mattab committed May 13, 2013
1 parent b737e9e commit 10deaac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
3 changes: 3 additions & 0 deletions plugins/SegmentEditor/templates/Segmentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ Segmentation = (function($) {
}

var setSegment = function(segmentStr){
if(!$.browser.mozilla) {
segmentStr = encodeURIComponent(segmentStr);
}
self.currentSegmentStr = segmentStr;
}

Expand Down
24 changes: 13 additions & 11 deletions plugins/UserCountryMap/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ public function visitorMap()
));

// template for ajax requests
$view->reqParamsJSON = Piwik_Common::json_encode(array(
'period' => $period,
'idSite' => $idSite,
'date' => $date,
'token_auth' => $token_auth,
'format' => 'json',
'segment' => Piwik_ViewDataTable::getRawSegmentFromRequest(),
'showRawMetrics' => 1,
'enable_filter_excludelowpop' => 1,
'filter_excludelowpop_value' => -1
));
$params = array(
'period' => $period,
'idSite' => $idSite,
'date' => $date,
'token_auth' => $token_auth,
'format' => 'json',
'segment' => Piwik_ViewDataTable::getRawSegmentFromRequest(),
'showRawMetrics' => 1,
'enable_filter_excludelowpop' => 1,
'filter_excludelowpop_value' => -1
);
$params = array_filter($params);
$view->reqParamsJSON = Piwik_Common::json_encode($params);
$view->metrics = $config['metrics'] = $this->getMetrics($idSite, $period, $date, $token_auth);
$config['svgBasePath'] = 'plugins/UserCountryMap/svg/';
$config['mapCssPath'] = 'plugins/UserCountryMap/css/map.css';
Expand Down

0 comments on commit 10deaac

Please sign in to comment.