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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CorePluginsAdmin/angularjs/marketplace/marketplace.controller.js')
-rw-r--r--plugins/CorePluginsAdmin/angularjs/marketplace/marketplace.controller.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/CorePluginsAdmin/angularjs/marketplace/marketplace.controller.js b/plugins/CorePluginsAdmin/angularjs/marketplace/marketplace.controller.js
new file mode 100644
index 0000000000..0f55e6da31
--- /dev/null
+++ b/plugins/CorePluginsAdmin/angularjs/marketplace/marketplace.controller.js
@@ -0,0 +1,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);
+ };
+ }
+})(); \ No newline at end of file