prototype-ujs icon indicating copy to clipboard operation
prototype-ujs copied to clipboard

Results 8 prototype-ujs issues
Sort by recently updated
recently updated
newest added

Although `$('link').on('click', function(event) { ... })` only responds to left clicks, `document.on('click', '[selector]', function(event, el) { ... })` responds to right click as well, which has the byproduct of causing...

Passed along any original 'target' attribute to the generated form tag in handleMethod(). Fixes https://github.com/rails/rails/issues/2885 for prototype-ujs. Also made pull request for jquery-ujs: https://github.com/rails/jquery-ujs/pull/207. Is there any other JS file,...

Add allowAction() to form button click handler

prototype-ujs expects that the `data-confirm` be on the form element rather than the submit button. `button_to` helper in rails adds it to the submit input. As well, I believe the...

Taken from:https://rails.lighthouseapp.com/projects/8994/tickets/5714-rails3-disable_with-remote-form-button-immediately-gets-re-enabled When submitting a remote form with a "disable_with" option, the reasonable expectation is that the button will be re-enabled after the ajax response. Instead, the button is immediately...

the :confirm option on buttons isn't working for me, but works for link_to. i can find no evidence of this breaking for others via google so i suspect i might...

follow [jquery-rails](https://github.com/rails/jquery-rails/blob/master/vendor/assets/javascripts/jquery_ujs.js#L291) lead and add a slight timeout before disabling submit buttons during non-ajax form submissions to ensure submit button's name included in payload

I have:<body><head> <%= javascript_include_tag :defaults %> <%= javascript_include_tag "myscript" %></head></html><div id="my_div"><%= link_to new_model_path, :remote => true %></div></html></body>models_controllerdef new@model = Model.newendnew.js.erb$("my_div").update("<%= escape_javascript(render :partial => 'new) %>");myscript.jsdocument.on('ajax:complete', 'a', function(response) { alert('a:complete');});my on:complete...