提交 f23da450 编写于 作者: A Abdullah Almsaeed

Updated mailbox iCheck plugin

上级 0f46cb35
...@@ -760,9 +760,7 @@ ...@@ -760,9 +760,7 @@
<!-- FastClick --> <!-- FastClick -->
<script src='../../plugins/fastclick/fastclick.min.js'></script> <script src='../../plugins/fastclick/fastclick.min.js'></script>
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="../../dist/js/app.min.js" type="text/javascript"></script> <script src="../../dist/js/app.min.js" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js" type="text/javascript"></script>
<!-- iCheck --> <!-- iCheck -->
<script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script> <script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<!-- Page Script --> <!-- Page Script -->
...@@ -770,7 +768,7 @@ ...@@ -770,7 +768,7 @@
$(function () { $(function () {
//Enable iCheck plugin for checkboxes //Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs //iCheck for checkbox and radio inputs
$('input[type="checkbox"]').iCheck({ $('.mailbox-messages input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue', checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue' radioClass: 'iradio_flat-blue'
}); });
...@@ -780,10 +778,10 @@ ...@@ -780,10 +778,10 @@
var clicks = $(this).data('clicks'); var clicks = $(this).data('clicks');
if (clicks) { if (clicks) {
//Uncheck all checkboxes //Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck"); $(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
} else { } else {
//Check all checkboxes //Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check"); $(".mailbox-messages input[type='checkbox']").iCheck("check");
} }
$(this).data("clicks", !clicks); $(this).data("clicks", !clicks);
}); });
...@@ -809,5 +807,8 @@ ...@@ -809,5 +807,8 @@
}); });
}); });
</script> </script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js" type="text/javascript"></script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册