Sha256: 527a615fba26777482486f7181d703e8b771c6b5852cd3a8ce7f0e21a13a1fbb

Contents?: true

Size: 594 Bytes

Versions: 68

Compression:

Stored size: 594 Bytes

Contents

(function() {
  var formEl, handleSubmitSuccess, isTheLastForm;

  handleSubmitSuccess = function() {
    if ($(this).next(formEl).length === 0) {
      return window.location.replace(window.location.origin + "/navigator/next_content");
    } else {
      return $(this).hide().next(formEl).show();
    }
  };

  // Not working, so replaced it
  isTheLastForm = function() {
    return $(this).next(formEl).length === 0;
  };

  formEl = "form.multi-page";

  return $(document).on("page:change", function() {
    return $(document).on("ajax:success", formEl, handleSubmitSuccess);
  });
})();

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.8 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.7 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.6 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.5 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.4 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.2 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.1 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.22.0 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.21.2 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.21.1 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.21.0 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.20.1 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.9 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.8 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.7 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.6 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.5 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.4 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb
think_feel_do_engine-3.19.3 app/assets/javascripts/think_feel_do_engine/forms/multi_page.js.erb