Forgot one bit of prototype stuff to clean up

This commit is contained in:
Eric Allen 2009-09-02 11:39:35 -04:00
parent 6f3dbca3e2
commit 35c9f55553
2 changed files with 0 additions and 28 deletions

View file

@ -83,7 +83,6 @@ require 'tracks/todo_list'
require 'tracks/config'
require 'tagging_extensions' # Needed for tagging-specific extensions
require 'digest/sha1' #Needed to support 'rake db:fixtures:load' on some ruby installs: http://dev.rousette.org.uk/ticket/557
require 'prototype_helper_extensions'
if ( SITE_CONFIG['authentication_schemes'].include? 'ldap')
require 'net/ldap' #requires ruby-net-ldap gem be installed

View file

@ -1,27 +0,0 @@
module ActionView
module Helpers
module PrototypeHelper
def remote_to_href(options = {})
remote_function(options.merge(:url => javascript_variable('this.href'))) + "\n"
end
class JavaScriptGenerator #:nodoc:
module GeneratorMethods
# Executes the content of the block if the user confirms the javascript confirmation. Example:
#
# page.confirming("Are you sure?") do
# page.visual_effect :hide, 'information'
# end
def confirming(message)
message = "'#{message}'" unless message =~ /^['"]/
self << "if (confirm(#{message})) {"
yield
self << "}"
end
end
end
end
end
end