aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascript_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix grammatical error on JS helper warning messagethenickcox2013-04-021-2/+2
| | | | | | Add changelog entry Delete changelog
* typo recomend -> recommendogawaso2013-04-011-2/+2
|
* Use Encoding::UTF_8 constant :do_not_litter:Akira Matsuda2013-01-281-2/+2
|
* Cleans documentation from Helpers [ci skip]Alvaro Pereyra2012-12-011-2/+5
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-031-4/+4
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/mime_responds.rb activerecord/lib/active_record/attribute_methods.rb guides/source/working_with_javascript_in_rails.md
| * Hash Syntax to 1.9 related changesAvnerCohen2012-10-291-4/+4
| |
* | Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-2/+2
| |
* | Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-291-2/+2
| | | | | | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
* | Improve the deprecation message of link_to_function andRafael Mendonça França2012-10-271-2/+4
|/ | | | | | button_to_function Point the the Unobtrusive JavaScript secion in the JavaScript guide
* Deprecate `button_to_function` and `link_to_function` helpers.Rafael Mendonça França2012-08-071-0/+40
| | | | | | | | | | | | | | | | | | | | | | We recommend the use of Unobtrusive JavaScript instead. For example: link_to "Greeting", "#", :class => "nav_link" $(function() { $('.nav_link').click(function() { // Some complex code return false; }); }); or link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link" for simple cases. This reverts commit 3acdd652e9fe99481c879c84c5807a84eb9ad724.
* Remove `button_to_function` and `link_to_function` helpersRafael Mendonça França2012-04-301-35/+0
|
* Remove unnecessary in HTML 5 type attribute with default valueAndrey A.I. Sitnik2012-04-051-3/+3
|
* ensure u2029 is escaped in escape_javascript helperbenmmurphy2012-03-111-1/+3
|
* remove unwanted require for string encodingVishnu Atrai2012-02-131-1/+0
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-5/+1
|
* Fix small typo in link_to_function docAlexey Vakhov2011-11-081-1/+1
|
* Revert "Simplify JavaScriptHelper#escape_javascript"Santiago Pastorino2011-08-241-4/+6
| | | | | | This commit broke the build without any improvement. This reverts commit eb0b71478ad4c37fdc4ec77bf2cf7c6b65dd36c4.
* Simplify JavaScriptHelper#escape_javascriptDaniel Schierbeck2011-08-241-7/+6
| | | | | | Use the Linus-style conditional. Also fix the documentation slightly. Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* Ensure regexp and hash key are UTF-8Andrew White2011-08-231-3/+10
|
* fix escape_javascript for unicode character \u2028.Teng Siong Ong2011-08-211-2/+3
|
* Make sure `escape_javascript` return `SafeBuffer` if the incoming argument ↵Prem Sichanugrist2011-06-091-1/+2
| | | | is already html_safe
* Make escape_javascript happy to handle SafeBuffersPaul Gallagher2011-06-081-1/+1
| | | | | * see GH#1553 * allow for the fact that gsub on SafeBuffer does not pass match variables $1, $2 etc to a block
* removes ActionView::Helpers::PrototypeHelperXavier Noria2011-04-131-2/+0
|
* removes ActionView::Helpers::ScriptaculousHelperXavier Noria2011-04-131-32/+0
|
* let the default function in button_to_function be nilXavier Noria2011-04-131-1/+1
| | | | | | | | I don't know which is the use case for button_to_function(name) but there's a test for it. I am focused now on RJS extraction and do not want to introduce a backwards incompatible change at this moment. Perhaps worth revisiting when the whole thing is done.
* applies API guidelines to exampleXavier Noria2011-04-131-2/+2
|
* removes support for RJS in button_to_functionXavier Noria2011-04-131-25/+7
|
* removes support for RJS in link_to_functionXavier Noria2011-04-131-44/+9
|
* 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