aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascript_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix alias_method, add testDavid Heinemeier Hansson2011-03-271-1/+1
|
* Make JavaScriptHelper#j() an alias for JavaScriptHelper#escape_javascript() ↵David Heinemeier Hansson2011-03-261-0/+5
| | | | -- note this then supersedes the Object#j() method that the JSON gem adds within templates using the JavaScriptHelper [DHH]
* Tiny fixes to rdocAlexey Mahotkin2010-09-161-1/+1
|
* Wrap all occurences of <script> in a <tt> tag in docs [#5537 state:committed]David Trasbo2010-09-061-1/+2
|
* Adds title and description where needed.Rizwan Reza2010-06-161-0/+1
|
* Merge branch 'master' into docrailswycats2010-03-261-1/+87
|\
| * Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵wycats2010-03-171-1/+0
| | | | | | | | warnings are in dependencies.
| * link_to_function is here to stayJoshua Peek2010-03-161-0/+87
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2010-03-121-8/+2
|\| | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb railties/lib/rails/configuration.rb railties/lib/rails/log_subscriber.rb
| * Deprecate block_called_from_erb? pending a solution for getting it into appsCarlhuda2010-03-091-7/+1
| |
| * content_tag should escape its inputBruno Michel2010-02-141-1/+1
| | | | | | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* | Updated documentation for block helpers in javascript_helper.rbJeroen van Dijk2010-03-121-1/+1
|/
* More html_safe strings now use the safe_concat methodSantiago Pastorino and José Ignacio Costa2010-02-051-1/+1
| | | | | | [#3856 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Reorg options_for_javascript and array_or_string_for_javascriptJoshua Peek2010-01-301-17/+0
|
* Move button_to_function to prototype helperJoshua Peek2010-01-301-33/+0
|
* Unused JAVASCRIPT_PATH constJoshua Peek2010-01-301-4/+0
|
* Move link_to_function and link_to_remote into prototype_legacy_helperJoshua Peek2010-01-301-54/+0
| | | | plugin
* Revert "Merge branch 'rails/master' into ujs"Joshua Peek2010-01-301-49/+14
| | | | | | | | | | | This reverts commit 3aa1ea1ae4baa4a03d03644e798eeb98a4745785, reversing changes made to 2c12a71378d2146c822acb389b00b866f6420ff5. Conflicts: actionpack/lib/action_view/helpers/javascript_helper.rb actionpack/lib/action_view/helpers/url_helper.rb actionpack/test/template/url_helper_test.rb
* Deprecate link_to :popupJoshua Peek2010-01-291-13/+6
|
* fixing last merge breakageErik St. Martin2010-01-271-3/+0
|
* making non remote versions of link_to, button_to, submit_tag and ↵Erik St. Martin2010-01-271-0/+3
| | | | image_submit_tag output data attributes for things like :confirm, :method, :popup, and :disable_with
* modified helper that adds attributes for :method to include rel='nofollow' ↵Erik St. Martin2010-01-271-0/+1
| | | | if :method => :delete, same as its remote_ equivalent
* making non remote versions of link_to, button_to, submit_tag and ↵Erik St. Martin2010-01-271-0/+41
| | | | image_submit_tag output data attributes for things like :confirm, :method, :popup, and :disable_with
* restructure compatibility module so it is no longer a childStephen St. Martin2010-01-271-1/+1
|
* javascript_helper now correctly pulls in ajax_helper instead of ↵Erik St. Martin2010-01-271-1/+1
| | | | prototype_helper. prototype_helper is pulled in by ajax_helper for reverse compatibility
* 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