Welcome to mirror list, hosted at ThFree Co, Russian Federation.

marketplace.controller.js « marketplace « angularjs « Marketplace « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: adc146beb4bb9419d62c08a048916d65066a0e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*!
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.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);
        };
    }
})();