Commit b982a164 authored by Nicolas Widart's avatar Nicolas Widart

Fixing the iCheck load

parent 63ceab30
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
!**/ !**/
/* /*
* Global variables. If you change any of these vars, don't forget * Global variables. If you change any of these vars, don't forget
* to change the values in the less files! * to change the values in the less files!
*/ */
var left_side_width = 220; //Sidebar width in pixels var left_side_width = 220; //Sidebar width in pixels
...@@ -41,11 +41,11 @@ $(function() { ...@@ -41,11 +41,11 @@ $(function() {
//Activate tooltips //Activate tooltips
$("[data-toggle='tooltip']").tooltip(); $("[data-toggle='tooltip']").tooltip();
/* /*
* Add collapse and remove events to boxes * Add collapse and remove events to boxes
*/ */
$("[data-widget='collapse']").click(function() { $("[data-widget='collapse']").click(function() {
//Find the box parent //Find the box parent
var box = $(this).parents(".box").first(); var box = $(this).parents(".box").first();
//Find the body and the footer //Find the body and the footer
var bf = box.find(".box-body, .box-footer"); var bf = box.find(".box-body, .box-footer");
...@@ -87,7 +87,7 @@ $(function() { ...@@ -87,7 +87,7 @@ $(function() {
}); });
$("[data-widget='remove']").click(function() { $("[data-widget='remove']").click(function() {
//Find the box parent //Find the box parent
var box = $(this).parents(".box").first(); var box = $(this).parents(".box").first();
box.slideUp(); box.slideUp();
}); });
...@@ -95,13 +95,13 @@ $(function() { ...@@ -95,13 +95,13 @@ $(function() {
/* Sidebar tree view */ /* Sidebar tree view */
$(".sidebar .treeview").tree(); $(".sidebar .treeview").tree();
/* /*
* Make sure that the sidebar is streched full height * Make sure that the sidebar is streched full height
* --------------------------------------------- * ---------------------------------------------
* We are gonna assign a min-height value every time the * We are gonna assign a min-height value every time the
* wrapper gets resized and upon page load. We will use * wrapper gets resized and upon page load. We will use
* Ben Alman's method for detecting the resize event. * Ben Alman's method for detecting the resize event.
* *
**/ **/
function _fix() { function _fix() {
//Get window height and the wrapper height //Get window height and the wrapper height
...@@ -129,12 +129,12 @@ $(function() { ...@@ -129,12 +129,12 @@ $(function() {
fix_sidebar(); fix_sidebar();
/* /*
* We are gonna initialize all checkbox and radio inputs to * We are gonna initialize all checkbox and radio inputs to
* iCheck plugin in. * iCheck plugin in.
* You can find the documentation at http://fronteed.com/iCheck/ * You can find the documentation at http://fronteed.com/iCheck/
*/ */
$("input[type='checkbox']:not(.simple), input[type='radio']:not(.simple)").iCheck({ $(".iChecked:not(.simple), input[type='radio']:not(.simple)").iCheck({
checkboxClass: 'icheckbox_minimal', checkboxClass: 'icheckbox_minimal-red',
radioClass: 'iradio_minimal' radioClass: 'iradio_minimal'
}); });
...@@ -473,12 +473,12 @@ $(window).load(function() { ...@@ -473,12 +473,12 @@ $(window).load(function() {
}).call(this); }).call(this);
}); });
/* /*
* BOX REFRESH BUTTON * BOX REFRESH BUTTON
* ------------------ * ------------------
* This is a custom plugin to use with the compenet BOX. It allows you to add * This is a custom plugin to use with the compenet BOX. It allows you to add
* a refresh button to the box. It converts the box's state to a loading state. * a refresh button to the box. It converts the box's state to a loading state.
* *
* USAGE: * USAGE:
* $("#box-widget").boxRefresh( options ); * $("#box-widget").boxRefresh( options );
* */ * */
...@@ -555,13 +555,13 @@ $(window).load(function() { ...@@ -555,13 +555,13 @@ $(window).load(function() {
* SIDEBAR MENU * SIDEBAR MENU
* ------------ * ------------
* This is a custom plugin for the sidebar menu. It provides a tree view. * This is a custom plugin for the sidebar menu. It provides a tree view.
* *
* Usage: * Usage:
* $(".sidebar).tree(); * $(".sidebar).tree();
* *
* Note: This plugin does not accept any options. Instead, it only requires a class * Note: This plugin does not accept any options. Instead, it only requires a class
* added to the element that contains a sub-menu. * added to the element that contains a sub-menu.
* *
* When used with the sidebar, for example, it would look something like this: * When used with the sidebar, for example, it would look something like this:
* <ul class='sidebar-menu'> * <ul class='sidebar-menu'>
* <li class="treeview active"> * <li class="treeview active">
...@@ -571,7 +571,7 @@ $(window).load(function() { ...@@ -571,7 +571,7 @@ $(window).load(function() {
* </ul> * </ul>
* </li> * </li>
* </ul> * </ul>
* *
* Add .active class to <li> elements if you want the menu to be open automatically * Add .active class to <li> elements if you want the menu to be open automatically
* on page load. See above for an example. * on page load. See above for an example.
*/ */
...@@ -679,7 +679,7 @@ $(window).load(function() { ...@@ -679,7 +679,7 @@ $(window).load(function() {
/* /*
* jQuery resize event - v1.1 - 3/14/2010 * jQuery resize event - v1.1 - 3/14/2010
* http://benalman.com/projects/jquery-resize-plugin/ * http://benalman.com/projects/jquery-resize-plugin/
* *
* Copyright (c) 2010 "Cowboy" Ben Alman * Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses. * Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/ * http://benalman.com/about/license/
...@@ -743,8 +743,8 @@ $(window).load(function() { ...@@ -743,8 +743,8 @@ $(window).load(function() {
/*! /*!
* SlimScroll https://github.com/rochal/jQuery-slimScroll * SlimScroll https://github.com/rochal/jQuery-slimScroll
* ======================================================= * =======================================================
* *
* Copyright (c) 2011 Piotr Rochala (http://rocha.la) Dual licensed under the MIT * Copyright (c) 2011 Piotr Rochala (http://rocha.la) Dual licensed under the MIT
*/ */
(function(f) { (function(f) {
jQuery.fn.extend({slimScroll: function(h) { jQuery.fn.extend({slimScroll: function(h) {
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
<link href="{{{ core_asset('css/vendor/ionicons.min.css') }}}" rel="stylesheet" type="text/css" /> <link href="{{{ core_asset('css/vendor/ionicons.min.css') }}}" rel="stylesheet" type="text/css" />
<link href="{{{ core_asset('css/vendor/alertify/alertify.core.css') }}}" rel="stylesheet" type="text/css" /> <link href="{{{ core_asset('css/vendor/alertify/alertify.core.css') }}}" rel="stylesheet" type="text/css" />
<link href="{{{ core_asset('css/vendor/alertify/alertify.default.css') }}}" rel="stylesheet" type="text/css" /> <link href="{{{ core_asset('css/vendor/alertify/alertify.default.css') }}}" rel="stylesheet" type="text/css" />
<link href="{{{ core_asset('css/vendor/iCheck/minimal/blue.css') }}}" rel="stylesheet" type="text/css" />
<link href="{{{ core_asset('css/vendor/datatables/dataTables.bootstrap.css') }}}" rel="stylesheet" type="text/css" /> <link href="{{{ core_asset('css/vendor/datatables/dataTables.bootstrap.css') }}}" rel="stylesheet" type="text/css" />
<!-- Theme style --> <!-- Theme style -->
<link href="{{{ core_asset('css/AdminLTE.css') }}}" rel="stylesheet" type="text/css" /> <link href="{{{ core_asset('css/AdminLTE.css') }}}" rel="stylesheet" type="text/css" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment