Commit Graph

4830 Commits

Author SHA1 Message Date
Erik St. Martin
463fc71107 making non remote versions of link_to, button_to, submit_tag and image_submit_tag output data attributes for things like :confirm, :method, :popup, and :disable_with 2010-01-27 12:44:33 -06:00
Erik St. Martin
c3baf8b767 link_to_remote and button_to_remote now support :confirm 2010-01-27 12:44:33 -06:00
Stephen St. Martin
9ad8d348b5 test :method option of link_to_remote, and ensure rel='nofollow' is added when :method => 'delete' 2010-01-27 12:44:33 -06:00
Erik St. Martin
9f5cb3d3b4 moving include of ScriptaculousHelper into PrototypeHelper, ActionView should know as little as possible about individual frameworks 2010-01-27 12:44:33 -06:00
Stephen St. Martin
37ad57596b port existing test suite to check for new output, and fix all breaking tests 2010-01-27 12:44:32 -06:00
Erik St. Martin
7bf5aef907 fixed current tests that were failing do to module location change, this is temporary to fix state of repo till all the new tests are complete 2010-01-27 12:44:32 -06:00
Stefan Penner
255066b6c7 first round of documenation for ujs 2010-01-27 12:44:32 -06:00
Stephen St. Martin
20c6c71e6a oops, remove test code 2010-01-27 12:44:32 -06:00
Stephen St. Martin
d8343a6ad7 restructure compatibility module so it is no longer a child 2010-01-27 12:44:32 -06:00
Erik St. Martin
565a696e71 Removed all helpers from PrototypeHelper that are implemented in AjaxHelper. Modified tests that extended with PrototypeHelper to now extend using AjaxHelper. AjaxHelper is now included by default in view helper 2010-01-27 12:44:32 -06:00
Erik St. Martin
5462caf434 fixing failing tests from last commit, order of attributes matters should probably change this later 2010-01-27 12:44:32 -06:00
Erik St. Martin
1cd8b98d01 javascript_helper now correctly pulls in ajax_helper instead of prototype_helper. prototype_helper is pulled in by ajax_helper for reverse compatibility 2010-01-27 12:44:32 -06:00
Stephen St. Martin
f115fb0111 make observers a little more dry 2010-01-27 12:44:32 -06:00
Stephen St. Martin
49e84a5943 fix failing tests from fork/merge 2010-01-27 12:44:31 -06:00
Stephen St. Martin
07299eb60d rename ajax_test.rb to ajax_helper_test.rb for consistency 2010-01-27 12:44:31 -06:00
Stephen St. Martin
143d0764d0 nuke what appears to be a duplicate and unused test file 2010-01-27 12:44:31 -06:00
Stephen St. Martin
62a2d5178c cleanup some spacing 2010-01-27 12:44:31 -06:00
Stephen St. Martin
27d52e00d9 extract_remote_attributes should be a private method 2010-01-27 12:44:31 -06:00
Bob Remeika
95b77e925f Added observe_form 2010-01-27 12:44:31 -06:00
Bob Remeika
7d34975214 Added submit_to_remote helper 2010-01-27 12:44:31 -06:00
Bob Remeika
39ec7ce6a9 Removed duplication 2010-01-27 12:44:31 -06:00
Bob Remeika
8e172f13d7 Changed data-name to data-observed on observe_field 2010-01-27 12:44:31 -06:00
Bob Remeika
261654becf Refactored ajax helpers so they use a little bit more coherent pattern; Removed code duplication from form_remote_tag 2010-01-27 12:44:31 -06:00
Bob Remeika
dad3d09ce8 Applied Yehuda's patch; Sharing extract_object_name_for_form! between form_helper and ajax_helper; Added script_decorator helper 2010-01-27 12:44:30 -06:00
Bob Remeika
5491a663da Changed observe_field to field_observer 2010-01-27 12:44:30 -06:00
Bob Remeika
9c12e66748 Changed data-rails-type to data-js-type 2010-01-27 12:44:30 -06:00
Bob Remeika
bd65e7f73d Changed data-remote='true' to data-js-type='remote' 2010-01-27 12:44:30 -06:00
Bob Remeika
631537a25d remote_form_for tests pass 2010-01-27 12:44:30 -06:00
Bob Remeika
5316e77db1 Took first stab at reimplementing form_remote_tag helpers 2010-01-27 12:44:30 -06:00
Bob Remeika
b225de9711 Added assert_data_element_json test helper for data element helpers 2010-01-27 12:44:30 -06:00
Bob Remeika
afdecbc0a8 Took another stab at observe_field. Now implementing data only helpers as script elements. 2010-01-27 12:44:30 -06:00
Bob Remeika
d383f057c0 Changed the observe field node into a div with display:none 2010-01-27 12:44:30 -06:00
Bob Remeika
25c5ddd021 ObserveFieldTest uses url_for from AjaxTestCase 2010-01-27 12:44:30 -06:00
Stefan Penner
8f97e03fb0 fixed failing tests 2010-01-27 12:44:30 -06:00
Bob Remeika
773c4929fd Implemented a fuller stub in AjaxTestCase for url_for because link_to calls url_for on all urls passed to it. Tests that were testing different input types for the url were failing because of this. 2010-01-27 12:44:30 -06:00
Bob Remeika
23275d1b79 Added the beginnings of the observe_field helper 2010-01-27 12:44:29 -06:00
Bob Remeika
b599c4c7ee Added observe_form 2010-01-27 12:44:29 -06:00
Bob Remeika
8c43c11a9d Added submit_to_remote helper 2010-01-27 12:44:29 -06:00
Bob Remeika
67b73ff272 Removed duplication 2010-01-27 12:44:29 -06:00
Bob Remeika
d9765c3af5 Changed data-name to data-observed on observe_field 2010-01-27 12:44:29 -06:00
Bob Remeika
4536191d55 Refactored ajax helpers so they use a little bit more coherent pattern; Removed code duplication from form_remote_tag 2010-01-27 12:44:29 -06:00
Bob Remeika
5ced1225fa Applied Yehuda's patch; Sharing extract_object_name_for_form! between form_helper and ajax_helper; Added script_decorator helper 2010-01-27 12:44:29 -06:00
Bob Remeika
c1ce17a5f4 Changed observe_field to field_observer 2010-01-27 12:44:29 -06:00
Bob Remeika
081e057b17 Changed data-rails-type to data-js-type 2010-01-27 12:44:29 -06:00
Bob Remeika
efb70f0f9f Changed data-remote='true' to data-js-type='remote' 2010-01-27 12:44:29 -06:00
Bob Remeika
29811533b4 remote_form_for tests pass 2010-01-27 12:44:29 -06:00
Bob Remeika
118a720a01 Took first stab at reimplementing form_remote_tag helpers 2010-01-27 12:44:29 -06:00
Bob Remeika
0955f57915 Added assert_data_element_json test helper for data element helpers 2010-01-27 12:44:28 -06:00
Bob Remeika
6fa8f81d7d Took another stab at observe_field. Now implementing data only helpers as script elements. 2010-01-27 12:44:28 -06:00
Bob Remeika
88e793e5e7 Changed the observe field node into a div with display:none 2010-01-27 12:44:28 -06:00