From f23da45064f0721e5652eba8e0e9774f41656130 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Sun, 19 Apr 2015 11:21:04 -0400 Subject: [PATCH] Updated mailbox iCheck plugin --- pages/mailbox/mailbox.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/mailbox/mailbox.html b/pages/mailbox/mailbox.html index f254a7d21..992cbab3e 100644 --- a/pages/mailbox/mailbox.html +++ b/pages/mailbox/mailbox.html @@ -760,9 +760,7 @@ - - - + @@ -770,7 +768,7 @@ $(function () { //Enable iCheck plugin for checkboxes //iCheck for checkbox and radio inputs - $('input[type="checkbox"]').iCheck({ + $('.mailbox-messages input[type="checkbox"]').iCheck({ checkboxClass: 'icheckbox_flat-blue', radioClass: 'iradio_flat-blue' }); @@ -780,10 +778,10 @@ var clicks = $(this).data('clicks'); if (clicks) { //Uncheck all checkboxes - $("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck"); + $(".mailbox-messages input[type='checkbox']").iCheck("uncheck"); } else { //Check all checkboxes - $("input[type='checkbox']", ".mailbox-messages").iCheck("check"); + $(".mailbox-messages input[type='checkbox']").iCheck("check"); } $(this).data("clicks", !clicks); }); @@ -809,5 +807,8 @@ }); }); + + + \ No newline at end of file