-
+ Back to Inbox
Folders
-
-
- Inbox 12 +
- Inbox 12
- Sent
- Drafts
- Junk 65 diff --git a/pages/mailbox/mailbox.html b/pages/mailbox/mailbox.html index 72be98fa22874d15e904720633a9725c6643ce7f..18efdc131d07ce31c85919aac58f10fbcbe88051 100644 --- a/pages/mailbox/mailbox.html +++ b/pages/mailbox/mailbox.html @@ -349,7 +349,7 @@
-
+ Compose
Folders
@@ -390,13 +390,14 @@
-
-
+
+
-
+
+
1-50/200
@@ -534,13 +535,14 @@
-
-
+
+
+
1-50/200
@@ -585,6 +587,38 @@
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
+
+ //Enable check and uncheck all functionality
+ $(".checkbox-toggle").click(function () {
+ var clicks = $(this).data('clicks');
+ if (clicks) {
+ //Uncheck all checkboxes
+ $("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
+ } else {
+ //Check all checkboxes
+ $("input[type='checkbox']", ".mailbox-messages").iCheck("check");
+ }
+ $(this).data("clicks", !clicks);
+ });
+
+ //Handle starring for glyphicon and font awesome
+ $(".fa-star, .fa-star-o, .glyphicon-star, .glyphicon-star-empty").click(function (e) {
+ e.preventDefault();
+ //detect type
+ var glyph = $(this).hasClass("glyphicon");
+ var fa = $(this).hasClass("fa");
+
+ //Switch states
+ if (glyph) {
+ $(this).toggleClass("glyphicon-star");
+ $(this).toggleClass("glyphicon-star-empty");
+ }
+
+ if (fa) {
+ $(this).toggleClass("fa-star");
+ $(this).toggleClass("fa-star-o");
+ }
+ });
});