Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var _self = this;
- $(".select_all").click(function() {
- this.checked = !(this.checked == true);
- if ($(this).text() == 'Select all') { $(this).text('Select none') } else { $(this).text('Select all') }
- $(".checkbox_c > input:checkbox").attr("checked", function() {
- this.checked = !(this.checked == true);
- });
- });
- var inputChecked = 0;
- basketItems = [];
- $(".checkbox_c > input:checkbox, .select_all").click(function() {
- $(".checkbox_c input:checkbox").each(function() {
- if (this.checked == true) {
- _self.inputChecked++;
- basketItems.push($(this).attr('id'));
- }
- })
- });
- $(".action_c dl dt").click(function() {
- gCjs.log(basketItems);
- if (_self.inputChecked > 0) {
- $('.action_c dl dd .notice').hide();
- $('.action_c dl dd .addresses_dropdown').show();
- $('.action_c dl dd .gifts_dropdown').show();
- } else {
- $('.action_c dl dd .notice').show();
- $('.action_c dl dd .addresses_dropdown').hide();
- $('.action_c dl dd .gifts_dropdown').hide();
- }
- $(this).next("dd").toggle();
- });
Add Comment
Please, Sign In to add comment