2 lines
825 B
JavaScript
2 lines
825 B
JavaScript
|
!function(e){"use strict";e('.mailbox-messages input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue"}),e(".checkbox-toggle").on("click",function(){var a=e(this).data("clicks");return a?(e(".mailbox-messages input[type='checkbox']").iCheck("uncheck"),e(".fa",this).removeClass("fa-check-square-o").addClass("fa-square-o")):(e(".mailbox-messages input[type='checkbox']").iCheck("check"),e(".fa",this).removeClass("fa-square-o").addClass("fa-check-square-o")),e(this).data("clicks",!a),!1}),e(".mailbox-star").on("click",function(a){a.preventDefault();var t=e(this).find("a > i"),r=t.hasClass("glyphicon"),i=t.hasClass("fa");return r&&(t.toggleClass("glyphicon-star"),t.toggleClass("glyphicon-star-empty")),i&&(t.toggleClass("fa-star"),t.toggleClass("fa-star-o")),!1})}(jQuery);
|