infopark_rails_connector 6.9.1.3.22208381 → 6.9.2.1.125136549

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/README +2 -14
  2. data/app/assets/javascripts/infopark_rails_connector.js.erb +0 -3
  3. data/app/assets/stylesheets/infopark_rails_connector.css.erb +0 -4
  4. data/app/controllers/rails_connector/default_cms_controller.rb +0 -1
  5. data/app/helpers/rails_connector/default_cms_helper.rb +0 -6
  6. data/app/helpers/rails_connector/layout_helper.rb +2 -7
  7. data/app/views/cms/index.html.erb +0 -2
  8. data/app/views/errors/410_gone.html.erb +2 -2
  9. data/config/ca-bundle.crt +1 -1
  10. data/config/cms_routes.rb +2 -1
  11. data/config/locales/de.rails_connector.views.yml +0 -78
  12. data/config/locales/en.rails_connector.views.yml +0 -78
  13. data/lib/generators/rails_connector/install/install_generator.rb +0 -1
  14. data/lib/generators/rails_connector/install/templates/initializers/rails_connector.rb +0 -27
  15. data/lib/rails_connector/cms_accessible.rb +0 -4
  16. data/lib/rails_connector/configuration.rb +9 -72
  17. data/lib/rails_connector/engine.rb +0 -18
  18. metadata +3 -181
  19. data/app/assets/images/ratings/star.gif +0 -0
  20. data/app/assets/images/time_machine/calendar-menuarrow.gif +0 -0
  21. data/app/assets/images/time_machine/calendar_bg.png +0 -0
  22. data/app/assets/images/time_machine/icon.png +0 -0
  23. data/app/assets/images/time_machine/slider_bg.png +0 -0
  24. data/app/assets/images/time_machine/slider_handle.png +0 -0
  25. data/app/assets/images/time_machine/timemachine_bg.png +0 -0
  26. data/app/assets/javascripts/comments.js +0 -29
  27. data/app/assets/javascripts/initializer.js +0 -9
  28. data/app/assets/javascripts/ratings.js +0 -26
  29. data/app/assets/javascripts/time_machine.js +0 -8
  30. data/app/assets/javascripts/time_machine/calendar-setup.js +0 -200
  31. data/app/assets/javascripts/time_machine/calendar.js +0 -1806
  32. data/app/assets/javascripts/time_machine/lang/calendar-de.js +0 -127
  33. data/app/assets/javascripts/time_machine/lang/calendar-en.js +0 -127
  34. data/app/assets/javascripts/time_machine/lang/calendar-es.js +0 -129
  35. data/app/assets/javascripts/time_machine/lang/calendar-fr.js +0 -125
  36. data/app/assets/javascripts/time_machine/lang/calendar-it.js +0 -124
  37. data/app/assets/javascripts/time_machine/slider.js +0 -278
  38. data/app/assets/stylesheets/ratings.css +0 -97
  39. data/app/assets/stylesheets/time_machine.css +0 -6
  40. data/app/assets/stylesheets/time_machine/time_machine.css +0 -292
  41. data/app/controllers/comments_controller.rb +0 -6
  42. data/app/controllers/crm_form_controller.rb +0 -6
  43. data/app/controllers/rails_connector/default_comments_controller.rb +0 -70
  44. data/app/controllers/rails_connector/default_crm_form_controller.rb +0 -167
  45. data/app/controllers/rails_connector/default_ratings_controller.rb +0 -84
  46. data/app/controllers/rails_connector/default_rss_controller.rb +0 -30
  47. data/app/controllers/rails_connector/default_search_controller.rb +0 -60
  48. data/app/controllers/rails_connector/default_user_controller.rb +0 -269
  49. data/app/controllers/rails_connector/time_machine_controller.rb +0 -48
  50. data/app/controllers/ratings_controller.rb +0 -6
  51. data/app/controllers/rss_controller.rb +0 -6
  52. data/app/controllers/search_controller.rb +0 -6
  53. data/app/controllers/seo_sitemap_controller.rb +0 -12
  54. data/app/controllers/user_controller.rb +0 -6
  55. data/app/helpers/crm_form_helper.rb +0 -6
  56. data/app/helpers/rails_connector/default_crm_form_helper.rb +0 -58
  57. data/app/helpers/rails_connector/default_ratings_helper.rb +0 -38
  58. data/app/helpers/rails_connector/default_user_helper.rb +0 -90
  59. data/app/helpers/rails_connector/error_messages_helper.rb +0 -23
  60. data/app/helpers/rails_connector/link_helper.rb +0 -93
  61. data/app/helpers/rails_connector/mandatory_label_helper.rb +0 -10
  62. data/app/helpers/rails_connector/menu_helper.rb +0 -73
  63. data/app/helpers/rails_connector/micronav_helper.rb +0 -109
  64. data/app/helpers/rails_connector/seo_helper.rb +0 -44
  65. data/app/helpers/rails_connector/time_machine_helper.rb +0 -26
  66. data/app/helpers/rails_connector/tracking_helper.rb +0 -32
  67. data/app/helpers/ratings_helper.rb +0 -4
  68. data/app/helpers/user_helper.rb +0 -6
  69. data/app/mailers/confirmation_mailer.rb +0 -15
  70. data/app/models/crm_form.rb +0 -2
  71. data/app/models/rails_connector/default_comment.rb +0 -30
  72. data/app/models/rails_connector/default_rating.rb +0 -22
  73. data/app/views/cms/_comments.html.erb +0 -44
  74. data/app/views/cms/_rating.html.erb +0 -31
  75. data/app/views/comments/_comment.html.erb +0 -28
  76. data/app/views/confirmation_mailer/register_confirmation.erb +0 -5
  77. data/app/views/confirmation_mailer/reset_password.erb +0 -5
  78. data/app/views/crm_form/_flash_messages.html.erb +0 -11
  79. data/app/views/crm_form/_form.html.erb +0 -17
  80. data/app/views/crm_form/confirmation.html.erb +0 -3
  81. data/app/views/crm_form/index.html.erb +0 -5
  82. data/app/views/crm_form/not_logged_in.html.erb +0 -1
  83. data/app/views/layouts/rails_connector/time_machine.html.erb +0 -12
  84. data/app/views/rails_connector/time_machine/index.html.erb +0 -88
  85. data/app/views/rss/_item.rss.builder +0 -11
  86. data/app/views/rss/index.rss.builder +0 -11
  87. data/app/views/search/_hit.html.erb +0 -11
  88. data/app/views/search/_hits.html.erb +0 -11
  89. data/app/views/search/_mini_panel.html.erb +0 -4
  90. data/app/views/search/_pagination.html.erb +0 -5
  91. data/app/views/search/_panel.html.erb +0 -4
  92. data/app/views/search/search.html.erb +0 -12
  93. data/app/views/seo_sitemap/show.xml.builder +0 -16
  94. data/app/views/user/_flash_messages.html.erb +0 -11
  95. data/app/views/user/edit.html.erb +0 -6
  96. data/app/views/user/edit_password.html.erb +0 -11
  97. data/app/views/user/forgot_password.html.erb +0 -7
  98. data/app/views/user/login.html.erb +0 -15
  99. data/app/views/user/new.html.erb +0 -13
  100. data/app/views/user/profile.html.erb +0 -8
  101. data/app/views/user/register_pending.html.erb +0 -1
  102. data/app/views/user/set_password.html.erb +0 -14
  103. data/config/locales/de.rails_connector.controllers.yml +0 -28
  104. data/config/locales/de.rails_connector.helpers.yml +0 -9
  105. data/config/locales/de.rails_connector.models.yml +0 -8
  106. data/config/locales/en.rails_connector.controllers.yml +0 -28
  107. data/config/locales/en.rails_connector.helpers.yml +0 -9
  108. data/config/locales/en.rails_connector.models.yml +0 -8
  109. data/config/routes.rb +0 -31
  110. data/lib/generators/rails_connector/comments/comments_generator.rb +0 -20
  111. data/lib/generators/rails_connector/comments/templates/migration.rb +0 -16
  112. data/lib/generators/rails_connector/install/templates/initializers/crm_connector.rb +0 -22
  113. data/lib/generators/rails_connector/ratings/ratings_generator.rb +0 -20
  114. data/lib/generators/rails_connector/ratings/templates/migration.rb +0 -14
  115. data/lib/rails_connector/commentable.rb +0 -23
  116. data/lib/rails_connector/configuration/google_analytics.rb +0 -29
  117. data/lib/rails_connector/configuration/rss.rb +0 -46
  118. data/lib/rails_connector/crm.rb +0 -282
  119. data/lib/rails_connector/googlebot_checker.rb +0 -46
  120. data/lib/rails_connector/liquid_support.rb +0 -25
  121. data/lib/rails_connector/liquid_support/field_value_drop.rb +0 -22
  122. data/lib/rails_connector/liquid_support/general_helper_tag.rb +0 -44
  123. data/lib/rails_connector/liquid_support/link_drop.rb +0 -22
  124. data/lib/rails_connector/liquid_support/liquid_template_handler.rb +0 -162
  125. data/lib/rails_connector/liquid_support/named_object_drop.rb +0 -14
  126. data/lib/rails_connector/liquid_support/obj_drop.rb +0 -43
  127. data/lib/rails_connector/liquid_support/obj_filters.rb +0 -77
  128. data/lib/rails_connector/rateable.rb +0 -57
  129. data/lib/rails_connector/seo.rb +0 -52
  130. data/lib/rails_connector/ses.rb +0 -81
  131. data/lib/rails_connector/syndicateable.rb +0 -11
  132. data/lib/search_request.rb +0 -2
@@ -1,6 +1,5 @@
1
1
  require "rails"
2
2
  require "action_view"
3
- require "will_paginate"
4
3
 
5
4
  require 'jquery-rails'
6
5
 
@@ -40,16 +39,6 @@ module ::RailsConnector
40
39
  RailsConnector::Configuration.configure_cms_database
41
40
  end
42
41
 
43
- initializer "rails_connector.liquid_support" do
44
- # Liquid Gem integration
45
- ActionView::Template.register_template_handler(
46
- :liquid, ::RailsConnector::LiquidSupport::LiquidTemplateHandler
47
- )
48
- if Rails.env.test? && ::RailsConnector::LiquidSupport.raise_template_errors == nil
49
- ::RailsConnector::LiquidSupport.raise_template_errors = true
50
- end
51
- end
52
-
53
42
  initializer "rails_connector.routing_helpers" do
54
43
  if Rails.env == 'test'
55
44
  ActionDispatch::TestRequest.__send__(:include, RailsConnector::CmsTestRequest)
@@ -59,13 +48,6 @@ module ::RailsConnector
59
48
  ActionView::Base.__send__(:include, CmsRoutingHelper)
60
49
  end
61
50
 
62
- initializer "rails_connector.config_local", :after => :load_config_initializers,
63
- :before => :engines_blank_point do
64
- Dir.glob(Rails.root.join('config', 'local', '*.rb')).each do |file|
65
- require file
66
- end
67
- end
68
-
69
51
  config.autoload_paths += paths['lib'].to_a
70
52
  config.autoload_once_paths += paths['lib'].to_a
71
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.9.1.3.22208381
4
+ version: 6.9.2.1.125136549
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -75,70 +75,6 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.6.0
78
- - !ruby/object:Gem::Dependency
79
- name: liquid
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 2.4.0
86
- type: :runtime
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 2.4.0
94
- - !ruby/object:Gem::Dependency
95
- name: will_paginate
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 3.0.2
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 3.0.2
110
- - !ruby/object:Gem::Dependency
111
- name: ruby-recaptcha
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: 1.0.5
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: 1.0.5
126
- - !ruby/object:Gem::Dependency
127
- name: infopark_crm_connector
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: 1.0.0
134
- type: :runtime
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: 1.0.0
142
78
  - !ruby/object:Gem::Dependency
143
79
  name: jquery-rails
144
80
  requirement: !ruby/object:Gem::Requirement
@@ -186,133 +122,37 @@ files:
186
122
  - app/assets/images/edit.png
187
123
  - app/assets/images/icons/mm_generic.png
188
124
  - app/assets/images/icons/mm_menu.png
189
- - app/assets/images/ratings/star.gif
190
- - app/assets/images/time_machine/calendar-menuarrow.gif
191
- - app/assets/images/time_machine/calendar_bg.png
192
- - app/assets/images/time_machine/icon.png
193
- - app/assets/images/time_machine/slider_bg.png
194
- - app/assets/images/time_machine/slider_handle.png
195
- - app/assets/images/time_machine/timemachine_bg.png
196
- - app/assets/javascripts/comments.js
197
125
  - app/assets/javascripts/editmarker.js
198
126
  - app/assets/javascripts/infopark_rails_connector.js.erb
199
- - app/assets/javascripts/initializer.js
200
- - app/assets/javascripts/ratings.js
201
- - app/assets/javascripts/time_machine.js
202
- - app/assets/javascripts/time_machine/calendar-setup.js
203
- - app/assets/javascripts/time_machine/calendar.js
204
- - app/assets/javascripts/time_machine/lang/calendar-de.js
205
- - app/assets/javascripts/time_machine/lang/calendar-en.js
206
- - app/assets/javascripts/time_machine/lang/calendar-es.js
207
- - app/assets/javascripts/time_machine/lang/calendar-fr.js
208
- - app/assets/javascripts/time_machine/lang/calendar-it.js
209
- - app/assets/javascripts/time_machine/slider.js
210
127
  - app/assets/stylesheets/editmarker.css
211
128
  - app/assets/stylesheets/infopark_rails_connector.css.erb
212
- - app/assets/stylesheets/ratings.css
213
- - app/assets/stylesheets/time_machine.css
214
- - app/assets/stylesheets/time_machine/time_machine.css
215
129
  - app/controllers/cms_controller.rb
216
- - app/controllers/comments_controller.rb
217
- - app/controllers/crm_form_controller.rb
218
130
  - app/controllers/rails_connector/default_cms_controller.rb
219
- - app/controllers/rails_connector/default_comments_controller.rb
220
- - app/controllers/rails_connector/default_crm_form_controller.rb
221
- - app/controllers/rails_connector/default_ratings_controller.rb
222
- - app/controllers/rails_connector/default_rss_controller.rb
223
- - app/controllers/rails_connector/default_search_controller.rb
224
- - app/controllers/rails_connector/default_user_controller.rb
225
- - app/controllers/rails_connector/time_machine_controller.rb
226
- - app/controllers/ratings_controller.rb
227
- - app/controllers/rss_controller.rb
228
- - app/controllers/search_controller.rb
229
- - app/controllers/seo_sitemap_controller.rb
230
- - app/controllers/user_controller.rb
231
131
  - app/helpers/cms_helper.rb
232
132
  - app/helpers/cms_routing_helper.rb
233
- - app/helpers/crm_form_helper.rb
234
133
  - app/helpers/rails_connector/default_cms_helper.rb
235
134
  - app/helpers/rails_connector/default_cms_routing_helper.rb
236
- - app/helpers/rails_connector/default_crm_form_helper.rb
237
- - app/helpers/rails_connector/default_ratings_helper.rb
238
- - app/helpers/rails_connector/default_user_helper.rb
239
135
  - app/helpers/rails_connector/display_helper.rb
240
- - app/helpers/rails_connector/error_messages_helper.rb
241
136
  - app/helpers/rails_connector/layout_helper.rb
242
- - app/helpers/rails_connector/link_helper.rb
243
- - app/helpers/rails_connector/mandatory_label_helper.rb
244
- - app/helpers/rails_connector/menu_helper.rb
245
- - app/helpers/rails_connector/micronav_helper.rb
246
- - app/helpers/rails_connector/seo_helper.rb
247
137
  - app/helpers/rails_connector/table_of_contents_helper.rb
248
- - app/helpers/rails_connector/time_machine_helper.rb
249
- - app/helpers/rails_connector/tracking_helper.rb
250
- - app/helpers/ratings_helper.rb
251
- - app/helpers/user_helper.rb
252
- - app/mailers/confirmation_mailer.rb
253
- - app/models/crm_form.rb
254
138
  - app/models/named_link.rb
255
- - app/models/rails_connector/default_comment.rb
256
- - app/models/rails_connector/default_rating.rb
257
139
  - app/models/rails_connector/link_list.rb
258
- - app/views/cms/_comments.html.erb
259
140
  - app/views/cms/_index.html.erb
260
- - app/views/cms/_rating.html.erb
261
141
  - app/views/cms/index.html.erb
262
- - app/views/comments/_comment.html.erb
263
- - app/views/confirmation_mailer/register_confirmation.erb
264
- - app/views/confirmation_mailer/reset_password.erb
265
- - app/views/crm_form/_flash_messages.html.erb
266
- - app/views/crm_form/_form.html.erb
267
- - app/views/crm_form/confirmation.html.erb
268
- - app/views/crm_form/index.html.erb
269
- - app/views/crm_form/not_logged_in.html.erb
270
142
  - app/views/errors/403_forbidden.html.erb
271
143
  - app/views/errors/410_gone.html.erb
272
- - app/views/layouts/rails_connector/time_machine.html.erb
273
- - app/views/rails_connector/time_machine/index.html.erb
274
- - app/views/rss/_item.rss.builder
275
- - app/views/rss/index.rss.builder
276
- - app/views/search/_hit.html.erb
277
- - app/views/search/_hits.html.erb
278
- - app/views/search/_mini_panel.html.erb
279
- - app/views/search/_pagination.html.erb
280
- - app/views/search/_panel.html.erb
281
- - app/views/search/search.html.erb
282
- - app/views/seo_sitemap/show.xml.builder
283
- - app/views/user/_flash_messages.html.erb
284
- - app/views/user/edit.html.erb
285
- - app/views/user/edit_password.html.erb
286
- - app/views/user/forgot_password.html.erb
287
- - app/views/user/login.html.erb
288
- - app/views/user/new.html.erb
289
- - app/views/user/profile.html.erb
290
- - app/views/user/register_pending.html.erb
291
- - app/views/user/set_password.html.erb
292
144
  - config/ca-bundle.crt
293
145
  - config/cms_routes.rb
294
- - config/locales/de.rails_connector.controllers.yml
295
146
  - config/locales/de.rails_connector.errors.yml
296
- - config/locales/de.rails_connector.helpers.yml
297
147
  - config/locales/de.rails_connector.lib.yml
298
- - config/locales/de.rails_connector.models.yml
299
148
  - config/locales/de.rails_connector.views.yml
300
- - config/locales/en.rails_connector.controllers.yml
301
149
  - config/locales/en.rails_connector.errors.yml
302
- - config/locales/en.rails_connector.helpers.yml
303
150
  - config/locales/en.rails_connector.lib.yml
304
- - config/locales/en.rails_connector.models.yml
305
151
  - config/locales/en.rails_connector.views.yml
306
- - config/routes.rb
307
- - lib/generators/rails_connector/comments/comments_generator.rb
308
- - lib/generators/rails_connector/comments/templates/migration.rb
309
152
  - lib/generators/rails_connector/install/install_generator.rb
310
153
  - lib/generators/rails_connector/install/templates/app/models/obj.rb.erb
311
- - lib/generators/rails_connector/install/templates/initializers/crm_connector.rb
312
154
  - lib/generators/rails_connector/install/templates/initializers/rails_connector.rb
313
155
  - lib/generators/rails_connector/install/templates/local/configuration.rb
314
- - lib/generators/rails_connector/ratings/ratings_generator.rb
315
- - lib/generators/rails_connector/ratings/templates/migration.rb
316
156
  - lib/infopark_rails_connector.rb
317
157
  - lib/obj.rb
318
158
  - lib/rails_connector/authenticable.rb
@@ -320,32 +160,14 @@ files:
320
160
  - lib/rails_connector/cms_dispatch_controller.rb
321
161
  - lib/rails_connector/cms_env.rb
322
162
  - lib/rails_connector/cms_test_request.rb
323
- - lib/rails_connector/commentable.rb
324
163
  - lib/rails_connector/configuration.rb
325
- - lib/rails_connector/configuration/google_analytics.rb
326
- - lib/rails_connector/configuration/rss.rb
327
164
  - lib/rails_connector/core_extensions.rb
328
165
  - lib/rails_connector/core_extensions/time.rb
329
- - lib/rails_connector/crm.rb
330
166
  - lib/rails_connector/engine.rb
331
- - lib/rails_connector/googlebot_checker.rb
332
167
  - lib/rails_connector/html_string.rb
333
168
  - lib/rails_connector/link_resolvable.rb
334
- - lib/rails_connector/liquid_support.rb
335
- - lib/rails_connector/liquid_support/field_value_drop.rb
336
- - lib/rails_connector/liquid_support/general_helper_tag.rb
337
- - lib/rails_connector/liquid_support/link_drop.rb
338
- - lib/rails_connector/liquid_support/liquid_template_handler.rb
339
- - lib/rails_connector/liquid_support/named_object_drop.rb
340
- - lib/rails_connector/liquid_support/obj_drop.rb
341
- - lib/rails_connector/liquid_support/obj_filters.rb
342
169
  - lib/rails_connector/markdown_string.rb
343
- - lib/rails_connector/rateable.rb
344
- - lib/rails_connector/seo.rb
345
- - lib/rails_connector/ses.rb
346
170
  - lib/rails_connector/string_tagging.rb
347
- - lib/rails_connector/syndicateable.rb
348
- - lib/search_request.rb
349
171
  - lib/tasks/check.rake
350
172
  homepage: http://www.infopark.de
351
173
  licenses: []
@@ -361,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
361
183
  version: '0'
362
184
  segments:
363
185
  - 0
364
- hash: -690164499
186
+ hash: -522616499
365
187
  required_rubygems_version: !ruby/object:Gem::Requirement
366
188
  none: false
367
189
  requirements:
@@ -1,29 +0,0 @@
1
- var rails_connector = (function(rails_connector, $) {
2
- rails_connector.comments = {
3
- initialize: function() {
4
- var form = $("#comment_form");
5
- if (form.length > 0) {
6
- form.find(".submit").click(function() {
7
- $.post(form.attr("action"), form.serialize(), function(json) {
8
- form.find("label").removeClass("error");
9
- if (json.comment) {
10
- $("#no_comments").hide();
11
- $("#comment_list_container").show();
12
- var comment = $(json.comment).hide();
13
- $("#comment_list_container").append(comment);
14
- comment.slideDown(750, "swing");
15
- $("html, body").animate({scrollTop: comment.offset().top}, 1000);
16
- form[0].reset();
17
- } else {
18
- $.each(json.errors, function() {
19
- $("#comment_form_" + this + "_label").addClass("error");
20
- });
21
- }
22
- }, "json");
23
- return false;
24
- });
25
- }
26
- }
27
- };
28
- return rails_connector;
29
- }(rails_connector || {}, jQuery));
@@ -1,9 +0,0 @@
1
- var rails_connector = (function(rails_connector, $) {
2
- if (rails_connector.hasOwnProperty("comments")) {
3
- $(document).ready(rails_connector.comments.initialize);
4
- }
5
- if (rails_connector.hasOwnProperty("ratings")) {
6
- $(document).ready(rails_connector.ratings.initialize);
7
- }
8
- return rails_connector;
9
- })(rails_connector || {}, jQuery);
@@ -1,26 +0,0 @@
1
- var rails_connector = (function(rails_connector, $) {
2
- rails_connector.ratings = {
3
- initialize: function() {
4
- var rating = $("#starRating");
5
- if (rating.length > 0) {
6
- var label = $("#starRating_label");
7
- $.each(rating.find("ul.star-rating li a"), function(i, link_elem) {
8
- var link = $(link_elem);
9
- link.click(function() {
10
- $.post(link.attr("href"), function(data) {
11
- rating.replaceWith(data);
12
- }, "html");
13
- return false;
14
- });
15
- link.mouseover(function() {
16
- label.text(link.attr("data-description"));
17
- });
18
- link.mouseout(function() {
19
- label.text(rating.attr("data-default_description"));
20
- });
21
- });
22
- }
23
- }
24
- };
25
- return rails_connector;
26
- }(rails_connector || {}, jQuery));
@@ -1,8 +0,0 @@
1
- //= require prototype
2
- //= require effects
3
- //= require dragdrop
4
- //= require controls
5
- //= require time_machine/slider
6
- //= require time_machine/calendar
7
- //= require time_machine/lang/calendar-de
8
- //= require time_machine/calendar-setup
@@ -1,200 +0,0 @@
1
- /* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/
2
- * ---------------------------------------------------------------------------
3
- *
4
- * The DHTML Calendar
5
- *
6
- * Details and latest version at:
7
- * http://dynarch.com/mishoo/calendar.epl
8
- *
9
- * This script is distributed under the GNU Lesser General Public License.
10
- * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html
11
- *
12
- * This file defines helper functions for setting up the calendar. They are
13
- * intended to help non-programmers get a working calendar on their site
14
- * quickly. This script should not be seen as part of the calendar. It just
15
- * shows you what one can do with the calendar, while in the same time
16
- * providing a quick and simple method for setting it up. If you need
17
- * exhaustive customization of the calendar creation process feel free to
18
- * modify this code to suit your needs (this is recommended and much better
19
- * than modifying calendar.js itself).
20
- */
21
-
22
- // $Id: calendar-setup.js,v 1.25 2005/03/07 09:51:33 mishoo Exp $
23
-
24
- /**
25
- * This function "patches" an input field (or other element) to use a calendar
26
- * widget for date selection.
27
- *
28
- * The "params" is a single object that can have the following properties:
29
- *
30
- * prop. name | description
31
- * -------------------------------------------------------------------------------------------------
32
- * inputField | the ID of an input field to store the date
33
- * displayArea | the ID of a DIV or other element to show the date
34
- * button | ID of a button or other element that will trigger the calendar
35
- * eventName | event that will trigger the calendar, without the "on" prefix (default: "click")
36
- * ifFormat | date format that will be stored in the input field
37
- * daFormat | the date format that will be used to display the date in displayArea
38
- * singleClick | (true/false) wether the calendar is in single click mode or not (default: true)
39
- * firstDay | numeric: 0 to 6. "0" means display Sunday first, "1" means display Monday first, etc.
40
- * align | alignment (default: "Br"); if you don't know what's this see the calendar documentation
41
- * range | array with 2 elements. Default: [1900, 2999] -- the range of years available
42
- * weekNumbers | (true/false) if it's true (default) the calendar will display week numbers
43
- * flat | null or element ID; if not null the calendar will be a flat calendar having the parent with the given ID
44
- * flatCallback | function that receives a JS Date object and returns an URL to point the browser to (for flat calendar)
45
- * disableFunc | function that receives a JS Date object and should return true if that date has to be disabled in the calendar
46
- * onSelect | function that gets called when a date is selected. You don't _have_ to supply this (the default is generally okay)
47
- * onClose | function that gets called when the calendar is closed. [default]
48
- * onUpdate | function that gets called after the date is updated in the input field. Receives a reference to the calendar.
49
- * date | the date that the calendar will be initially displayed to
50
- * showsTime | default: false; if true the calendar will include a time selector
51
- * timeFormat | the time format; can be "12" or "24", default is "12"
52
- * electric | if true (default) then given fields/date areas are updated for each move; otherwise they're updated only on close
53
- * step | configures the step of the years in drop-down boxes; default: 2
54
- * position | configures the calendar absolute position; default: null
55
- * cache | if "true" (but default: "false") it will reuse the same calendar object, where possible
56
- * showOthers | if "true" (but default: "false") it will show days from other months too
57
- *
58
- * None of them is required, they all have default values. However, if you
59
- * pass none of "inputField", "displayArea" or "button" you'll get a warning
60
- * saying "nothing to setup".
61
- */
62
- Calendar.setup = function (params) {
63
- function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } };
64
-
65
- param_default("inputField", null);
66
- param_default("displayArea", null);
67
- param_default("button", null);
68
- param_default("eventName", "click");
69
- param_default("ifFormat", "%Y/%m/%d");
70
- param_default("daFormat", "%Y/%m/%d");
71
- param_default("singleClick", true);
72
- param_default("disableFunc", null);
73
- param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined
74
- param_default("dateText", null);
75
- param_default("firstDay", null);
76
- param_default("align", "Br");
77
- param_default("range", [1900, 2999]);
78
- param_default("weekNumbers", true);
79
- param_default("flat", null);
80
- param_default("flatCallback", null);
81
- param_default("onSelect", null);
82
- param_default("onClose", null);
83
- param_default("onUpdate", null);
84
- param_default("date", null);
85
- param_default("showsTime", false);
86
- param_default("timeFormat", "24");
87
- param_default("electric", true);
88
- param_default("step", 2);
89
- param_default("position", null);
90
- param_default("cache", false);
91
- param_default("showOthers", false);
92
- param_default("multiple", null);
93
-
94
- var tmp = ["inputField", "displayArea", "button"];
95
- for (var i in tmp) {
96
- if (typeof params[tmp[i]] == "string") {
97
- params[tmp[i]] = document.getElementById(params[tmp[i]]);
98
- }
99
- }
100
- if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) {
101
- alert("Calendar.setup:\n Nothing to setup (no fields found). Please check your code");
102
- return false;
103
- }
104
-
105
- function onSelect(cal) {
106
- var p = cal.params;
107
- var update = (cal.dateClicked || p.electric);
108
- if (update && p.inputField) {
109
- p.inputField.value = cal.date.print(p.ifFormat);
110
- if (typeof p.inputField.onchange == "function")
111
- p.inputField.onchange();
112
- }
113
- if (update && p.displayArea)
114
- p.displayArea.innerHTML = cal.date.print(p.daFormat);
115
- if (update && typeof p.onUpdate == "function")
116
- p.onUpdate(cal);
117
- if (update && p.flat) {
118
- if (typeof p.flatCallback == "function")
119
- p.flatCallback(cal);
120
- }
121
- if (update && p.singleClick && cal.dateClicked)
122
- cal.callCloseHandler();
123
- };
124
-
125
- if (params.flat != null) {
126
- if (typeof params.flat == "string")
127
- params.flat = document.getElementById(params.flat);
128
- if (!params.flat) {
129
- alert("Calendar.setup:\n Flat specified but can't find parent.");
130
- return false;
131
- }
132
- var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
133
- cal.showsOtherMonths = params.showOthers;
134
- cal.showsTime = params.showsTime;
135
- cal.time24 = (params.timeFormat == "24");
136
- cal.params = params;
137
- cal.weekNumbers = params.weekNumbers;
138
- cal.setRange(params.range[0], params.range[1]);
139
- cal.setDateStatusHandler(params.dateStatusFunc);
140
- cal.getDateText = params.dateText;
141
- if (params.ifFormat) {
142
- cal.setDateFormat(params.ifFormat);
143
- }
144
- if (params.inputField && typeof params.inputField.value == "string") {
145
- cal.parseDate(params.inputField.value);
146
- }
147
- cal.create(params.flat);
148
- cal.show();
149
- return cal;
150
- }
151
-
152
- var triggerEl = params.button || params.displayArea || params.inputField;
153
- triggerEl["on" + params.eventName] = function() {
154
- var dateEl = params.inputField || params.displayArea;
155
- var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
156
- var mustCreate = false;
157
- var cal = window.calendar;
158
- if (dateEl)
159
- params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
160
- if (!(cal && params.cache)) {
161
- window.calendar = cal = new Calendar(params.firstDay,
162
- params.date,
163
- params.onSelect || onSelect,
164
- params.onClose || function(cal) { cal.hide(); });
165
- cal.showsTime = params.showsTime;
166
- cal.time24 = (params.timeFormat == "24");
167
- cal.weekNumbers = params.weekNumbers;
168
- mustCreate = true;
169
- } else {
170
- if (params.date)
171
- cal.setDate(params.date);
172
- cal.hide();
173
- }
174
- if (params.multiple) {
175
- cal.multiple = {};
176
- for (var i = params.multiple.length; --i >= 0;) {
177
- var d = params.multiple[i];
178
- var ds = d.print("%Y%m%d");
179
- cal.multiple[ds] = d;
180
- }
181
- }
182
- cal.showsOtherMonths = params.showOthers;
183
- cal.yearStep = params.step;
184
- cal.setRange(params.range[0], params.range[1]);
185
- cal.params = params;
186
- cal.setDateStatusHandler(params.dateStatusFunc);
187
- cal.getDateText = params.dateText;
188
- cal.setDateFormat(dateFmt);
189
- if (mustCreate)
190
- cal.create();
191
- cal.refresh();
192
- if (!params.position)
193
- cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
194
- else
195
- cal.showAt(params.position[0], params.position[1]);
196
- return cal;
197
- };
198
-
199
- return cal;
200
- };