Sha256: 84e6fef24c44a531628132891b9d2880378016df2e2828bca858a3bd92fb7e95

Contents?: true

Size: 835 Bytes

Versions: 11

Compression:

Stored size: 835 Bytes

Contents

Button.func.switch = self => {

  if ($(self).hasClass('undo')) {

    $(self).parents(".control").siblings(".before").show();
    $(self).parents(".control").siblings(".after").hide();
    $(self).parents(".wrap.switch").siblings(".wrap.switch").children(".before").show();
    $(self).parents(".wrap.switch").siblings(".wrap.switch").children(".after").hide();
    $(self).removeClass("undo");

    Button.func.reset(self, "Next");
  
  } else {
  
    Button.func.submit(self, "Back", false);
  
    $(self).parents(".control").siblings(".before").hide();
    $(self).parents(".control").siblings(".after").show();
    $(self).parents(".wrap.switch").siblings(".wrap.switch").children(".before").hide();
    $(self).parents(".wrap.switch").siblings(".wrap.switch").children(".after").show();
    $(self).addClass("undo");
  
  }

}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
futuro-1.1.8 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.7 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.6 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.5 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.4 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.3 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.2 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.1 assets/js/footer/custom/5_button.func.switch.js
futuro-1.1.0 assets/js/footer/custom/5_button.func.switch.js
futuro-1.0.9 assets/js/footer/custom/5_button.func.switch.js
futuro-1.0.8 assets/js/footer/custom/5_button.func.switch.js