rails_material_admin 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,113 +0,0 @@
1
- var miniSidebarEnabled = true;
2
-
3
- $(document).on('turbolinks:load', function() {
4
- $(function () {
5
- "use strict";
6
- $(function () {
7
- $(".preloader").fadeOut()
8
- }), jQuery(document).on("click", ".mega-dropdown", function (i) {
9
- i.stopPropagation()
10
- });
11
- var i = function () {
12
- var i = window.innerWidth > 0 ? window.innerWidth : this.screen.width;
13
- var e = 70;
14
-
15
- if (miniSidebarEnabled) {
16
- $("body").addClass("mini-sidebar");
17
- $(".navbar-brand span").hide();
18
- $(".scroll-sidebar, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible");
19
- $(".sidebartoggler i").addClass("ti-menu");
20
- } else {
21
- $("body").removeClass("mini-sidebar");
22
- $(".navbar-brand span").show();
23
- }
24
-
25
- var o = (window.innerHeight > 0 ? window.innerHeight : this.screen.height) - 1;
26
- o -= e, 1 > o && (o = 1), o > e && $(".page-wrapper").css("min-height", o + "px")
27
- };
28
- $(window).ready(i), $(window).on("resize", i), $(".sidebartoggler").on("click", function () {
29
- $("body").hasClass("mini-sidebar")
30
- ? (
31
- $("body").trigger("resize"), $(".scroll-sidebar, .slimScrollDiv").css("overflow", "hidden").parent().css("overflow", "visible"), $("body").removeClass("mini-sidebar"), $(".navbar-brand span").show(), miniSidebarEnabled=false
32
- ) : (
33
- $("body").trigger("resize"), $(".scroll-sidebar, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible"), $("body").addClass("mini-sidebar"), $(".navbar-brand span").hide(), miniSidebarEnabled=true
34
- )
35
- }), $(".fix-header .topbar").stick_in_parent({}), $(".nav-toggler").click(function () {
36
- $("body").toggleClass("show-sidebar"), $(".nav-toggler i").toggleClass("ti-menu"), $(".nav-toggler i").addClass("ti-close")
37
- }), $(".search-box a, .search-box .app-search .srh-btn").on("click", function () {
38
- $(".app-search").toggle(200)
39
- }), $(".right-side-toggle").click(function () {
40
- $(".right-sidebar").slideDown(50), $(".right-sidebar").toggleClass("shw-rside")
41
- }), $(".floating-labels .form-control").on("focus blur", function (i) {
42
- $(this).parents(".form-group").toggleClass("focused", "focus" === i.type || this.value.length > 0)
43
- }).trigger("blur"), $(function () {
44
- for (var i = window.location, e = $("ul#sidebarnav a").filter(function () {
45
- return this.href == i
46
- }).addClass("active").parent().addClass("active");;) {
47
- if (!e.is("li")) break;
48
- e = e.parent().addClass("in").parent().addClass("active")
49
- }
50
- }), $(function () {
51
- $('[data-toggle="tooltip"]').tooltip()
52
- }), $(function () {
53
- $('[data-toggle="popover"]').popover()
54
- }), $(function () {
55
- $("#sidebarnav").metisMenu()
56
- }), $(".scroll-sidebar").slimScroll({
57
- position: "left",
58
- size: "5px",
59
- height: "100%",
60
- color: "#dcdcdc"
61
- }), $(".message-center").slimScroll({
62
- position: "right",
63
- size: "5px",
64
- color: "#dcdcdc"
65
- }), $(".aboutscroll").slimScroll({
66
- position: "right",
67
- size: "5px",
68
- height: "80",
69
- color: "#dcdcdc"
70
- }), $(".message-scroll").slimScroll({
71
- position: "right",
72
- size: "5px",
73
- height: "570",
74
- color: "#dcdcdc"
75
- }), $(".chat-box").slimScroll({
76
- position: "right",
77
- size: "5px",
78
- height: "470",
79
- color: "#dcdcdc"
80
- }), $(".slimscrollright").slimScroll({
81
- height: "100%",
82
- position: "right",
83
- size: "5px",
84
- color: "#dcdcdc"
85
- }), $("body").trigger("resize"), $(".list-task li label").click(function () {
86
- $(this).toggleClass("task-done")
87
- }), $("#to-recover").on("click", function () {
88
- $("#loginform").slideUp(), $("#recoverform").fadeIn()
89
- }), $('a[data-action="collapse"]').on("click", function (i) {
90
- i.preventDefault(), $(this).closest(".card").find('[data-action="collapse"] i').toggleClass("ti-minus ti-plus"), $(this).closest(".card").children(".card-body").collapse("toggle")
91
- }), $('a[data-action="expand"]').on("click", function (i) {
92
- i.preventDefault(), $(this).closest(".card").find('[data-action="expand"] i').toggleClass("mdi-arrow-expand mdi-arrow-compress"), $(this).closest(".card").toggleClass("card-fullscreen")
93
- }), $('a[data-action="close"]').on("click", function () {
94
- $(this).closest(".card").removeClass().slideUp("fast")
95
- })
96
- // $("#monthchart").sparkline([5, 6, 2, 9, 4, 7, 10, 12], {
97
- // type: "bar",
98
- // height: "35",
99
- // barWidth: "4",
100
- // resize: !0,
101
- // barSpacing: "4",
102
- // barColor: "#1e88e5"
103
- // }),
104
- // $("#lastmonthchart").sparkline([5, 6, 2, 9, 4, 7, 10, 12], {
105
- // type: "bar",
106
- // height: "35",
107
- // barWidth: "4",
108
- // resize: !0,
109
- // barSpacing: "4",
110
- // barColor: "#7460ee"
111
- // })
112
- });
113
- })