vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb in radiant-0.7.2 vs vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb in radiant-0.8.0

- old
+ new

@@ -1,6 +1,7 @@ require 'action_view/helpers/javascript_helper' +require 'active_support/json' module ActionView module Helpers # Provides a set of helpers for calling Scriptaculous JavaScript # functions, including those which create Ajax controls and visual effects. @@ -93,11 +94,11 @@ # sortable (default is <tt>li</tt>). # # * <tt>:containment</tt> - Takes an element or array of elements to treat as # potential drop targets (defaults to the original target element). # - # * <tt>:only</tt> - A CSS class name or arry of class names used to filter + # * <tt>:only</tt> - A CSS class name or array of class names used to filter # out child elements as candidates. # # * <tt>:scroll</tt> - Determines whether to scroll the list during drag # operations if the list runs past the visual border. # @@ -191,10 +192,10 @@ # this additional CSS class when an accepted +draggable_element+ is # hovered over it. # # * <tt>:onDrop</tt> - Called when a +draggable_element+ is dropped onto # this element. Override this callback with a JavaScript expression to - # change the default drop behavour. Example: + # change the default drop behaviour. Example: # # :onDrop => "function(draggable_element, droppable_element, event) { alert('I like bananas') }" # # This callback gets three parameters: The Draggable element, the Droppable # element and the Event object. You can extract additional information about