blob: 0f55e6da3103f1ec5ade714204424d721395fc1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
angular.module('piwikApp').controller('PiwikMarketplaceController', PiwikMarketplaceController);
PiwikMarketplaceController.$inject = ['piwik'];
function PiwikMarketplaceController(piwik) {
// remember to keep controller very simple. Create a service/factory (model) if needed
this.changePluginSort = function () {
piwik.broadcast.propagateNewPage('query=&sort=' + this.pluginSort);
};
this.changePluginType = function () {
piwik.broadcast.propagateNewPage('query=&show=' + this.pluginType);
};
}
})();
|