mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Forgot one bit of prototype stuff to clean up
This commit is contained in:
parent
6f3dbca3e2
commit
35c9f55553
2 changed files with 0 additions and 28 deletions
|
@ -83,7 +83,6 @@ require 'tracks/todo_list'
|
||||||
require 'tracks/config'
|
require 'tracks/config'
|
||||||
require 'tagging_extensions' # Needed for tagging-specific extensions
|
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 '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')
|
if ( SITE_CONFIG['authentication_schemes'].include? 'ldap')
|
||||||
require 'net/ldap' #requires ruby-net-ldap gem be installed
|
require 'net/ldap' #requires ruby-net-ldap gem be installed
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue