aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascript_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove mention of long-dead define_javascript_functionsMichael Koziarski2008-11-181-3/+0
|
* Merge with docrails.Pratik Naik2008-07-161-2/+19
|
* Remove old method of including javascripts define_javascript_functions.Michael Koziarski2008-07-031-26/+0
| | | | javascript_include_tag and friends do a much better job.
* Remove strange alias for JavaScriptHelperMichael Koziarski2008-07-031-2/+0
|
* link_to_function and button_to_function shouldn't modify their options hashesJeremy Kemper2008-06-231-2/+2
|
* Performance: javascript helper tweaks to speed up escaping and reduce object ↵Jeremy Kemper2008-06-211-58/+71
| | | | allocations when building options strings
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-5/+0
| | | | the instance variable so others can override the methods.
* javascript_tag should only concat when block_given?Jeremy Kemper2008-06-061-7/+10
|
* Don't pass block binding to concatJeremy Kemper2008-06-021-7/+1
|
* Try replacing _erbout with @output_bufferJeremy Kemper2008-06-021-1/+1
|
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JavaScriptHelper#escape_javascript to also escape closing tags (closes ↵David Heinemeier Hansson2007-09-221-1/+1
| | | | | | #8023) [rubyruy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added block-acceptance to JavaScriptHelper#javascript_tag (closes #7527) ↵David Heinemeier Hansson2007-09-151-4/+28
| | | | | | [BobSilva/tarmo/rmm5t] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-241-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefer MIME constants to strings. Closes #7707.Jeremy Kemper2007-03-061-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-2/+2
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added an html_options hash parameter to javascript_tag() and ↵David Heinemeier Hansson2006-10-091-2/+5
| | | | | | update_page_tag() helpers #6311 [tzaharia] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript (closes ↵David Heinemeier Hansson2006-10-091-1/+1
| | | | | | #6302) [sven@c3d2.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #6356)David Heinemeier Hansson2006-10-091-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JavaScriptHelper#link_to_function and ↵David Heinemeier Hansson2006-09-061-2/+11
| | | | | | JavaScriptHelper#button_to_function to have the script argument be optional [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docs for js linkers (closes #5948)David Heinemeier Hansson2006-09-021-1/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change link_to_function and button_to_function to (optionally) take an ↵Sam Stephenson2006-04-191-5/+25
| | | | | | update_page block instead of a JavaScript string. Closes #4804. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont repeat the button_to methodDavid Heinemeier Hansson2006-01-161-14/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added assignment of the Autocompleter object created by ↵David Heinemeier Hansson2006-01-031-0/+14
| | | | | | JavaScriptMacroHelper#auto_complete_field to a local javascript variables [DHH] Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added JavaScriptHelper#button_to_function that works just like ↵David Heinemeier Hansson2005-12-311-0/+14
| | | | | | JavaScriptHelper#link_to_function but uses a button instead of a href [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that JavaScriptHelper#link_to_function will honor existing :onclick ↵David Heinemeier Hansson2005-12-311-1/+1
| | | | | | definitions when adding the function call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that JavaScriptHelper#link_to_function will honor existing :onclick ↵David Heinemeier Hansson2005-12-311-1/+5
| | | | | | definitions when adding the function call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored JavaScriptHelper into PrototypeHelper and ScriptaculousHelper. ↵Sam Stephenson2005-11-141-449/+35
| | | | | | Added PrototypeHelper::JavaScriptGenerator and PrototypeHelper#update_page for easily modifying multiple elements in an Ajax response. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for the queue option on visual_effectThomas Fuchs2005-10-291-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated and clarified documentation for JavaScriptHelper to be more concise ↵Thomas Fuchs2005-10-151-6/+24
| | | | | | about the various options for including the JavaScript libs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Wrap javascript_tag contents in a CDATA section and add a cdata_section ↵Sam Stephenson2005-10-121-4/+8
| | | | | | method to TagHelper. Closes #1691. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update script.aculo.us to 1.5_rc2, and Prototype to 1.4.0_pre7Thomas Fuchs2005-09-281-28/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix #2197David Heinemeier Hansson2005-09-171-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make periodically_call_remote use type="text/javascript" on script tag #2171David Heinemeier Hansson2005-09-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added in-place editing support in the spirit of auto complete with ↵David Heinemeier Hansson2005-09-111-73/+0
| | | | | | ActionController::Base.in_place_edit_for, JavascriptHelper#in_place_editor_field, and Javascript support from script.aculo.us #2038 [Jon Tirsen] Moved auto-completion and in-place editing into the Macros module and their helper counterparts into JavaScriptMacrosHelper git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow link_to_remote to use any DOM-element as the parent of the form ↵David Heinemeier Hansson2005-09-091-0/+7
| | | | | | elements to be submitted #2137 [erik@ruby-lang.nl] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JavascriptHelper#auto_complete_for to only include unique items #2153 ↵David Heinemeier Hansson2005-09-091-1/+1
| | | | | | [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix observe_field to fall back to event-based observation if frequency <= 0 ↵Jamis Buck2005-09-021-4/+5
| | | | | | #1916 [michael@schubert.cx] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * Allow use of the :with option for submit_to_remote #1936 ↵Jamis Buck2005-09-021-1/+1
| | | | | | [jon@instance-design.co.uk] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docs for JavaScriptHelper#remote_function #1740 [jon@instance-design.co.uk]David Heinemeier Hansson2005-07-171-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1847 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cleaning up of javascript_helper array options, add :only to ↵David Heinemeier Hansson2005-07-171-16/+13
| | | | | | sortable_element #1761 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed bug with :success/:failure callbacks for the JavaScriptHelper methods ↵David Heinemeier Hansson2005-07-141-1/+1
| | | | | | #1730 [court3nay/Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved documentation for :success/:failure callbacks #1699 [Thomas Fuchs]David Heinemeier Hansson2005-07-111-8/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Script.aculo.us: latest rev, new autocompleter features, memory leaks fixed ↵David Heinemeier Hansson2005-07-111-1/+6
| | | | | | #1695 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made JavaScriptHelper tests pass regardless of hash order #1656 [Sam Stephenson]David Heinemeier Hansson2005-07-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :handle as an option to sortable_element to restrict the drag handle ↵David Heinemeier Hansson2005-07-071-1/+1
| | | | | | to a given class #1642 [thejohnny] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JavascriptHelper#visual_effect to use camelize such that :blind_up ↵David Heinemeier Hansson2005-07-071-1/+1
| | | | | | will work #1639 [pelletierm@eastmedia.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make new AJAX helpers aware of more of their options #1622 [Thomas Fuchs]David Heinemeier Hansson2005-07-061-1/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed transparent background for Safari with auto completerDavid Heinemeier Hansson2005-07-051-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved update_element_function #1597 [Thomas Fuchs]David Heinemeier Hansson2005-07-041-32/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de