Subversion Repositories SmartDukaan

Rev

Rev 21627 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21627 Rev 27710
Line 1... Line 1...
1
function initializeJS() {
1
function initializeJS() {
2
 
2
 
3
    //tool tips
3
    //tool tips
4
    jQuery('.tooltips').tooltip();
4
    jQuery('.tooltips').tooltip();
5
 
5
 
6
    //popovers
-
 
7
    jQuery('.popovers').popover();
-
 
8
 
-
 
9
    //custom scrollbar
-
 
10
        //for html
-
 
11
    jQuery("html").niceScroll({styler:"fb",cursorcolor:"#007AFF", cursorwidth: '6', cursorborderradius: '10px', background: '#F7F7F7', cursorborder: '', zindex: '1000'});
-
 
12
        //for sidebar
-
 
13
    jQuery("#sidebar").niceScroll({styler:"fb",cursorcolor:"#007AFF", cursorwidth: '3', cursorborderradius: '10px', background: '#F7F7F7', cursorborder: ''});
6
    jQuery("#sidebar").niceScroll({styler:"fb",cursorcolor:"#007AFF", cursorwidth: '3', cursorborderradius: '10px', background: '#F7F7F7', cursorborder: ''});
14
        // for scroll panel
-
 
15
    jQuery(".scroll-panel").niceScroll({styler:"fb",cursorcolor:"#007AFF", cursorwidth: '3', cursorborderradius: '10px', background: '#F7F7F7', cursorborder: ''});
-
 
16
    
7
    
17
    //sidebar dropdown menu
8
    //sidebar dropdown menu
18
    jQuery('#sidebar .sub-menu > a').click(function () {
9
    jQuery('#sidebar .sub-menu > a').click(function () {
19
        var last = jQuery('.sub-menu.open', jQuery('#sidebar'));        
10
        var last = jQuery('.sub-menu.open', jQuery('#sidebar'));        
20
        jQuery('.menu-arrow').removeClass('arrow_carrot-right');
11
        jQuery('.menu-arrow').removeClass('arrow_carrot-right');
Line 72... Line 63...
72
                'margin-left': '0'
63
                'margin-left': '0'
73
            });
64
            });
74
            jQuery("#container").removeClass("sidebar-closed");
65
            jQuery("#container").removeClass("sidebar-closed");
75
        }
66
        }
76
    });
67
    });
77
 
-
 
78
    //bar chart
-
 
79
    if (jQuery(".custom-custom-bar-chart")) {
-
 
80
        jQuery(".bar").each(function () {
-
 
81
            var i = jQuery(this).find(".value").html();
-
 
82
            jQuery(this).find(".value").html("");
-
 
83
            jQuery(this).find(".value").animate({
-
 
84
                height: i
-
 
85
            }, 2000)
-
 
86
        })
-
 
87
    }
-
 
88
 
-
 
89
}
68
}
90
 
69
 
91
jQuery(document).ready(function(){
70
jQuery(document).ready(function(){
92
    initializeJS();
71
    initializeJS();
93
});
72
});
94
73