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/CoreHome/javascripts/materialize-bc.js')
-rw-r--r--plugins/CoreHome/javascripts/materialize-bc.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/materialize-bc.js b/plugins/CoreHome/javascripts/materialize-bc.js
new file mode 100644
index 0000000000..0bcede9018
--- /dev/null
+++ b/plugins/CoreHome/javascripts/materialize-bc.js
@@ -0,0 +1,18 @@
+/*!
+ * Matomo - free/libre analytics platform
+ *
+ * @link http://matomo.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ */
+(function () {
+ $(document).ready(function () {
+ window.Materialize = window.M;
+ $.fn.sideNav = $.fn.sidenav;
+ $.fn.material_select = $.fn.formSelect;
+
+ // we load jquery-ui after materialize so we can use the jquery-ui datepicker, but
+ // some controls in materialize get overwritten too. so we undo that here.
+ M.initializeJqueryWrapper(M.Tabs, 'tabs', 'M_Tabs');
+ M.initializeJqueryWrapper(M.Modal, 'modal', 'M_Modal');
+ });
+})(); \ No newline at end of file