zena 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1826) hide show
  1. data/History.txt +18 -0
  2. data/README.txt +133 -0
  3. data/app/controllers/application_controller.rb +3 -0
  4. data/app/controllers/comments_controller.rb +141 -0
  5. data/app/controllers/data_entries_controller.rb +81 -0
  6. data/app/controllers/discussions_controller.rb +48 -0
  7. data/app/controllers/documents_controller.rb +136 -0
  8. data/app/controllers/groups_controller.rb +99 -0
  9. data/app/controllers/iformats_controller.rb +78 -0
  10. data/app/controllers/links_controller.rb +98 -0
  11. data/app/controllers/nodes_controller.rb +497 -0
  12. data/app/controllers/preferences_controller.rb +52 -0
  13. data/app/controllers/relations_controller.rb +95 -0
  14. data/app/controllers/sessions_controller.rb +41 -0
  15. data/app/controllers/sites_controller.rb +112 -0
  16. data/app/controllers/users_controller.rb +139 -0
  17. data/app/controllers/versions_controller.rb +268 -0
  18. data/app/controllers/virtual_classes_controller.rb +95 -0
  19. data/app/helpers/application_helper.rb +4 -0
  20. data/app/helpers/documents_helper.rb +13 -0
  21. data/app/helpers/nodes_helper.rb +20 -0
  22. data/app/helpers/versions_helper.rb +18 -0
  23. data/app/models/book.rb +242 -0
  24. data/app/models/cache.rb +52 -0
  25. data/app/models/cached_page.rb +134 -0
  26. data/app/models/comment.rb +125 -0
  27. data/app/models/contact.rb +32 -0
  28. data/app/models/contact_content.rb +70 -0
  29. data/app/models/contact_version.rb +40 -0
  30. data/app/models/data_entry.rb +162 -0
  31. data/app/models/discussion.rb +65 -0
  32. data/app/models/document.rb +146 -0
  33. data/app/models/document_content.rb +186 -0
  34. data/app/models/document_version.rb +13 -0
  35. data/app/models/dyn_attribute.rb +4 -0
  36. data/app/models/group.rb +142 -0
  37. data/app/models/iformat.rb +146 -0
  38. data/app/models/image.rb +96 -0
  39. data/app/models/image_content.rb +189 -0
  40. data/app/models/image_version.rb +21 -0
  41. data/app/models/link.rb +121 -0
  42. data/app/models/node.rb +1752 -0
  43. data/app/models/note.rb +58 -0
  44. data/app/models/page.rb +53 -0
  45. data/app/models/project.rb +10 -0
  46. data/app/models/reference.rb +18 -0
  47. data/app/models/relation.rb +18 -0
  48. data/app/models/relation_proxy.rb +379 -0
  49. data/app/models/section.rb +5 -0
  50. data/app/models/site.rb +355 -0
  51. data/app/models/skin.rb +20 -0
  52. data/app/models/template.rb +134 -0
  53. data/app/models/template_content.rb +112 -0
  54. data/app/models/template_version.rb +37 -0
  55. data/app/models/text_document.rb +162 -0
  56. data/app/models/text_document_content.rb +46 -0
  57. data/app/models/text_document_version.rb +21 -0
  58. data/app/models/user.rb +412 -0
  59. data/app/models/version.rb +328 -0
  60. data/app/models/virtual_class.rb +134 -0
  61. data/app/models/zip.rb +6 -0
  62. data/app/views/comments/_add.rhtml +6 -0
  63. data/app/views/comments/_bin.rhtml +5 -0
  64. data/app/views/comments/_form.rhtml +26 -0
  65. data/app/views/comments/_li.rhtml +13 -0
  66. data/app/views/comments/_li_simple.rhtml +3 -0
  67. data/app/views/comments/_list.rhtml +13 -0
  68. data/app/views/comments/create.rjs +32 -0
  69. data/app/views/comments/edit.rjs +2 -0
  70. data/app/views/comments/empty_bin.rjs +1 -0
  71. data/app/views/comments/index.rhtml +12 -0
  72. data/app/views/comments/publish.rjs +7 -0
  73. data/app/views/comments/remove.rjs +9 -0
  74. data/app/views/comments/reply_to.rjs +2 -0
  75. data/app/views/comments/update.rjs +1 -0
  76. data/app/views/data_entries/_li.html.erb +9 -0
  77. data/app/views/data_entries/create.rjs +1 -0
  78. data/app/views/data_entries/destroy.rjs +1 -0
  79. data/app/views/data_entries/edit.rjs +1 -0
  80. data/app/views/data_entries/index.html.erb +5 -0
  81. data/app/views/data_entries/show.html.erb +5 -0
  82. data/app/views/data_entries/show.rjs +1 -0
  83. data/app/views/data_entries/update.rjs +1 -0
  84. data/app/views/discussions/_add.rhtml +6 -0
  85. data/app/views/discussions/_form.rhtml +21 -0
  86. data/app/views/discussions/_li.rhtml +9 -0
  87. data/app/views/discussions/_list.rhtml +4 -0
  88. data/app/views/discussions/create.rjs +10 -0
  89. data/app/views/discussions/remove.rjs +7 -0
  90. data/app/views/discussions/show.rjs +1 -0
  91. data/app/views/discussions/update.rjs +2 -0
  92. data/app/views/documents/_crop.rhtml +10 -0
  93. data/app/views/documents/crop_form.rjs +4 -0
  94. data/app/views/documents/new.rhtml +18 -0
  95. data/app/views/documents/show.rhtml +17 -0
  96. data/app/views/groups/_add.rhtml +6 -0
  97. data/app/views/groups/_form.rhtml +44 -0
  98. data/app/views/groups/_li.rhtml +13 -0
  99. data/app/views/groups/create.rjs +8 -0
  100. data/app/views/groups/destroy.rjs +2 -0
  101. data/app/views/groups/edit.html.erb +5 -0
  102. data/app/views/groups/index.rhtml +6 -0
  103. data/app/views/groups/show.html.erb +5 -0
  104. data/app/views/groups/show.rjs +1 -0
  105. data/app/views/iformats/_add.rhtml +6 -0
  106. data/app/views/iformats/_form.rhtml +29 -0
  107. data/app/views/iformats/_li.rhtml +15 -0
  108. data/app/views/iformats/create.rjs +8 -0
  109. data/app/views/iformats/destroy.rjs +11 -0
  110. data/app/views/iformats/edit.html.erb +5 -0
  111. data/app/views/iformats/index.rhtml +7 -0
  112. data/app/views/iformats/show.html.erb +5 -0
  113. data/app/views/iformats/show.rjs +1 -0
  114. data/app/views/iformats/update.rjs +5 -0
  115. data/app/views/image/_title.rhtml +8 -0
  116. data/app/views/links/_add.rhtml +6 -0
  117. data/app/views/links/_form.rhtml +34 -0
  118. data/app/views/links/_li.rhtml +7 -0
  119. data/app/views/links/_list.rhtml +9 -0
  120. data/app/views/links/create.rjs +5 -0
  121. data/app/views/links/destroy.rjs +11 -0
  122. data/app/views/links/show.rjs +5 -0
  123. data/app/views/nodes/404.html +15 -0
  124. data/app/views/nodes/500.html +15 -0
  125. data/app/views/nodes/_dates.rhtml +13 -0
  126. data/app/views/nodes/_edit_attribute.rhtml +32 -0
  127. data/app/views/nodes/_gallery.rhtml +16 -0
  128. data/app/views/nodes/_groups.rhtml +25 -0
  129. data/app/views/nodes/_import_results.rhtml +20 -0
  130. data/app/views/nodes/_list_nodes.rhtml +9 -0
  131. data/app/views/nodes/_parent.rhtml +15 -0
  132. data/app/views/nodes/_position.rhtml +22 -0
  133. data/app/views/nodes/_results.rhtml +29 -0
  134. data/app/views/nodes/_show_attr.rhtml +6 -0
  135. data/app/views/nodes/_table.rhtml +14 -0
  136. data/app/views/nodes/clear_order.rjs +7 -0
  137. data/app/views/nodes/create.rjs +17 -0
  138. data/app/views/nodes/drive.rjs +2 -0
  139. data/app/views/nodes/drop.rjs +1 -0
  140. data/app/views/nodes/edit.html.erb +17 -0
  141. data/app/views/nodes/edit.rjs +7 -0
  142. data/app/views/nodes/import.rhtml +10 -0
  143. data/app/views/nodes/save_text.rjs +13 -0
  144. data/app/views/nodes/search.rjs +3 -0
  145. data/app/views/nodes/show.rjs +1 -0
  146. data/app/views/nodes/table_update.rjs +8 -0
  147. data/app/views/nodes/update.rjs +29 -0
  148. data/app/views/nodes/zafu.rjs +1 -0
  149. data/app/views/relations/_add.erb +6 -0
  150. data/app/views/relations/_form.erb +43 -0
  151. data/app/views/relations/_li.erb +16 -0
  152. data/app/views/relations/create.rjs +8 -0
  153. data/app/views/relations/destroy.rjs +6 -0
  154. data/app/views/relations/edit.erb +2 -0
  155. data/app/views/relations/index.erb +6 -0
  156. data/app/views/relations/new.erb +2 -0
  157. data/app/views/relations/show.rjs +1 -0
  158. data/app/views/relations/update.rjs +5 -0
  159. data/app/views/search/_form.rhtml +13 -0
  160. data/app/views/sites/_form.erb +37 -0
  161. data/app/views/sites/_li.erb +13 -0
  162. data/app/views/sites/clear_cache.rjs +2 -0
  163. data/app/views/sites/edit.erb +2 -0
  164. data/app/views/sites/index.erb +6 -0
  165. data/app/views/sites/show.rjs +1 -0
  166. data/app/views/sites/update.rjs +5 -0
  167. data/app/views/sites/zena_up.html.erb +11 -0
  168. data/app/views/templates/defaults/+adminLayout.zafu +69 -0
  169. data/app/views/templates/defaults/+login.zafu +32 -0
  170. data/app/views/templates/document_create_tabs/_file.rhtml +13 -0
  171. data/app/views/templates/document_create_tabs/_import.rhtml +9 -0
  172. data/app/views/templates/document_create_tabs/_template.rhtml +22 -0
  173. data/app/views/templates/document_create_tabs/_text_doc.rhtml +14 -0
  174. data/app/views/templates/drive_tabs/_drive.rhtml +11 -0
  175. data/app/views/templates/drive_tabs/_help.rhtml +0 -0
  176. data/app/views/templates/drive_tabs/_links.rhtml +8 -0
  177. data/app/views/templates/edit_tabs/_contact.rhtml +8 -0
  178. data/app/views/templates/edit_tabs/_custom.rhtml +6 -0
  179. data/app/views/templates/edit_tabs/_document.rhtml +8 -0
  180. data/app/views/templates/edit_tabs/_help.rhtml +7 -0
  181. data/app/views/templates/edit_tabs/_image.rhtml +19 -0
  182. data/app/views/templates/edit_tabs/_template.rhtml +8 -0
  183. data/app/views/templates/edit_tabs/_text.rhtml +1 -0
  184. data/app/views/templates/edit_tabs/_textdocument.rhtml +16 -0
  185. data/app/views/templates/edit_tabs/_title.rhtml +27 -0
  186. data/app/views/users/_add.rhtml +6 -0
  187. data/app/views/users/_form.rhtml +49 -0
  188. data/app/views/users/_li.rhtml +18 -0
  189. data/app/views/users/change_info.rjs +7 -0
  190. data/app/views/users/change_password.rjs +7 -0
  191. data/app/views/users/create.rjs +8 -0
  192. data/app/views/users/index.rhtml +7 -0
  193. data/app/views/users/preferences.html.erb +40 -0
  194. data/app/views/users/show.rjs +1 -0
  195. data/app/views/users/update.rjs +16 -0
  196. data/app/views/versions/_li.rhtml +3 -0
  197. data/app/views/versions/_list.rhtml +5 -0
  198. data/app/views/versions/_tr.rhtml +10 -0
  199. data/app/views/versions/backup.rjs +16 -0
  200. data/app/views/versions/css_preview.rjs +2 -0
  201. data/app/views/versions/destroy.rjs +6 -0
  202. data/app/views/versions/diff.rjs +3 -0
  203. data/app/views/versions/edit.rhtml +55 -0
  204. data/app/views/versions/preview.rjs +9 -0
  205. data/app/views/versions/show.rjs +5 -0
  206. data/app/views/versions/update.rjs +9 -0
  207. data/app/views/virtual_classes/_add.erb +6 -0
  208. data/app/views/virtual_classes/_form.erb +30 -0
  209. data/app/views/virtual_classes/_li.erb +12 -0
  210. data/app/views/virtual_classes/create.rjs +8 -0
  211. data/app/views/virtual_classes/destroy.rjs +6 -0
  212. data/app/views/virtual_classes/index.erb +7 -0
  213. data/app/views/virtual_classes/new.erb +2 -0
  214. data/app/views/virtual_classes/show.rjs +1 -0
  215. data/app/views/virtual_classes/update.rjs +5 -0
  216. data/bin/zena +5 -0
  217. data/bricks/captcha/MIT-LICENSE +19 -0
  218. data/bricks/captcha/README +11 -0
  219. data/bricks/captcha/patch/application_controller.rb +10 -0
  220. data/bricks/captcha/patch/application_helper.rb +32 -0
  221. data/bricks/captcha/patch/site.rb +2 -0
  222. data/bricks/captcha/zafu/captcha.rb +29 -0
  223. data/bricks/math/patch/application_helper.rb +95 -0
  224. data/bricks/tags/README +31 -0
  225. data/bricks/tags/lib/has_tags.rb +164 -0
  226. data/bricks/tags/patch/node.rb +15 -0
  227. data/bricks/tags/test/sites/zena/links.yml +11 -0
  228. data/bricks/tags/test/unit/tags_test.rb +103 -0
  229. data/bricks/tags/test/zafu/tags.yml +28 -0
  230. data/bricks/toto.zip +0 -0
  231. data/config/awstats.conf.rhtml +1497 -0
  232. data/config/boot.rb +109 -0
  233. data/config/database.rhtml +25 -0
  234. data/config/database.yml +40 -0
  235. data/config/database_example.yml +27 -0
  236. data/config/deploy.rb +382 -0
  237. data/config/deploy_config_example.rb +7 -0
  238. data/config/environment.rb +13 -0
  239. data/config/environments/development.rb +21 -0
  240. data/config/environments/production.rb +27 -0
  241. data/config/environments/test.rb +22 -0
  242. data/config/gems.yml +46 -0
  243. data/config/httpd.rhtml +18 -0
  244. data/config/initializers/mime_types.rb +10 -0
  245. data/config/initializers/zena.rb +1 -0
  246. data/config/locales/de.yml +120 -0
  247. data/config/locales/fr-CH.yml +123 -0
  248. data/config/locales/fr.yml +123 -0
  249. data/config/mongrel_upload_progress.conf +7 -0
  250. data/config/routes.rb +3 -0
  251. data/config/start.html +44 -0
  252. data/config/stats.vhost.rhtml +40 -0
  253. data/config/vhost.rhtml +84 -0
  254. data/config/vhost_www.rhtml +10 -0
  255. data/config/zena.rb +39 -0
  256. data/db/init/base/help.en.zml +94 -0
  257. data/db/init/base/help.fr.zml +88 -0
  258. data/db/init/base/skins.zml +3 -0
  259. data/db/init/base/skins/default.zml +10 -0
  260. data/db/init/base/skins/default/Node-+adminLayout.zafu +45 -0
  261. data/db/init/base/skins/default/Node-+index.zafu +1 -0
  262. data/db/init/base/skins/default/Node-+login.zafu +25 -0
  263. data/db/init/base/skins/default/Node-+notFound.zafu +14 -0
  264. data/db/init/base/skins/default/Node-+popupLayout.zafu +39 -0
  265. data/db/init/base/skins/default/Node-+search.zafu +20 -0
  266. data/db/init/base/skins/default/Node-tree.zafu +19 -0
  267. data/db/init/base/skins/default/Node.zafu +95 -0
  268. data/db/init/base/skins/default/Project.zafu +8 -0
  269. data/db/init/base/skins/default/favicon.png +0 -0
  270. data/db/init/base/skins/default/notes.zafu +22 -0
  271. data/db/init/base/skins/default/style.css +80 -0
  272. data/db/migrate/001_create_base.rb +156 -0
  273. data/db/migrate/002_add_time_zone_to_users.rb +9 -0
  274. data/db/migrate/003_add_custom_base_flag.rb +11 -0
  275. data/db/migrate/004_rename_template_skin.rb +9 -0
  276. data/db/migrate/005_create_cached_pages.rb +20 -0
  277. data/db/migrate/006_create_sites.rb +60 -0
  278. data/db/migrate/007_replace_id_by_zip.rb +17 -0
  279. data/db/migrate/008_user_status.rb +10 -0
  280. data/db/migrate/009_fulltext.rb +13 -0
  281. data/db/migrate/010_create_template_content.rb +17 -0
  282. data/db/migrate/011_project_to_section.rb +9 -0
  283. data/db/migrate/012_add_project_id.rb +12 -0
  284. data/db/migrate/013_remove_defaults.rb +29 -0
  285. data/db/migrate/014_add_sort_field.rb +10 -0
  286. data/db/migrate/015_add_dyn_attributes.rb +18 -0
  287. data/db/migrate/016_remove_translations.rb +20 -0
  288. data/db/migrate/017_rename_authorize.rb +9 -0
  289. data/db/migrate/018_add_auth_option.rb +9 -0
  290. data/db/migrate/019_remove_user_status.rb +25 -0
  291. data/db/migrate/020_create_participation.rb +30 -0
  292. data/db/migrate/021_create_relations.rb +23 -0
  293. data/db/migrate/022_create_virtual_classes.rb +20 -0
  294. data/db/migrate/023_ip_on_anonymous_comment.rb +9 -0
  295. data/db/migrate/024_correct_vclass_kpath.rb +11 -0
  296. data/db/migrate/025_move_tag_into_vclass.rb +13 -0
  297. data/db/migrate/026_rename_templates.rb +47 -0
  298. data/db/migrate/027_add_country_to_contacts.rb +9 -0
  299. data/db/migrate/028_change_size_of_conten_type_field.rb +9 -0
  300. data/db/migrate/029_create_data_entries.rb +21 -0
  301. data/db/migrate/030_redit_auto_publish_site_settings.rb +13 -0
  302. data/db/migrate/031_create_iformats.rb +21 -0
  303. data/db/migrate/032_caches_context_as_hash.rb +10 -0
  304. data/db/migrate/033_documents_kpath_change.rb +17 -0
  305. data/db/migrate/034_change_file_storage.rb +38 -0
  306. data/db/migrate/035_add_status_to_link.rb +13 -0
  307. data/db/migrate/036_add_flag_fields_on_nodes.rb +11 -0
  308. data/db/migrate/037_add_auto_create_discussion_to_v_class.rb +11 -0
  309. data/db/migrate/038_create_site_attributes.rb +15 -0
  310. data/db/migrate/039_default_position.rb +10 -0
  311. data/db/migrate/040_second_value_for_data_entry.rb +11 -0
  312. data/db/migrate/041_add_attributes_to_v_class.rb +9 -0
  313. data/db/migrate/042_fix_position_should_be_float.rb +8 -0
  314. data/db/migrate/043_move_user_lang_into_participation.rb +15 -0
  315. data/db/migrate/044_remove_monolingual_site_option.rb +9 -0
  316. data/db/migrate/045_avoid_star_in_templates.rb +13 -0
  317. data/db/migrate/046_fix_zazen_image_tag.rb +47 -0
  318. data/db/migrate/047_change_default_link_id_to_zero.rb +12 -0
  319. data/db/migrate/048_link_source_target_can_be_null.rb +11 -0
  320. data/db/migrate/049_fix_publish_from_is_null.rb +9 -0
  321. data/db/migrate/050_date_in_links.rb +9 -0
  322. data/db/migrate/051_add_exif_tags_to_images.rb +9 -0
  323. data/db/migrate/20090825201159_insert_zero_link.rb +8 -0
  324. data/db/migrate/20090825201200_merge_bricks_migrations_with_std_migrations.rb +19 -0
  325. data/db/migrate/20090924141459_zafu_fix_sept09.rb +19 -0
  326. data/db/migrate/20090927125912_allow_null_in_text_fields.rb +17 -0
  327. data/db/migrate/20090928133440_no_more_private_nodes.rb +25 -0
  328. data/db/migrate/20090928143754_version_status_change.rb +24 -0
  329. data/db/migrate/20091001084025_change_status_values_for_comments.rb +22 -0
  330. data/db/migrate/20091009084057_add_vhash_in_node.rb +13 -0
  331. data/db/migrate/20091013100351_rename_publish_group_to_drive_group.rb +12 -0
  332. data/db/migrate/20091014130833_fix_template_title.rb +16 -0
  333. data/db/migrate/20091014183726_merge_participation_into_users.rb +21 -0
  334. data/db/production.sqlite3 +0 -0
  335. data/db/schema.rb +281 -0
  336. data/lib/base_additions.rb +7 -0
  337. data/lib/bricks/patcher.rb +68 -0
  338. data/lib/comment_query.rb +92 -0
  339. data/lib/core_ext/date_time.rb +5 -0
  340. data/lib/core_ext/dir.rb +12 -0
  341. data/lib/core_ext/fixnum.rb +20 -0
  342. data/lib/core_ext/string.rb +74 -0
  343. data/lib/exif_data.rb +54 -0
  344. data/lib/fix_rails_layouts.rb +9 -0
  345. data/lib/gettext_strings.rb +160 -0
  346. data/lib/image_builder.rb +325 -0
  347. data/lib/log_recorder/lib/log_recorder.rb +138 -0
  348. data/lib/log_recorder/test/log_recorder_test.rb +0 -0
  349. data/lib/parser.rb +1 -0
  350. data/lib/tasks/capistrano.rake +99 -0
  351. data/lib/tasks/zena.rake +358 -0
  352. data/lib/tasks/zena.rb +2 -0
  353. data/lib/upload_progress_server.rb +24 -0
  354. data/lib/webdav_adapter.rb +172 -0
  355. data/lib/zafu_parser.rb +3 -0
  356. data/lib/zazen_parser.rb +1 -0
  357. data/lib/zena.rb +398 -0
  358. data/lib/zena/acts/multiversion.rb +755 -0
  359. data/lib/zena/acts/secure.rb +774 -0
  360. data/lib/zena/app.rb +39 -0
  361. data/lib/zena/code_syntax.rb +275 -0
  362. data/lib/zena/controller/test_case.rb +32 -0
  363. data/lib/zena/db.rb +252 -0
  364. data/lib/zena/fix/mysql_connection.rb +17 -0
  365. data/lib/zena/foxy_parser.rb +845 -0
  366. data/lib/zena/migrator.rb +109 -0
  367. data/lib/zena/parser.rb +601 -0
  368. data/lib/zena/parser/zafu_rules.rb +232 -0
  369. data/lib/zena/parser/zafu_tags.rb +197 -0
  370. data/lib/zena/parser/zazen_rules.rb +427 -0
  371. data/lib/zena/parser/zazen_tags.rb +44 -0
  372. data/lib/zena/parser/zena_rules.rb +29 -0
  373. data/lib/zena/parser/zena_tags.rb +3559 -0
  374. data/lib/zena/root.rb +3 -0
  375. data/lib/zena/routes.rb +73 -0
  376. data/lib/zena/test_controller.rb +74 -0
  377. data/lib/zena/unit/test_case.rb +24 -0
  378. data/lib/zena/use/ajax.rb +119 -0
  379. data/lib/zena/use/authentification.rb +120 -0
  380. data/lib/zena/use/calendar.rb +130 -0
  381. data/lib/zena/use/custom_queries/complex.host.yml +173 -0
  382. data/lib/zena/use/dates.rb +230 -0
  383. data/lib/zena/use/dyn_attributes.rb +256 -0
  384. data/lib/zena/use/error_rendering.rb +52 -0
  385. data/lib/zena/use/fixtures.rb +133 -0
  386. data/lib/zena/use/grid.rb +148 -0
  387. data/lib/zena/use/html_tags.rb +603 -0
  388. data/lib/zena/use/i18n.rb +247 -0
  389. data/lib/zena/use/nested_attributes_alias.rb +201 -0
  390. data/lib/zena/use/node_query_finders.rb +491 -0
  391. data/lib/zena/use/refactor.rb +231 -0
  392. data/lib/zena/use/relations.rb +360 -0
  393. data/lib/zena/use/rendering.rb +248 -0
  394. data/lib/zena/use/test_helper.rb +151 -0
  395. data/lib/zena/use/urls.rb +180 -0
  396. data/lib/zena/use/zafu.rb +549 -0
  397. data/lib/zena/use/zazen.rb +230 -0
  398. data/lib/zena/view/test_case.rb +23 -0
  399. data/locale/en/LC_MESSAGES/zena.mo +0 -0
  400. data/locale/en/zena.po +2116 -0
  401. data/locale/fr/LC_MESSAGES/zena.mo +0 -0
  402. data/locale/fr/zena.po +2172 -0
  403. data/locale/zena.pot +1915 -0
  404. data/public/calendar/calendar-brown.css +225 -0
  405. data/public/calendar/calendar-setup.js +153 -0
  406. data/public/calendar/calendar.js +1817 -0
  407. data/public/calendar/iconCalendar.gif +0 -0
  408. data/public/calendar/lang/calendar-en-utf8.js +128 -0
  409. data/public/calendar/lang/calendar-fr-utf8.js +120 -0
  410. data/public/calendar/lang/lang.zip +0 -0
  411. data/public/dispatch.cgi +10 -0
  412. data/public/dispatch.fcgi +24 -0
  413. data/public/dispatch.rb +10 -0
  414. data/public/favicon.ico +0 -0
  415. data/public/images/accept.png +0 -0
  416. data/public/images/action.png +0 -0
  417. data/public/images/add.png +0 -0
  418. data/public/images/ajax-loader.gif +0 -0
  419. data/public/images/anchor.png +0 -0
  420. data/public/images/application.png +0 -0
  421. data/public/images/application_add.png +0 -0
  422. data/public/images/application_cascade.png +0 -0
  423. data/public/images/application_delete.png +0 -0
  424. data/public/images/application_double.png +0 -0
  425. data/public/images/application_edit.png +0 -0
  426. data/public/images/application_error.png +0 -0
  427. data/public/images/application_form.png +0 -0
  428. data/public/images/application_form_add.png +0 -0
  429. data/public/images/application_form_delete.png +0 -0
  430. data/public/images/application_form_edit.png +0 -0
  431. data/public/images/application_form_magnify.png +0 -0
  432. data/public/images/application_get.png +0 -0
  433. data/public/images/application_go.png +0 -0
  434. data/public/images/application_home.png +0 -0
  435. data/public/images/application_key.png +0 -0
  436. data/public/images/application_lightning.png +0 -0
  437. data/public/images/application_link.png +0 -0
  438. data/public/images/application_osx.png +0 -0
  439. data/public/images/application_osx_terminal.png +0 -0
  440. data/public/images/application_put.png +0 -0
  441. data/public/images/application_side_boxes.png +0 -0
  442. data/public/images/application_side_contract.png +0 -0
  443. data/public/images/application_side_expand.png +0 -0
  444. data/public/images/application_side_list.png +0 -0
  445. data/public/images/application_side_tree.png +0 -0
  446. data/public/images/application_split.png +0 -0
  447. data/public/images/application_tile_horizontal.png +0 -0
  448. data/public/images/application_tile_vertical.png +0 -0
  449. data/public/images/application_view_columns.png +0 -0
  450. data/public/images/application_view_detail.png +0 -0
  451. data/public/images/application_view_gallery.png +0 -0
  452. data/public/images/application_view_icons.png +0 -0
  453. data/public/images/application_view_list.png +0 -0
  454. data/public/images/application_view_tile.png +0 -0
  455. data/public/images/application_xp.png +0 -0
  456. data/public/images/application_xp_terminal.png +0 -0
  457. data/public/images/arrow_branch.png +0 -0
  458. data/public/images/arrow_divide.png +0 -0
  459. data/public/images/arrow_down.png +0 -0
  460. data/public/images/arrow_in.png +0 -0
  461. data/public/images/arrow_inout.png +0 -0
  462. data/public/images/arrow_join.png +0 -0
  463. data/public/images/arrow_left.png +0 -0
  464. data/public/images/arrow_merge.png +0 -0
  465. data/public/images/arrow_out.png +0 -0
  466. data/public/images/arrow_redo.png +0 -0
  467. data/public/images/arrow_refresh.png +0 -0
  468. data/public/images/arrow_refresh_small.png +0 -0
  469. data/public/images/arrow_right.png +0 -0
  470. data/public/images/arrow_rotate_anticlockwise.png +0 -0
  471. data/public/images/arrow_rotate_clockwise.png +0 -0
  472. data/public/images/arrow_switch.png +0 -0
  473. data/public/images/arrow_turn_left.png +0 -0
  474. data/public/images/arrow_turn_right.png +0 -0
  475. data/public/images/arrow_undo.png +0 -0
  476. data/public/images/arrow_up.png +0 -0
  477. data/public/images/asterisk_orange.png +0 -0
  478. data/public/images/asterisk_yellow.png +0 -0
  479. data/public/images/attach.png +0 -0
  480. data/public/images/award_star_add.png +0 -0
  481. data/public/images/award_star_bronze_1.png +0 -0
  482. data/public/images/award_star_bronze_2.png +0 -0
  483. data/public/images/award_star_bronze_3.png +0 -0
  484. data/public/images/award_star_delete.png +0 -0
  485. data/public/images/award_star_gold_1.png +0 -0
  486. data/public/images/award_star_gold_2.png +0 -0
  487. data/public/images/award_star_gold_3.png +0 -0
  488. data/public/images/award_star_silver_1.png +0 -0
  489. data/public/images/award_star_silver_2.png +0 -0
  490. data/public/images/award_star_silver_3.png +0 -0
  491. data/public/images/basket.png +0 -0
  492. data/public/images/basket_add.png +0 -0
  493. data/public/images/basket_delete.png +0 -0
  494. data/public/images/basket_edit.png +0 -0
  495. data/public/images/basket_error.png +0 -0
  496. data/public/images/basket_go.png +0 -0
  497. data/public/images/basket_put.png +0 -0
  498. data/public/images/basket_remove.png +0 -0
  499. data/public/images/bell.png +0 -0
  500. data/public/images/bell_add.png +0 -0
  501. data/public/images/bell_delete.png +0 -0
  502. data/public/images/bell_error.png +0 -0
  503. data/public/images/bell_go.png +0 -0
  504. data/public/images/bell_link.png +0 -0
  505. data/public/images/bin.png +0 -0
  506. data/public/images/bin_closed.png +0 -0
  507. data/public/images/bin_empty.gif +0 -0
  508. data/public/images/bin_empty.png +0 -0
  509. data/public/images/bin_full.gif +0 -0
  510. data/public/images/bomb.png +0 -0
  511. data/public/images/book.png +0 -0
  512. data/public/images/book_add.png +0 -0
  513. data/public/images/book_addresses.png +0 -0
  514. data/public/images/book_delete.png +0 -0
  515. data/public/images/book_edit.png +0 -0
  516. data/public/images/book_error.png +0 -0
  517. data/public/images/book_go.png +0 -0
  518. data/public/images/book_key.png +0 -0
  519. data/public/images/book_link.png +0 -0
  520. data/public/images/book_next.png +0 -0
  521. data/public/images/book_open.png +0 -0
  522. data/public/images/book_previous.png +0 -0
  523. data/public/images/box.png +0 -0
  524. data/public/images/brick.png +0 -0
  525. data/public/images/brick_add.png +0 -0
  526. data/public/images/brick_delete.png +0 -0
  527. data/public/images/brick_edit.png +0 -0
  528. data/public/images/brick_error.png +0 -0
  529. data/public/images/brick_go.png +0 -0
  530. data/public/images/brick_link.png +0 -0
  531. data/public/images/bricks.png +0 -0
  532. data/public/images/briefcase.png +0 -0
  533. data/public/images/bug.png +0 -0
  534. data/public/images/bug_add.png +0 -0
  535. data/public/images/bug_delete.png +0 -0
  536. data/public/images/bug_edit.png +0 -0
  537. data/public/images/bug_error.png +0 -0
  538. data/public/images/bug_go.png +0 -0
  539. data/public/images/bug_link.png +0 -0
  540. data/public/images/building.png +0 -0
  541. data/public/images/building_add.png +0 -0
  542. data/public/images/building_delete.png +0 -0
  543. data/public/images/building_edit.png +0 -0
  544. data/public/images/building_error.png +0 -0
  545. data/public/images/building_go.png +0 -0
  546. data/public/images/building_key.png +0 -0
  547. data/public/images/building_link.png +0 -0
  548. data/public/images/bullet_add.png +0 -0
  549. data/public/images/bullet_arrow_bottom.png +0 -0
  550. data/public/images/bullet_arrow_down.png +0 -0
  551. data/public/images/bullet_arrow_top.png +0 -0
  552. data/public/images/bullet_arrow_up.png +0 -0
  553. data/public/images/bullet_black.png +0 -0
  554. data/public/images/bullet_blue.png +0 -0
  555. data/public/images/bullet_delete.png +0 -0
  556. data/public/images/bullet_disk.png +0 -0
  557. data/public/images/bullet_error.png +0 -0
  558. data/public/images/bullet_feed.png +0 -0
  559. data/public/images/bullet_go.png +0 -0
  560. data/public/images/bullet_green.png +0 -0
  561. data/public/images/bullet_key.png +0 -0
  562. data/public/images/bullet_orange.png +0 -0
  563. data/public/images/bullet_picture.png +0 -0
  564. data/public/images/bullet_pink.png +0 -0
  565. data/public/images/bullet_purple.png +0 -0
  566. data/public/images/bullet_red.png +0 -0
  567. data/public/images/bullet_star.png +0 -0
  568. data/public/images/bullet_toggle_minus.png +0 -0
  569. data/public/images/bullet_toggle_plus.png +0 -0
  570. data/public/images/bullet_white.png +0 -0
  571. data/public/images/bullet_wrench.png +0 -0
  572. data/public/images/bullet_yellow.png +0 -0
  573. data/public/images/cake.png +0 -0
  574. data/public/images/calculator.png +0 -0
  575. data/public/images/calculator_add.png +0 -0
  576. data/public/images/calculator_delete.png +0 -0
  577. data/public/images/calculator_edit.png +0 -0
  578. data/public/images/calculator_error.png +0 -0
  579. data/public/images/calculator_link.png +0 -0
  580. data/public/images/calendar.png +0 -0
  581. data/public/images/calendar_add.png +0 -0
  582. data/public/images/calendar_delete.png +0 -0
  583. data/public/images/calendar_edit.png +0 -0
  584. data/public/images/calendar_link.png +0 -0
  585. data/public/images/calendar_view_day.png +0 -0
  586. data/public/images/calendar_view_month.png +0 -0
  587. data/public/images/calendar_view_week.png +0 -0
  588. data/public/images/camera.png +0 -0
  589. data/public/images/camera_add.png +0 -0
  590. data/public/images/camera_delete.png +0 -0
  591. data/public/images/camera_edit.png +0 -0
  592. data/public/images/camera_error.png +0 -0
  593. data/public/images/camera_go.png +0 -0
  594. data/public/images/camera_link.png +0 -0
  595. data/public/images/camera_small.png +0 -0
  596. data/public/images/cancel.png +0 -0
  597. data/public/images/car.png +0 -0
  598. data/public/images/car_add.png +0 -0
  599. data/public/images/car_delete.png +0 -0
  600. data/public/images/cart.png +0 -0
  601. data/public/images/cart_add.png +0 -0
  602. data/public/images/cart_delete.png +0 -0
  603. data/public/images/cart_edit.png +0 -0
  604. data/public/images/cart_error.png +0 -0
  605. data/public/images/cart_go.png +0 -0
  606. data/public/images/cart_put.png +0 -0
  607. data/public/images/cart_remove.png +0 -0
  608. data/public/images/cd.png +0 -0
  609. data/public/images/cd_add.png +0 -0
  610. data/public/images/cd_burn.png +0 -0
  611. data/public/images/cd_delete.png +0 -0
  612. data/public/images/cd_edit.png +0 -0
  613. data/public/images/cd_eject.png +0 -0
  614. data/public/images/cd_go.png +0 -0
  615. data/public/images/chart_bar.png +0 -0
  616. data/public/images/chart_bar_add.png +0 -0
  617. data/public/images/chart_bar_delete.png +0 -0
  618. data/public/images/chart_bar_edit.png +0 -0
  619. data/public/images/chart_bar_error.png +0 -0
  620. data/public/images/chart_bar_link.png +0 -0
  621. data/public/images/chart_curve.png +0 -0
  622. data/public/images/chart_curve_add.png +0 -0
  623. data/public/images/chart_curve_delete.png +0 -0
  624. data/public/images/chart_curve_edit.png +0 -0
  625. data/public/images/chart_curve_error.png +0 -0
  626. data/public/images/chart_curve_go.png +0 -0
  627. data/public/images/chart_curve_link.png +0 -0
  628. data/public/images/chart_line.png +0 -0
  629. data/public/images/chart_line_add.png +0 -0
  630. data/public/images/chart_line_delete.png +0 -0
  631. data/public/images/chart_line_edit.png +0 -0
  632. data/public/images/chart_line_error.png +0 -0
  633. data/public/images/chart_line_link.png +0 -0
  634. data/public/images/chart_organisation.png +0 -0
  635. data/public/images/chart_organisation_add.png +0 -0
  636. data/public/images/chart_organisation_delete.png +0 -0
  637. data/public/images/chart_pie.png +0 -0
  638. data/public/images/chart_pie_add.png +0 -0
  639. data/public/images/chart_pie_delete.png +0 -0
  640. data/public/images/chart_pie_edit.png +0 -0
  641. data/public/images/chart_pie_error.png +0 -0
  642. data/public/images/chart_pie_link.png +0 -0
  643. data/public/images/clock.png +0 -0
  644. data/public/images/clock_add.png +0 -0
  645. data/public/images/clock_delete.png +0 -0
  646. data/public/images/clock_edit.png +0 -0
  647. data/public/images/clock_error.png +0 -0
  648. data/public/images/clock_go.png +0 -0
  649. data/public/images/clock_link.png +0 -0
  650. data/public/images/clock_pause.png +0 -0
  651. data/public/images/clock_play.png +0 -0
  652. data/public/images/clock_red.png +0 -0
  653. data/public/images/clock_stop.png +0 -0
  654. data/public/images/cog.png +0 -0
  655. data/public/images/cog_add.png +0 -0
  656. data/public/images/cog_delete.png +0 -0
  657. data/public/images/cog_edit.png +0 -0
  658. data/public/images/cog_error.png +0 -0
  659. data/public/images/cog_go.png +0 -0
  660. data/public/images/coins.png +0 -0
  661. data/public/images/coins_add.png +0 -0
  662. data/public/images/coins_delete.png +0 -0
  663. data/public/images/collection.png +0 -0
  664. data/public/images/color_swatch.png +0 -0
  665. data/public/images/color_wheel.png +0 -0
  666. data/public/images/column_add.png +0 -0
  667. data/public/images/column_delete.png +0 -0
  668. data/public/images/comment.png +0 -0
  669. data/public/images/comment_add.png +0 -0
  670. data/public/images/comment_delete.png +0 -0
  671. data/public/images/comment_edit.png +0 -0
  672. data/public/images/comments.png +0 -0
  673. data/public/images/comments_add.png +0 -0
  674. data/public/images/comments_delete.png +0 -0
  675. data/public/images/comments_red.png +0 -0
  676. data/public/images/compress.png +0 -0
  677. data/public/images/computer.png +0 -0
  678. data/public/images/computer_add.png +0 -0
  679. data/public/images/computer_delete.png +0 -0
  680. data/public/images/computer_edit.png +0 -0
  681. data/public/images/computer_error.png +0 -0
  682. data/public/images/computer_go.png +0 -0
  683. data/public/images/computer_key.png +0 -0
  684. data/public/images/computer_link.png +0 -0
  685. data/public/images/connect.png +0 -0
  686. data/public/images/contrast.png +0 -0
  687. data/public/images/contrast_decrease.png +0 -0
  688. data/public/images/contrast_high.png +0 -0
  689. data/public/images/contrast_increase.png +0 -0
  690. data/public/images/contrast_low.png +0 -0
  691. data/public/images/control_eject.png +0 -0
  692. data/public/images/control_eject_blue.png +0 -0
  693. data/public/images/control_end.png +0 -0
  694. data/public/images/control_end_blue.png +0 -0
  695. data/public/images/control_equalizer.png +0 -0
  696. data/public/images/control_equalizer_blue.png +0 -0
  697. data/public/images/control_fastforward.png +0 -0
  698. data/public/images/control_fastforward_blue.png +0 -0
  699. data/public/images/control_pause.png +0 -0
  700. data/public/images/control_pause_blue.png +0 -0
  701. data/public/images/control_play.png +0 -0
  702. data/public/images/control_play_blue.png +0 -0
  703. data/public/images/control_repeat.png +0 -0
  704. data/public/images/control_repeat_blue.png +0 -0
  705. data/public/images/control_rewind.png +0 -0
  706. data/public/images/control_rewind_blue.png +0 -0
  707. data/public/images/control_start.png +0 -0
  708. data/public/images/control_start_blue.png +0 -0
  709. data/public/images/control_stop.png +0 -0
  710. data/public/images/control_stop_blue.png +0 -0
  711. data/public/images/controller.png +0 -0
  712. data/public/images/controller_add.png +0 -0
  713. data/public/images/controller_delete.png +0 -0
  714. data/public/images/controller_error.png +0 -0
  715. data/public/images/creditcards.png +0 -0
  716. data/public/images/cross.png +0 -0
  717. data/public/images/css.png +0 -0
  718. data/public/images/css_add.png +0 -0
  719. data/public/images/css_delete.png +0 -0
  720. data/public/images/css_go.png +0 -0
  721. data/public/images/css_valid.png +0 -0
  722. data/public/images/cup.png +0 -0
  723. data/public/images/cup_add.png +0 -0
  724. data/public/images/cup_delete.png +0 -0
  725. data/public/images/cup_edit.png +0 -0
  726. data/public/images/cup_error.png +0 -0
  727. data/public/images/cup_go.png +0 -0
  728. data/public/images/cup_key.png +0 -0
  729. data/public/images/cup_link.png +0 -0
  730. data/public/images/cursor.png +0 -0
  731. data/public/images/cut.png +0 -0
  732. data/public/images/cut_red.png +0 -0
  733. data/public/images/database.png +0 -0
  734. data/public/images/database_add.png +0 -0
  735. data/public/images/database_connect.png +0 -0
  736. data/public/images/database_delete.png +0 -0
  737. data/public/images/database_edit.png +0 -0
  738. data/public/images/database_error.png +0 -0
  739. data/public/images/database_gear.png +0 -0
  740. data/public/images/database_go.png +0 -0
  741. data/public/images/database_key.png +0 -0
  742. data/public/images/database_lightning.png +0 -0
  743. data/public/images/database_link.png +0 -0
  744. data/public/images/database_refresh.png +0 -0
  745. data/public/images/database_save.png +0 -0
  746. data/public/images/database_table.png +0 -0
  747. data/public/images/date.png +0 -0
  748. data/public/images/date_add.png +0 -0
  749. data/public/images/date_delete.png +0 -0
  750. data/public/images/date_edit.png +0 -0
  751. data/public/images/date_error.png +0 -0
  752. data/public/images/date_go.png +0 -0
  753. data/public/images/date_link.png +0 -0
  754. data/public/images/date_magnify.png +0 -0
  755. data/public/images/date_next.png +0 -0
  756. data/public/images/date_previous.png +0 -0
  757. data/public/images/delete.png +0 -0
  758. data/public/images/disconnect.png +0 -0
  759. data/public/images/disk.png +0 -0
  760. data/public/images/disk_multiple.png +0 -0
  761. data/public/images/door.png +0 -0
  762. data/public/images/door_in.png +0 -0
  763. data/public/images/door_open.png +0 -0
  764. data/public/images/door_out.png +0 -0
  765. data/public/images/drink.png +0 -0
  766. data/public/images/drink_empty.png +0 -0
  767. data/public/images/drive.png +0 -0
  768. data/public/images/drive_add.png +0 -0
  769. data/public/images/drive_burn.png +0 -0
  770. data/public/images/drive_cd.png +0 -0
  771. data/public/images/drive_cd_empty.png +0 -0
  772. data/public/images/drive_delete.png +0 -0
  773. data/public/images/drive_disk.png +0 -0
  774. data/public/images/drive_edit.png +0 -0
  775. data/public/images/drive_error.png +0 -0
  776. data/public/images/drive_go.png +0 -0
  777. data/public/images/drive_key.png +0 -0
  778. data/public/images/drive_link.png +0 -0
  779. data/public/images/drive_magnify.png +0 -0
  780. data/public/images/drive_network.png +0 -0
  781. data/public/images/drive_rename.png +0 -0
  782. data/public/images/drive_user.png +0 -0
  783. data/public/images/drive_web.png +0 -0
  784. data/public/images/dvd.png +0 -0
  785. data/public/images/dvd_add.png +0 -0
  786. data/public/images/dvd_delete.png +0 -0
  787. data/public/images/dvd_edit.png +0 -0
  788. data/public/images/dvd_error.png +0 -0
  789. data/public/images/dvd_go.png +0 -0
  790. data/public/images/dvd_key.png +0 -0
  791. data/public/images/dvd_link.png +0 -0
  792. data/public/images/email.png +0 -0
  793. data/public/images/email_add.png +0 -0
  794. data/public/images/email_attach.png +0 -0
  795. data/public/images/email_delete.png +0 -0
  796. data/public/images/email_edit.png +0 -0
  797. data/public/images/email_error.png +0 -0
  798. data/public/images/email_go.png +0 -0
  799. data/public/images/email_link.png +0 -0
  800. data/public/images/email_open.png +0 -0
  801. data/public/images/email_open_image.png +0 -0
  802. data/public/images/emoticon_evilgrin.png +0 -0
  803. data/public/images/emoticon_grin.png +0 -0
  804. data/public/images/emoticon_happy.png +0 -0
  805. data/public/images/emoticon_smile.png +0 -0
  806. data/public/images/emoticon_surprised.png +0 -0
  807. data/public/images/emoticon_tongue.png +0 -0
  808. data/public/images/emoticon_unhappy.png +0 -0
  809. data/public/images/emoticon_waii.png +0 -0
  810. data/public/images/emoticon_wink.png +0 -0
  811. data/public/images/error.png +0 -0
  812. data/public/images/error_add.png +0 -0
  813. data/public/images/error_delete.png +0 -0
  814. data/public/images/error_go.png +0 -0
  815. data/public/images/exclamation.png +0 -0
  816. data/public/images/ext/contact.png +0 -0
  817. data/public/images/ext/contact_pv.png +0 -0
  818. data/public/images/ext/doc.png +0 -0
  819. data/public/images/ext/doc_tiny.png +0 -0
  820. data/public/images/ext/jpg.png +0 -0
  821. data/public/images/ext/jpg_tiny.png +0 -0
  822. data/public/images/ext/other.png +0 -0
  823. data/public/images/ext/other_pv.png +0 -0
  824. data/public/images/ext/other_tiny.png +0 -0
  825. data/public/images/ext/page.png +0 -0
  826. data/public/images/ext/page_pv.png +0 -0
  827. data/public/images/ext/page_tiny.png +0 -0
  828. data/public/images/ext/pdf.png +0 -0
  829. data/public/images/ext/pdf_pv.png +0 -0
  830. data/public/images/ext/pdf_tiny.png +0 -0
  831. data/public/images/ext/png.png +0 -0
  832. data/public/images/ext/png_tiny.png +0 -0
  833. data/public/images/ext/post.png +0 -0
  834. data/public/images/ext/post_pv.png +0 -0
  835. data/public/images/ext/post_tiny.png +0 -0
  836. data/public/images/ext/project.png +0 -0
  837. data/public/images/ext/project_pv.png +0 -0
  838. data/public/images/ext/project_tiny.png +0 -0
  839. data/public/images/ext/rtf.png +0 -0
  840. data/public/images/ext/rtf_tiny.png +0 -0
  841. data/public/images/ext/tag.png +0 -0
  842. data/public/images/ext/tag_pv.png +0 -0
  843. data/public/images/ext/xls.png +0 -0
  844. data/public/images/ext/xls_tiny.png +0 -0
  845. data/public/images/ext/zip.png +0 -0
  846. data/public/images/ext/zip_pv.png +0 -0
  847. data/public/images/ext/zip_tiny.png +0 -0
  848. data/public/images/eye.png +0 -0
  849. data/public/images/feed.png +0 -0
  850. data/public/images/feed_add.png +0 -0
  851. data/public/images/feed_delete.png +0 -0
  852. data/public/images/feed_disk.png +0 -0
  853. data/public/images/feed_edit.png +0 -0
  854. data/public/images/feed_error.png +0 -0
  855. data/public/images/feed_go.png +0 -0
  856. data/public/images/feed_key.png +0 -0
  857. data/public/images/feed_link.png +0 -0
  858. data/public/images/feed_magnify.png +0 -0
  859. data/public/images/female.png +0 -0
  860. data/public/images/film.png +0 -0
  861. data/public/images/film_add.png +0 -0
  862. data/public/images/film_delete.png +0 -0
  863. data/public/images/film_edit.png +0 -0
  864. data/public/images/film_error.png +0 -0
  865. data/public/images/film_go.png +0 -0
  866. data/public/images/film_key.png +0 -0
  867. data/public/images/film_link.png +0 -0
  868. data/public/images/film_save.png +0 -0
  869. data/public/images/find.png +0 -0
  870. data/public/images/flag_blue.png +0 -0
  871. data/public/images/flag_green.png +0 -0
  872. data/public/images/flag_orange.png +0 -0
  873. data/public/images/flag_pink.png +0 -0
  874. data/public/images/flag_purple.png +0 -0
  875. data/public/images/flag_red.png +0 -0
  876. data/public/images/flag_yellow.png +0 -0
  877. data/public/images/folder.png +0 -0
  878. data/public/images/folder_add.png +0 -0
  879. data/public/images/folder_bell.png +0 -0
  880. data/public/images/folder_brick.png +0 -0
  881. data/public/images/folder_bug.png +0 -0
  882. data/public/images/folder_camera.png +0 -0
  883. data/public/images/folder_database.png +0 -0
  884. data/public/images/folder_delete.png +0 -0
  885. data/public/images/folder_edit.png +0 -0
  886. data/public/images/folder_error.png +0 -0
  887. data/public/images/folder_explore.png +0 -0
  888. data/public/images/folder_feed.png +0 -0
  889. data/public/images/folder_find.png +0 -0
  890. data/public/images/folder_go.png +0 -0
  891. data/public/images/folder_heart.png +0 -0
  892. data/public/images/folder_image.png +0 -0
  893. data/public/images/folder_key.png +0 -0
  894. data/public/images/folder_lightbulb.png +0 -0
  895. data/public/images/folder_link.png +0 -0
  896. data/public/images/folder_magnify.png +0 -0
  897. data/public/images/folder_page.png +0 -0
  898. data/public/images/folder_page_white.png +0 -0
  899. data/public/images/folder_palette.png +0 -0
  900. data/public/images/folder_picture.png +0 -0
  901. data/public/images/folder_star.png +0 -0
  902. data/public/images/folder_table.png +0 -0
  903. data/public/images/folder_user.png +0 -0
  904. data/public/images/folder_wrench.png +0 -0
  905. data/public/images/font.png +0 -0
  906. data/public/images/font_add.png +0 -0
  907. data/public/images/font_delete.png +0 -0
  908. data/public/images/font_go.png +0 -0
  909. data/public/images/group.png +0 -0
  910. data/public/images/group_add.png +0 -0
  911. data/public/images/group_admin.png +0 -0
  912. data/public/images/group_delete.png +0 -0
  913. data/public/images/group_edit.png +0 -0
  914. data/public/images/group_error.png +0 -0
  915. data/public/images/group_gear.png +0 -0
  916. data/public/images/group_go.png +0 -0
  917. data/public/images/group_key.png +0 -0
  918. data/public/images/group_link.png +0 -0
  919. data/public/images/group_pub.png +0 -0
  920. data/public/images/group_site.png +0 -0
  921. data/public/images/heart.png +0 -0
  922. data/public/images/heart_add.png +0 -0
  923. data/public/images/heart_delete.png +0 -0
  924. data/public/images/help.png +0 -0
  925. data/public/images/home.png +0 -0
  926. data/public/images/hourglass.png +0 -0
  927. data/public/images/hourglass_add.png +0 -0
  928. data/public/images/hourglass_delete.png +0 -0
  929. data/public/images/hourglass_go.png +0 -0
  930. data/public/images/hourglass_link.png +0 -0
  931. data/public/images/house.png +0 -0
  932. data/public/images/house_go.png +0 -0
  933. data/public/images/house_link.png +0 -0
  934. data/public/images/html.png +0 -0
  935. data/public/images/html_add.png +0 -0
  936. data/public/images/html_delete.png +0 -0
  937. data/public/images/html_go.png +0 -0
  938. data/public/images/html_valid.png +0 -0
  939. data/public/images/image.png +0 -0
  940. data/public/images/image_add.png +0 -0
  941. data/public/images/image_delete.png +0 -0
  942. data/public/images/image_edit.png +0 -0
  943. data/public/images/image_link.png +0 -0
  944. data/public/images/images.png +0 -0
  945. data/public/images/img_not_found.png +0 -0
  946. data/public/images/information.png +0 -0
  947. data/public/images/ipod.png +0 -0
  948. data/public/images/ipod_cast.png +0 -0
  949. data/public/images/ipod_cast_add.png +0 -0
  950. data/public/images/ipod_cast_delete.png +0 -0
  951. data/public/images/ipod_sound.png +0 -0
  952. data/public/images/joystick.png +0 -0
  953. data/public/images/joystick_add.png +0 -0
  954. data/public/images/joystick_delete.png +0 -0
  955. data/public/images/joystick_error.png +0 -0
  956. data/public/images/key.png +0 -0
  957. data/public/images/key_add.png +0 -0
  958. data/public/images/key_delete.png +0 -0
  959. data/public/images/key_go.png +0 -0
  960. data/public/images/keyboard.png +0 -0
  961. data/public/images/keyboard_add.png +0 -0
  962. data/public/images/keyboard_delete.png +0 -0
  963. data/public/images/keyboard_magnify.png +0 -0
  964. data/public/images/latex_error.png +0 -0
  965. data/public/images/layers.png +0 -0
  966. data/public/images/layout.png +0 -0
  967. data/public/images/layout_add.png +0 -0
  968. data/public/images/layout_content.png +0 -0
  969. data/public/images/layout_delete.png +0 -0
  970. data/public/images/layout_edit.png +0 -0
  971. data/public/images/layout_error.png +0 -0
  972. data/public/images/layout_header.png +0 -0
  973. data/public/images/layout_link.png +0 -0
  974. data/public/images/layout_sidebar.png +0 -0
  975. data/public/images/lightbulb.png +0 -0
  976. data/public/images/lightbulb_add.png +0 -0
  977. data/public/images/lightbulb_delete.png +0 -0
  978. data/public/images/lightbulb_off.png +0 -0
  979. data/public/images/lightning.png +0 -0
  980. data/public/images/lightning_add.png +0 -0
  981. data/public/images/lightning_delete.png +0 -0
  982. data/public/images/lightning_go.png +0 -0
  983. data/public/images/link.png +0 -0
  984. data/public/images/link_add.png +0 -0
  985. data/public/images/link_break.png +0 -0
  986. data/public/images/link_delete.png +0 -0
  987. data/public/images/link_edit.png +0 -0
  988. data/public/images/link_error.png +0 -0
  989. data/public/images/link_go.png +0 -0
  990. data/public/images/lock.png +0 -0
  991. data/public/images/lock_add.png +0 -0
  992. data/public/images/lock_break.png +0 -0
  993. data/public/images/lock_delete.png +0 -0
  994. data/public/images/lock_edit.png +0 -0
  995. data/public/images/lock_go.png +0 -0
  996. data/public/images/lock_open.png +0 -0
  997. data/public/images/lorry.png +0 -0
  998. data/public/images/lorry_add.png +0 -0
  999. data/public/images/lorry_delete.png +0 -0
  1000. data/public/images/lorry_error.png +0 -0
  1001. data/public/images/lorry_flatbed.png +0 -0
  1002. data/public/images/lorry_go.png +0 -0
  1003. data/public/images/lorry_link.png +0 -0
  1004. data/public/images/magifier_zoom_out.png +0 -0
  1005. data/public/images/magnifier.png +0 -0
  1006. data/public/images/magnifier_zoom_in.png +0 -0
  1007. data/public/images/male.png +0 -0
  1008. data/public/images/map.png +0 -0
  1009. data/public/images/map_add.png +0 -0
  1010. data/public/images/map_delete.png +0 -0
  1011. data/public/images/map_edit.png +0 -0
  1012. data/public/images/map_go.png +0 -0
  1013. data/public/images/map_magnify.png +0 -0
  1014. data/public/images/medal_bronze_1.png +0 -0
  1015. data/public/images/medal_bronze_2.png +0 -0
  1016. data/public/images/medal_bronze_3.png +0 -0
  1017. data/public/images/medal_bronze_add.png +0 -0
  1018. data/public/images/medal_bronze_delete.png +0 -0
  1019. data/public/images/medal_gold_1.png +0 -0
  1020. data/public/images/medal_gold_2.png +0 -0
  1021. data/public/images/medal_gold_3.png +0 -0
  1022. data/public/images/medal_gold_add.png +0 -0
  1023. data/public/images/medal_gold_delete.png +0 -0
  1024. data/public/images/medal_silver_1.png +0 -0
  1025. data/public/images/medal_silver_2.png +0 -0
  1026. data/public/images/medal_silver_3.png +0 -0
  1027. data/public/images/medal_silver_add.png +0 -0
  1028. data/public/images/medal_silver_delete.png +0 -0
  1029. data/public/images/money.png +0 -0
  1030. data/public/images/money_add.png +0 -0
  1031. data/public/images/money_delete.png +0 -0
  1032. data/public/images/money_dollar.png +0 -0
  1033. data/public/images/money_euro.png +0 -0
  1034. data/public/images/money_pound.png +0 -0
  1035. data/public/images/money_yen.png +0 -0
  1036. data/public/images/monitor.png +0 -0
  1037. data/public/images/monitor_add.png +0 -0
  1038. data/public/images/monitor_delete.png +0 -0
  1039. data/public/images/monitor_edit.png +0 -0
  1040. data/public/images/monitor_error.png +0 -0
  1041. data/public/images/monitor_go.png +0 -0
  1042. data/public/images/monitor_lightning.png +0 -0
  1043. data/public/images/monitor_link.png +0 -0
  1044. data/public/images/mouse.png +0 -0
  1045. data/public/images/mouse_add.png +0 -0
  1046. data/public/images/mouse_delete.png +0 -0
  1047. data/public/images/mouse_error.png +0 -0
  1048. data/public/images/music.png +0 -0
  1049. data/public/images/new.png +0 -0
  1050. data/public/images/newspaper.png +0 -0
  1051. data/public/images/newspaper_add.png +0 -0
  1052. data/public/images/newspaper_delete.png +0 -0
  1053. data/public/images/newspaper_go.png +0 -0
  1054. data/public/images/newspaper_link.png +0 -0
  1055. data/public/images/note.png +0 -0
  1056. data/public/images/note_add.png +0 -0
  1057. data/public/images/note_delete.png +0 -0
  1058. data/public/images/note_edit.png +0 -0
  1059. data/public/images/note_error.png +0 -0
  1060. data/public/images/note_go.png +0 -0
  1061. data/public/images/overlays.png +0 -0
  1062. data/public/images/package.png +0 -0
  1063. data/public/images/package_add.png +0 -0
  1064. data/public/images/package_delete.png +0 -0
  1065. data/public/images/package_go.png +0 -0
  1066. data/public/images/package_green.png +0 -0
  1067. data/public/images/package_link.png +0 -0
  1068. data/public/images/page.png +0 -0
  1069. data/public/images/page_add.png +0 -0
  1070. data/public/images/page_attach.png +0 -0
  1071. data/public/images/page_code.png +0 -0
  1072. data/public/images/page_copy.png +0 -0
  1073. data/public/images/page_delete.png +0 -0
  1074. data/public/images/page_edit.png +0 -0
  1075. data/public/images/page_error.png +0 -0
  1076. data/public/images/page_excel.png +0 -0
  1077. data/public/images/page_find.png +0 -0
  1078. data/public/images/page_gear.png +0 -0
  1079. data/public/images/page_go.png +0 -0
  1080. data/public/images/page_green.png +0 -0
  1081. data/public/images/page_key.png +0 -0
  1082. data/public/images/page_lightning.png +0 -0
  1083. data/public/images/page_link.png +0 -0
  1084. data/public/images/page_paintbrush.png +0 -0
  1085. data/public/images/page_paste.png +0 -0
  1086. data/public/images/page_red.png +0 -0
  1087. data/public/images/page_refresh.png +0 -0
  1088. data/public/images/page_save.png +0 -0
  1089. data/public/images/page_white.png +0 -0
  1090. data/public/images/page_white_acrobat.png +0 -0
  1091. data/public/images/page_white_actionscript.png +0 -0
  1092. data/public/images/page_white_add.png +0 -0
  1093. data/public/images/page_white_c.png +0 -0
  1094. data/public/images/page_white_camera.png +0 -0
  1095. data/public/images/page_white_cd.png +0 -0
  1096. data/public/images/page_white_code.png +0 -0
  1097. data/public/images/page_white_code_red.png +0 -0
  1098. data/public/images/page_white_coldfusion.png +0 -0
  1099. data/public/images/page_white_compressed.png +0 -0
  1100. data/public/images/page_white_copy.png +0 -0
  1101. data/public/images/page_white_cplusplus.png +0 -0
  1102. data/public/images/page_white_csharp.png +0 -0
  1103. data/public/images/page_white_cup.png +0 -0
  1104. data/public/images/page_white_database.png +0 -0
  1105. data/public/images/page_white_delete.png +0 -0
  1106. data/public/images/page_white_dvd.png +0 -0
  1107. data/public/images/page_white_edit.png +0 -0
  1108. data/public/images/page_white_error.png +0 -0
  1109. data/public/images/page_white_excel.png +0 -0
  1110. data/public/images/page_white_find.png +0 -0
  1111. data/public/images/page_white_flash.png +0 -0
  1112. data/public/images/page_white_freehand.png +0 -0
  1113. data/public/images/page_white_gear.png +0 -0
  1114. data/public/images/page_white_get.png +0 -0
  1115. data/public/images/page_white_go.png +0 -0
  1116. data/public/images/page_white_h.png +0 -0
  1117. data/public/images/page_white_horizontal.png +0 -0
  1118. data/public/images/page_white_key.png +0 -0
  1119. data/public/images/page_white_lightning.png +0 -0
  1120. data/public/images/page_white_link.png +0 -0
  1121. data/public/images/page_white_magnify.png +0 -0
  1122. data/public/images/page_white_medal.png +0 -0
  1123. data/public/images/page_white_office.png +0 -0
  1124. data/public/images/page_white_paint.png +0 -0
  1125. data/public/images/page_white_paintbrush.png +0 -0
  1126. data/public/images/page_white_paste.png +0 -0
  1127. data/public/images/page_white_php.png +0 -0
  1128. data/public/images/page_white_picture.png +0 -0
  1129. data/public/images/page_white_powerpoint.png +0 -0
  1130. data/public/images/page_white_put.png +0 -0
  1131. data/public/images/page_white_ruby.png +0 -0
  1132. data/public/images/page_white_stack.png +0 -0
  1133. data/public/images/page_white_star.png +0 -0
  1134. data/public/images/page_white_swoosh.png +0 -0
  1135. data/public/images/page_white_text.png +0 -0
  1136. data/public/images/page_white_text_width.png +0 -0
  1137. data/public/images/page_white_tux.png +0 -0
  1138. data/public/images/page_white_vector.png +0 -0
  1139. data/public/images/page_white_visualstudio.png +0 -0
  1140. data/public/images/page_white_width.png +0 -0
  1141. data/public/images/page_white_word.png +0 -0
  1142. data/public/images/page_white_world.png +0 -0
  1143. data/public/images/page_white_wrench.png +0 -0
  1144. data/public/images/page_white_zip.png +0 -0
  1145. data/public/images/page_word.png +0 -0
  1146. data/public/images/page_world.png +0 -0
  1147. data/public/images/paintbrush.png +0 -0
  1148. data/public/images/paintcan.png +0 -0
  1149. data/public/images/palette.png +0 -0
  1150. data/public/images/paste_plain.png +0 -0
  1151. data/public/images/paste_word.png +0 -0
  1152. data/public/images/pencil.png +0 -0
  1153. data/public/images/pencil_add.png +0 -0
  1154. data/public/images/pencil_delete.png +0 -0
  1155. data/public/images/pencil_go.png +0 -0
  1156. data/public/images/phone.png +0 -0
  1157. data/public/images/phone_add.png +0 -0
  1158. data/public/images/phone_delete.png +0 -0
  1159. data/public/images/phone_sound.png +0 -0
  1160. data/public/images/photo.png +0 -0
  1161. data/public/images/photo_add.png +0 -0
  1162. data/public/images/photo_blue.png +0 -0
  1163. data/public/images/photo_delete.png +0 -0
  1164. data/public/images/photo_grey.png +0 -0
  1165. data/public/images/photo_link.png +0 -0
  1166. data/public/images/photos.png +0 -0
  1167. data/public/images/picture.png +0 -0
  1168. data/public/images/picture_add.png +0 -0
  1169. data/public/images/picture_delete.png +0 -0
  1170. data/public/images/picture_edit.png +0 -0
  1171. data/public/images/picture_empty.png +0 -0
  1172. data/public/images/picture_error.png +0 -0
  1173. data/public/images/picture_go.png +0 -0
  1174. data/public/images/picture_key.png +0 -0
  1175. data/public/images/picture_link.png +0 -0
  1176. data/public/images/picture_save.png +0 -0
  1177. data/public/images/pictures.png +0 -0
  1178. data/public/images/pilcrow.png +0 -0
  1179. data/public/images/pill.png +0 -0
  1180. data/public/images/pill_add.png +0 -0
  1181. data/public/images/pill_delete.png +0 -0
  1182. data/public/images/pill_go.png +0 -0
  1183. data/public/images/plugin.png +0 -0
  1184. data/public/images/plugin_add.png +0 -0
  1185. data/public/images/plugin_delete.png +0 -0
  1186. data/public/images/plugin_disabled.png +0 -0
  1187. data/public/images/plugin_edit.png +0 -0
  1188. data/public/images/plugin_error.png +0 -0
  1189. data/public/images/plugin_go.png +0 -0
  1190. data/public/images/plugin_link.png +0 -0
  1191. data/public/images/printer.png +0 -0
  1192. data/public/images/printer_add.png +0 -0
  1193. data/public/images/printer_delete.png +0 -0
  1194. data/public/images/printer_empty.png +0 -0
  1195. data/public/images/printer_error.png +0 -0
  1196. data/public/images/project.png +0 -0
  1197. data/public/images/rails.png +0 -0
  1198. data/public/images/rainbow.png +0 -0
  1199. data/public/images/report.png +0 -0
  1200. data/public/images/report_add.png +0 -0
  1201. data/public/images/report_delete.png +0 -0
  1202. data/public/images/report_disk.png +0 -0
  1203. data/public/images/report_edit.png +0 -0
  1204. data/public/images/report_go.png +0 -0
  1205. data/public/images/report_key.png +0 -0
  1206. data/public/images/report_link.png +0 -0
  1207. data/public/images/report_magnify.png +0 -0
  1208. data/public/images/report_picture.png +0 -0
  1209. data/public/images/report_user.png +0 -0
  1210. data/public/images/report_word.png +0 -0
  1211. data/public/images/resultset_first.png +0 -0
  1212. data/public/images/resultset_last.png +0 -0
  1213. data/public/images/resultset_next.png +0 -0
  1214. data/public/images/resultset_previous.png +0 -0
  1215. data/public/images/rosette.png +0 -0
  1216. data/public/images/row_add.png +0 -0
  1217. data/public/images/row_delete.png +0 -0
  1218. data/public/images/rss.png +0 -0
  1219. data/public/images/rss_add.png +0 -0
  1220. data/public/images/rss_delete.png +0 -0
  1221. data/public/images/rss_go.png +0 -0
  1222. data/public/images/rss_valid.png +0 -0
  1223. data/public/images/ruby.png +0 -0
  1224. data/public/images/ruby_add.png +0 -0
  1225. data/public/images/ruby_delete.png +0 -0
  1226. data/public/images/ruby_gear.png +0 -0
  1227. data/public/images/ruby_get.png +0 -0
  1228. data/public/images/ruby_go.png +0 -0
  1229. data/public/images/ruby_key.png +0 -0
  1230. data/public/images/ruby_link.png +0 -0
  1231. data/public/images/ruby_put.png +0 -0
  1232. data/public/images/script.png +0 -0
  1233. data/public/images/script_add.png +0 -0
  1234. data/public/images/script_code.png +0 -0
  1235. data/public/images/script_code_red.png +0 -0
  1236. data/public/images/script_delete.png +0 -0
  1237. data/public/images/script_edit.png +0 -0
  1238. data/public/images/script_error.png +0 -0
  1239. data/public/images/script_gear.png +0 -0
  1240. data/public/images/script_go.png +0 -0
  1241. data/public/images/script_key.png +0 -0
  1242. data/public/images/script_lightning.png +0 -0
  1243. data/public/images/script_link.png +0 -0
  1244. data/public/images/script_palette.png +0 -0
  1245. data/public/images/script_save.png +0 -0
  1246. data/public/images/server.png +0 -0
  1247. data/public/images/server_add.png +0 -0
  1248. data/public/images/server_chart.png +0 -0
  1249. data/public/images/server_compressed.png +0 -0
  1250. data/public/images/server_connect.png +0 -0
  1251. data/public/images/server_database.png +0 -0
  1252. data/public/images/server_delete.png +0 -0
  1253. data/public/images/server_edit.png +0 -0
  1254. data/public/images/server_error.png +0 -0
  1255. data/public/images/server_go.png +0 -0
  1256. data/public/images/server_key.png +0 -0
  1257. data/public/images/server_lightning.png +0 -0
  1258. data/public/images/server_link.png +0 -0
  1259. data/public/images/server_uncompressed.png +0 -0
  1260. data/public/images/shading.png +0 -0
  1261. data/public/images/shape_align_bottom.png +0 -0
  1262. data/public/images/shape_align_center.png +0 -0
  1263. data/public/images/shape_align_left.png +0 -0
  1264. data/public/images/shape_align_middle.png +0 -0
  1265. data/public/images/shape_align_right.png +0 -0
  1266. data/public/images/shape_align_top.png +0 -0
  1267. data/public/images/shape_flip_horizontal.png +0 -0
  1268. data/public/images/shape_flip_vertical.png +0 -0
  1269. data/public/images/shape_group.png +0 -0
  1270. data/public/images/shape_handles.png +0 -0
  1271. data/public/images/shape_move_back.png +0 -0
  1272. data/public/images/shape_move_backwards.png +0 -0
  1273. data/public/images/shape_move_forwards.png +0 -0
  1274. data/public/images/shape_move_front.png +0 -0
  1275. data/public/images/shape_rotate_anticlockwise.png +0 -0
  1276. data/public/images/shape_rotate_clockwise.png +0 -0
  1277. data/public/images/shape_square.png +0 -0
  1278. data/public/images/shape_square_add.png +0 -0
  1279. data/public/images/shape_square_delete.png +0 -0
  1280. data/public/images/shape_square_edit.png +0 -0
  1281. data/public/images/shape_square_error.png +0 -0
  1282. data/public/images/shape_square_go.png +0 -0
  1283. data/public/images/shape_square_key.png +0 -0
  1284. data/public/images/shape_square_link.png +0 -0
  1285. data/public/images/shape_ungroup.png +0 -0
  1286. data/public/images/shield.png +0 -0
  1287. data/public/images/shield_add.png +0 -0
  1288. data/public/images/shield_delete.png +0 -0
  1289. data/public/images/shield_go.png +0 -0
  1290. data/public/images/silk.html +1495 -0
  1291. data/public/images/sitemap.png +0 -0
  1292. data/public/images/sitemap_color.png +0 -0
  1293. data/public/images/sound.png +0 -0
  1294. data/public/images/sound_add.png +0 -0
  1295. data/public/images/sound_delete.png +0 -0
  1296. data/public/images/sound_low.png +0 -0
  1297. data/public/images/sound_mute.png +0 -0
  1298. data/public/images/sound_none.png +0 -0
  1299. data/public/images/spellcheck.png +0 -0
  1300. data/public/images/sport_8ball.png +0 -0
  1301. data/public/images/sport_basketball.png +0 -0
  1302. data/public/images/sport_football.png +0 -0
  1303. data/public/images/sport_golf.png +0 -0
  1304. data/public/images/sport_raquet.png +0 -0
  1305. data/public/images/sport_shuttlecock.png +0 -0
  1306. data/public/images/sport_soccer.png +0 -0
  1307. data/public/images/sport_tennis.png +0 -0
  1308. data/public/images/star.png +0 -0
  1309. data/public/images/status_away.png +0 -0
  1310. data/public/images/status_busy.png +0 -0
  1311. data/public/images/status_offline.png +0 -0
  1312. data/public/images/status_online.png +0 -0
  1313. data/public/images/stop.png +0 -0
  1314. data/public/images/style.png +0 -0
  1315. data/public/images/style_add.png +0 -0
  1316. data/public/images/style_delete.png +0 -0
  1317. data/public/images/style_edit.png +0 -0
  1318. data/public/images/style_go.png +0 -0
  1319. data/public/images/sum.png +0 -0
  1320. data/public/images/swf/xspf/Main.as +55 -0
  1321. data/public/images/swf/xspf/com/zuardi/musicplayer/MusicButton.as +557 -0
  1322. data/public/images/swf/xspf/com/zuardi/musicplayer/MusicPlayer.as +118 -0
  1323. data/public/images/swf/xspf/com/zuardi/musicplayer/Playlist.as +127 -0
  1324. data/public/images/swf/xspf/com/zuardi/musicplayer/ProgressiveSlider.as +66 -0
  1325. data/public/images/swf/xspf/license.txt +10 -0
  1326. data/public/images/swf/xspf/musicplayer.swf +0 -0
  1327. data/public/images/swf/xspf/musicplayer_f6.swf +0 -0
  1328. data/public/images/swf/xspf/musicplayerbtn.fla +0 -0
  1329. data/public/images/swf/xspf/parameters.as +39 -0
  1330. data/public/images/tab.png +0 -0
  1331. data/public/images/tab_add.png +0 -0
  1332. data/public/images/tab_delete.png +0 -0
  1333. data/public/images/tab_edit.png +0 -0
  1334. data/public/images/tab_go.png +0 -0
  1335. data/public/images/table.png +0 -0
  1336. data/public/images/table_add.png +0 -0
  1337. data/public/images/table_delete.png +0 -0
  1338. data/public/images/table_edit.png +0 -0
  1339. data/public/images/table_error.png +0 -0
  1340. data/public/images/table_gear.png +0 -0
  1341. data/public/images/table_go.png +0 -0
  1342. data/public/images/table_key.png +0 -0
  1343. data/public/images/table_lightning.png +0 -0
  1344. data/public/images/table_link.png +0 -0
  1345. data/public/images/table_multiple.png +0 -0
  1346. data/public/images/table_refresh.png +0 -0
  1347. data/public/images/table_relationship.png +0 -0
  1348. data/public/images/table_row_delete.png +0 -0
  1349. data/public/images/table_row_insert.png +0 -0
  1350. data/public/images/table_save.png +0 -0
  1351. data/public/images/table_sort.png +0 -0
  1352. data/public/images/tag.png +0 -0
  1353. data/public/images/tag_blue.png +0 -0
  1354. data/public/images/tag_blue_add.png +0 -0
  1355. data/public/images/tag_blue_delete.png +0 -0
  1356. data/public/images/tag_blue_edit.png +0 -0
  1357. data/public/images/tag_green.png +0 -0
  1358. data/public/images/tag_orange.png +0 -0
  1359. data/public/images/tag_pink.png +0 -0
  1360. data/public/images/tag_purple.png +0 -0
  1361. data/public/images/tag_red.png +0 -0
  1362. data/public/images/tag_yellow.png +0 -0
  1363. data/public/images/target.png +0 -0
  1364. data/public/images/telephone.png +0 -0
  1365. data/public/images/telephone_add.png +0 -0
  1366. data/public/images/telephone_delete.png +0 -0
  1367. data/public/images/telephone_edit.png +0 -0
  1368. data/public/images/telephone_error.png +0 -0
  1369. data/public/images/telephone_go.png +0 -0
  1370. data/public/images/telephone_key.png +0 -0
  1371. data/public/images/telephone_link.png +0 -0
  1372. data/public/images/television.png +0 -0
  1373. data/public/images/television_add.png +0 -0
  1374. data/public/images/television_delete.png +0 -0
  1375. data/public/images/text_align_center.png +0 -0
  1376. data/public/images/text_align_justify.png +0 -0
  1377. data/public/images/text_align_left.png +0 -0
  1378. data/public/images/text_align_right.png +0 -0
  1379. data/public/images/text_allcaps.png +0 -0
  1380. data/public/images/text_bold.png +0 -0
  1381. data/public/images/text_columns.png +0 -0
  1382. data/public/images/text_dropcaps.png +0 -0
  1383. data/public/images/text_heading_1.png +0 -0
  1384. data/public/images/text_heading_2.png +0 -0
  1385. data/public/images/text_heading_3.png +0 -0
  1386. data/public/images/text_heading_4.png +0 -0
  1387. data/public/images/text_heading_5.png +0 -0
  1388. data/public/images/text_heading_6.png +0 -0
  1389. data/public/images/text_horizontalrule.png +0 -0
  1390. data/public/images/text_indent.png +0 -0
  1391. data/public/images/text_indent_remove.png +0 -0
  1392. data/public/images/text_italic.png +0 -0
  1393. data/public/images/text_kerning.png +0 -0
  1394. data/public/images/text_letter_omega.png +0 -0
  1395. data/public/images/text_letterspacing.png +0 -0
  1396. data/public/images/text_linespacing.png +0 -0
  1397. data/public/images/text_list_bullets.png +0 -0
  1398. data/public/images/text_list_numbers.png +0 -0
  1399. data/public/images/text_lowercase.png +0 -0
  1400. data/public/images/text_padding_bottom.png +0 -0
  1401. data/public/images/text_padding_left.png +0 -0
  1402. data/public/images/text_padding_right.png +0 -0
  1403. data/public/images/text_padding_top.png +0 -0
  1404. data/public/images/text_replace.png +0 -0
  1405. data/public/images/text_signature.png +0 -0
  1406. data/public/images/text_smallcaps.png +0 -0
  1407. data/public/images/text_strikethrough.png +0 -0
  1408. data/public/images/text_subscript.png +0 -0
  1409. data/public/images/text_superscript.png +0 -0
  1410. data/public/images/text_underline.png +0 -0
  1411. data/public/images/text_uppercase.png +0 -0
  1412. data/public/images/textfield.png +0 -0
  1413. data/public/images/textfield_add.png +0 -0
  1414. data/public/images/textfield_delete.png +0 -0
  1415. data/public/images/textfield_key.png +0 -0
  1416. data/public/images/textfield_rename.png +0 -0
  1417. data/public/images/thumb_down.png +0 -0
  1418. data/public/images/thumb_up.png +0 -0
  1419. data/public/images/tick.png +0 -0
  1420. data/public/images/time.png +0 -0
  1421. data/public/images/time_add.png +0 -0
  1422. data/public/images/time_delete.png +0 -0
  1423. data/public/images/time_go.png +0 -0
  1424. data/public/images/timeline_marker.png +0 -0
  1425. data/public/images/transmit.png +0 -0
  1426. data/public/images/transmit_add.png +0 -0
  1427. data/public/images/transmit_blue.png +0 -0
  1428. data/public/images/transmit_delete.png +0 -0
  1429. data/public/images/transmit_edit.png +0 -0
  1430. data/public/images/transmit_error.png +0 -0
  1431. data/public/images/transmit_go.png +0 -0
  1432. data/public/images/tux.png +0 -0
  1433. data/public/images/user.png +0 -0
  1434. data/public/images/user_add.png +0 -0
  1435. data/public/images/user_admin.png +0 -0
  1436. data/public/images/user_comment.png +0 -0
  1437. data/public/images/user_delete.png +0 -0
  1438. data/public/images/user_edit.png +0 -0
  1439. data/public/images/user_female.png +0 -0
  1440. data/public/images/user_go.png +0 -0
  1441. data/public/images/user_gray.png +0 -0
  1442. data/public/images/user_green.png +0 -0
  1443. data/public/images/user_orange.png +0 -0
  1444. data/public/images/user_pub.png +0 -0
  1445. data/public/images/user_red.png +0 -0
  1446. data/public/images/user_su.png +0 -0
  1447. data/public/images/user_suit.png +0 -0
  1448. data/public/images/validate.png +0 -0
  1449. data/public/images/valider.png +0 -0
  1450. data/public/images/vcard.png +0 -0
  1451. data/public/images/vcard_add.png +0 -0
  1452. data/public/images/vcard_delete.png +0 -0
  1453. data/public/images/vcard_edit.png +0 -0
  1454. data/public/images/vector.png +0 -0
  1455. data/public/images/vector_add.png +0 -0
  1456. data/public/images/vector_delete.png +0 -0
  1457. data/public/images/wand.png +0 -0
  1458. data/public/images/weather_clouds.png +0 -0
  1459. data/public/images/weather_cloudy.png +0 -0
  1460. data/public/images/weather_lightning.png +0 -0
  1461. data/public/images/weather_rain.png +0 -0
  1462. data/public/images/weather_snow.png +0 -0
  1463. data/public/images/weather_sun.png +0 -0
  1464. data/public/images/webcam.png +0 -0
  1465. data/public/images/webcam_add.png +0 -0
  1466. data/public/images/webcam_delete.png +0 -0
  1467. data/public/images/webcam_error.png +0 -0
  1468. data/public/images/world.png +0 -0
  1469. data/public/images/world_add.png +0 -0
  1470. data/public/images/world_delete.png +0 -0
  1471. data/public/images/world_edit.png +0 -0
  1472. data/public/images/world_go.png +0 -0
  1473. data/public/images/world_link.png +0 -0
  1474. data/public/images/wrench.png +0 -0
  1475. data/public/images/wrench_orange.png +0 -0
  1476. data/public/images/xhtml.png +0 -0
  1477. data/public/images/xhtml_add.png +0 -0
  1478. data/public/images/xhtml_delete.png +0 -0
  1479. data/public/images/xhtml_go.png +0 -0
  1480. data/public/images/xhtml_valid.png +0 -0
  1481. data/public/images/zoom.png +0 -0
  1482. data/public/images/zoom_in.png +0 -0
  1483. data/public/images/zoom_out.png +0 -0
  1484. data/public/img/logo.png +0 -0
  1485. data/public/javascripts/application.js +2 -0
  1486. data/public/javascripts/builder.js +136 -0
  1487. data/public/javascripts/controls.js +965 -0
  1488. data/public/javascripts/dragdrop.js +975 -0
  1489. data/public/javascripts/effects.js +1130 -0
  1490. data/public/javascripts/prototype.js +4320 -0
  1491. data/public/javascripts/scriptaculous.js +60 -0
  1492. data/public/javascripts/slider.js +275 -0
  1493. data/public/javascripts/sound.js +55 -0
  1494. data/public/javascripts/tablekit.js +965 -0
  1495. data/public/javascripts/unittest.js +568 -0
  1496. data/public/javascripts/upload-progress.js +133 -0
  1497. data/public/javascripts/zena.js +501 -0
  1498. data/public/robots.txt +1 -0
  1499. data/public/stylesheets/admin.css +77 -0
  1500. data/public/stylesheets/calendar.css +55 -0
  1501. data/public/stylesheets/code.css +67 -0
  1502. data/public/stylesheets/comment.css +43 -0
  1503. data/public/stylesheets/csshover2.htc +121 -0
  1504. data/public/stylesheets/default.css +85 -0
  1505. data/public/stylesheets/popup.css +200 -0
  1506. data/public/stylesheets/reset.css +33 -0
  1507. data/public/stylesheets/search.css +19 -0
  1508. data/public/stylesheets/upload-progress.css +4 -0
  1509. data/public/stylesheets/wiki.css +100 -0
  1510. data/public/stylesheets/zen.css +230 -0
  1511. data/public/stylesheets/zena.css +78 -0
  1512. data/rails/init.rb +2 -0
  1513. data/tasks/ann.rake +80 -0
  1514. data/tasks/bones.rake +20 -0
  1515. data/tasks/gem.rake +201 -0
  1516. data/tasks/git.rake +40 -0
  1517. data/tasks/notes.rake +27 -0
  1518. data/tasks/post_load.rake +34 -0
  1519. data/tasks/rdoc.rake +51 -0
  1520. data/tasks/rubyforge.rake +55 -0
  1521. data/tasks/setup.rb +292 -0
  1522. data/tasks/spec.rake +54 -0
  1523. data/tasks/svn.rake +47 -0
  1524. data/tasks/test.rake +40 -0
  1525. data/tasks/zentest.rake +36 -0
  1526. data/test/fixtures/comments.yml +126 -0
  1527. data/test/fixtures/contact_contents.yml +132 -0
  1528. data/test/fixtures/data_entries.yml +65 -0
  1529. data/test/fixtures/discussions.yml +48 -0
  1530. data/test/fixtures/document_contents.yml +108 -0
  1531. data/test/fixtures/dyn_attributes.yml +66 -0
  1532. data/test/fixtures/files/Node-test.zafu +307 -0
  1533. data/test/fixtures/files/bird.jpg +0 -0
  1534. data/test/fixtures/files/bomb.png +0 -0
  1535. data/test/fixtures/files/exif_sample.jpg +0 -0
  1536. data/test/fixtures/files/flower.jpg +0 -0
  1537. data/test/fixtures/files/forest.pdf +0 -0
  1538. data/test/fixtures/files/import.tgz +0 -0
  1539. data/test/fixtures/files/jet_30.zip +0 -0
  1540. data/test/fixtures/files/lake.jpg +0 -0
  1541. data/test/fixtures/files/letter.zip +0 -0
  1542. data/test/fixtures/files/other.txt +1 -0
  1543. data/test/fixtures/files/simple.zml.gz +0 -0
  1544. data/test/fixtures/files/some.txt +1 -0
  1545. data/test/fixtures/files/translations_de.yml +4 -0
  1546. data/test/fixtures/files/translations_fr.yml +4 -0
  1547. data/test/fixtures/files/tree.jpg +0 -0
  1548. data/test/fixtures/files/water.pdf +0 -0
  1549. data/test/fixtures/groups.yml +86 -0
  1550. data/test/fixtures/groups_users.yml +81 -0
  1551. data/test/fixtures/iformats.yml +28 -0
  1552. data/test/fixtures/import/photos.en.zml +11 -0
  1553. data/test/fixtures/import/photos/bird.jpg +0 -0
  1554. data/test/fixtures/import/photos/bird.jpg.en.zml +1 -0
  1555. data/test/fixtures/import/photos/bird.jpg.fr.zml +1 -0
  1556. data/test/fixtures/import/photos/document.yml.en +4 -0
  1557. data/test/fixtures/import/photos/document.yml.fr +4 -0
  1558. data/test/fixtures/import/simple.zml +8 -0
  1559. data/test/fixtures/links.yml +313 -0
  1560. data/test/fixtures/nodes.yml +2592 -0
  1561. data/test/fixtures/relations.yml +126 -0
  1562. data/test/fixtures/sites.yml +58 -0
  1563. data/test/fixtures/template_contents.yml +172 -0
  1564. data/test/fixtures/users.yml +167 -0
  1565. data/test/fixtures/versions.yml +1909 -0
  1566. data/test/fixtures/virtual_classes.yml +87 -0
  1567. data/test/fixtures/zips.yml +15 -0
  1568. data/test/functional/application_controller_test.rb +136 -0
  1569. data/test/functional/calendar_controller_test.rb +25 -0
  1570. data/test/functional/comments_controller_test.rb +59 -0
  1571. data/test/functional/data_entries_controller_test.rb +22 -0
  1572. data/test/functional/discussion_controller_test.rb +20 -0
  1573. data/test/functional/documents_controller_test.rb +155 -0
  1574. data/test/functional/groups_controller_test.rb +109 -0
  1575. data/test/functional/iformats_controller_test.rb +115 -0
  1576. data/test/functional/links_controller_test.rb +26 -0
  1577. data/test/functional/nodes_controller_test.rb +448 -0
  1578. data/test/functional/note_controller_test.rb +53 -0
  1579. data/test/functional/preferences_controller_test.rb +11 -0
  1580. data/test/functional/relations_controller_test.rb +55 -0
  1581. data/test/functional/search_controller_test.rb +41 -0
  1582. data/test/functional/sessions_controller_test.rb +73 -0
  1583. data/test/functional/sites_controller_test.rb +102 -0
  1584. data/test/functional/users_controller_test.rb +28 -0
  1585. data/test/functional/versions_controller_test.rb +99 -0
  1586. data/test/functional/virtual_classes_controller_test.rb +62 -0
  1587. data/test/helpers/node_query/basic.yml +149 -0
  1588. data/test/helpers/node_query/comments.yml +18 -0
  1589. data/test/helpers/node_query/complex.yml +98 -0
  1590. data/test/helpers/node_query/filters.yml +105 -0
  1591. data/test/helpers/node_query/relations.yml +43 -0
  1592. data/test/helpers/node_query_test.rb +117 -0
  1593. data/test/integration/multiple_hosts_test.rb +98 -0
  1594. data/test/integration/multiversion_test.rb +164 -0
  1595. data/test/integration/navigation_test.rb +283 -0
  1596. data/test/sites/README +2 -0
  1597. data/test/sites/complex/complex.png +0 -0
  1598. data/test/sites/complex/groups.yml +9 -0
  1599. data/test/sites/complex/links.yml +75 -0
  1600. data/test/sites/complex/nodes.yml +253 -0
  1601. data/test/sites/complex/relations.yml +11 -0
  1602. data/test/sites/complex/sites.yml +13 -0
  1603. data/test/sites/complex/users.yml +20 -0
  1604. data/test/sites/complex/versions.yml +1 -0
  1605. data/test/sites/complex/virtual_classes.yml +19 -0
  1606. data/test/sites/ocean/contact_contents.yml +19 -0
  1607. data/test/sites/ocean/groups.yml +9 -0
  1608. data/test/sites/ocean/iformats.yml +7 -0
  1609. data/test/sites/ocean/nodes.yml +36 -0
  1610. data/test/sites/ocean/sites.yml +14 -0
  1611. data/test/sites/ocean/template_contents.yml +8 -0
  1612. data/test/sites/ocean/users.yml +33 -0
  1613. data/test/sites/ocean/versions.yml +48 -0
  1614. data/test/sites/zena/comments.yml +82 -0
  1615. data/test/sites/zena/contact_contents.yml +55 -0
  1616. data/test/sites/zena/data_entries.yml +42 -0
  1617. data/test/sites/zena/discussions.yml +30 -0
  1618. data/test/sites/zena/document_contents.yml +76 -0
  1619. data/test/sites/zena/dyn_attributes.yml +43 -0
  1620. data/test/sites/zena/groups.yml +11 -0
  1621. data/test/sites/zena/iformats.yml +6 -0
  1622. data/test/sites/zena/links.yml +49 -0
  1623. data/test/sites/zena/nodes.yml +338 -0
  1624. data/test/sites/zena/relations.yml +66 -0
  1625. data/test/sites/zena/sites.yml +13 -0
  1626. data/test/sites/zena/template_contents.yml +103 -0
  1627. data/test/sites/zena/users.yml +48 -0
  1628. data/test/sites/zena/versions.yml +558 -0
  1629. data/test/sites/zena/virtual_classes.yml +23 -0
  1630. data/test/test_helper.rb +62 -0
  1631. data/test/test_zena.rb +138 -0
  1632. data/test/unit/cache_test.rb +62 -0
  1633. data/test/unit/cached_page_test.rb +165 -0
  1634. data/test/unit/comment_test.rb +185 -0
  1635. data/test/unit/contact_content_test.rb +33 -0
  1636. data/test/unit/contact_test.rb +39 -0
  1637. data/test/unit/contact_version_test.rb +48 -0
  1638. data/test/unit/core_ext_test.rb +48 -0
  1639. data/test/unit/data_entry_test.rb +92 -0
  1640. data/test/unit/discussion_test.rb +59 -0
  1641. data/test/unit/document_content_test.rb +110 -0
  1642. data/test/unit/document_test.rb +234 -0
  1643. data/test/unit/document_version_test.rb +11 -0
  1644. data/test/unit/dyn_attributes_test.rb +229 -0
  1645. data/test/unit/exif_data_test.rb +66 -0
  1646. data/test/unit/group_test.rb +142 -0
  1647. data/test/unit/iformat_test.rb +190 -0
  1648. data/test/unit/image_builder_test.rb +214 -0
  1649. data/test/unit/image_content_test.rb +154 -0
  1650. data/test/unit/image_test.rb +311 -0
  1651. data/test/unit/image_version_test.rb +18 -0
  1652. data/test/unit/letter_test.rb +9 -0
  1653. data/test/unit/link_test.rb +32 -0
  1654. data/test/unit/multiversion_test.rb +1008 -0
  1655. data/test/unit/node_test.rb +1578 -0
  1656. data/test/unit/note_test.rb +85 -0
  1657. data/test/unit/page_test.rb +79 -0
  1658. data/test/unit/project_test.rb +32 -0
  1659. data/test/unit/reference_test.rb +9 -0
  1660. data/test/unit/relation_proxy_test.rb +409 -0
  1661. data/test/unit/relation_test.rb +48 -0
  1662. data/test/unit/section_test.rb +32 -0
  1663. data/test/unit/secure_test.rb +939 -0
  1664. data/test/unit/site_test.rb +236 -0
  1665. data/test/unit/skin_test.rb +18 -0
  1666. data/test/unit/template_content_test.rb +9 -0
  1667. data/test/unit/template_test.rb +357 -0
  1668. data/test/unit/template_version_test.rb +7 -0
  1669. data/test/unit/text_document_content_test.rb +8 -0
  1670. data/test/unit/text_document_test.rb +139 -0
  1671. data/test/unit/text_document_version_test.rb +37 -0
  1672. data/test/unit/user_test.rb +295 -0
  1673. data/test/unit/version_test.rb +312 -0
  1674. data/test/unit/virtual_class_test.rb +242 -0
  1675. data/test/unit/zena/db_test.rb +94 -0
  1676. data/test/unit/zena/parser/latex.yml +14 -0
  1677. data/test/unit/zena/parser/zafu.yml +391 -0
  1678. data/test/unit/zena/parser/zafu_asset.yml +43 -0
  1679. data/test/unit/zena/parser/zafu_insight.yml +3 -0
  1680. data/test/unit/zena/parser/zazen.yml +211 -0
  1681. data/test/unit/zena/parser_test.rb +184 -0
  1682. data/test/unit/zena/unit/test_case_test.rb +12 -0
  1683. data/test/unit/zena/use/calendar_test.rb +49 -0
  1684. data/test/unit/zena/use/dates_model_methods_test.rb +41 -0
  1685. data/test/unit/zena/use/dates_string_methods_test.rb +94 -0
  1686. data/test/unit/zena/use/dates_view_methods_test.rb +158 -0
  1687. data/test/unit/zena/use/html_tags_test.rb +244 -0
  1688. data/test/unit/zena/use/i18n_test.rb +34 -0
  1689. data/test/unit/zena/use/nested_attributes_alias_model_test.rb +104 -0
  1690. data/test/unit/zena/use/nested_attributes_alias_view_test.rb +99 -0
  1691. data/test/unit/zena/use/refactor_test.rb +52 -0
  1692. data/test/unit/zena/use/rendering_test.rb +23 -0
  1693. data/test/unit/zena/use/urls_test.rb +119 -0
  1694. data/test/unit/zena/use/zafu_test.rb +21 -0
  1695. data/test/unit/zena/use/zazen_test.rb +230 -0
  1696. data/test/unit/zena/zena_tags/ajax.yml +233 -0
  1697. data/test/unit/zena/zena_tags/apphelper.yml +85 -0
  1698. data/test/unit/zena/zena_tags/basic.yml +1295 -0
  1699. data/test/unit/zena/zena_tags/complex.yml +249 -0
  1700. data/test/unit/zena/zena_tags/data.yml +73 -0
  1701. data/test/unit/zena/zena_tags/errors.yml +71 -0
  1702. data/test/unit/zena/zena_tags/eval.yml +51 -0
  1703. data/test/unit/zena/zena_tags/relations.yml +411 -0
  1704. data/test/unit/zena/zena_tags/zazen.yml +84 -0
  1705. data/test/unit/zena/zena_tags_test.rb +235 -0
  1706. data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand +24 -0
  1707. data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand +58 -0
  1708. data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand +88 -0
  1709. data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand +27 -0
  1710. data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand +23 -0
  1711. data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences +19 -0
  1712. data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences +19 -0
  1713. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet +16 -0
  1714. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet +16 -0
  1715. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet +16 -0
  1716. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet +18 -0
  1717. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet +18 -0
  1718. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet +16 -0
  1719. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet +18 -0
  1720. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet +16 -0
  1721. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet +16 -0
  1722. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet +16 -0
  1723. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet +16 -0
  1724. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet +16 -0
  1725. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet +16 -0
  1726. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet +18 -0
  1727. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet +16 -0
  1728. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet +17 -0
  1729. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet +17 -0
  1730. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet +18 -0
  1731. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet +22 -0
  1732. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet +23 -0
  1733. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet +25 -0
  1734. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet +18 -0
  1735. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet +18 -0
  1736. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet +18 -0
  1737. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet +16 -0
  1738. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet +16 -0
  1739. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet +20 -0
  1740. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet +20 -0
  1741. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet +16 -0
  1742. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet +16 -0
  1743. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet +16 -0
  1744. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet +16 -0
  1745. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet +16 -0
  1746. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet +16 -0
  1747. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet +16 -0
  1748. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet +18 -0
  1749. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet +16 -0
  1750. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet +16 -0
  1751. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet +16 -0
  1752. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet +16 -0
  1753. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet +16 -0
  1754. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet +16 -0
  1755. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet +16 -0
  1756. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet +16 -0
  1757. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet +16 -0
  1758. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet +16 -0
  1759. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet +16 -0
  1760. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet +16 -0
  1761. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet +16 -0
  1762. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet +16 -0
  1763. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet +16 -0
  1764. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet +16 -0
  1765. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet +16 -0
  1766. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet +16 -0
  1767. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet +16 -0
  1768. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet +16 -0
  1769. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet +16 -0
  1770. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet +16 -0
  1771. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet +16 -0
  1772. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet +16 -0
  1773. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet +16 -0
  1774. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet +16 -0
  1775. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet +16 -0
  1776. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet +16 -0
  1777. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet +16 -0
  1778. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet +16 -0
  1779. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet +16 -0
  1780. data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet +16 -0
  1781. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb +39 -0
  1782. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb +104 -0
  1783. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb +14 -0
  1784. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb +17 -0
  1785. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt +13 -0
  1786. data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb +25 -0
  1787. data/vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage +166 -0
  1788. data/vendor/TextMate/Ruby Shoulda.tmbundle/info.plist +304 -0
  1789. data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +37 -0
  1790. data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +53 -0
  1791. data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +74 -0
  1792. data/vendor/TextMate/Zena.tmbundle/info.plist +15 -0
  1793. data/vendor/apache_upload/mod_upload_progress.c +813 -0
  1794. data/vendor/bricks/20070122-172926.txt +282 -0
  1795. data/vendor/plugins/ar_mysql_full_text/README +15 -0
  1796. data/vendor/plugins/ar_mysql_full_text/init.rb +1 -0
  1797. data/vendor/plugins/ar_mysql_full_text/lib/ar_mysql_full_text.rb +69 -0
  1798. data/vendor/plugins/gettext_i18n_rails/README.markdown +139 -0
  1799. data/vendor/plugins/gettext_i18n_rails/Rakefile +6 -0
  1800. data/vendor/plugins/gettext_i18n_rails/init.rb +10 -0
  1801. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb +21 -0
  1802. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb +6 -0
  1803. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/active_record.rb +17 -0
  1804. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/backend.rb +47 -0
  1805. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/haml_parser.rb +43 -0
  1806. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/i18n_hacks.rb +10 -0
  1807. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/model_attributes_finder.rb +46 -0
  1808. data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/ruby_gettext_extractor.rb +136 -0
  1809. data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/action_controller_spec.rb +36 -0
  1810. data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/active_record_spec.rb +50 -0
  1811. data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/backend_spec.rb +41 -0
  1812. data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails_spec.rb +43 -0
  1813. data/vendor/plugins/gettext_i18n_rails/spec/spec_helper.rb +15 -0
  1814. data/vendor/plugins/gettext_i18n_rails/tasks/gettext_rails_i18n.rake +73 -0
  1815. data/vendor/plugins/responds_to_parent/MIT-LICENSE +20 -0
  1816. data/vendor/plugins/responds_to_parent/README +42 -0
  1817. data/vendor/plugins/responds_to_parent/Rakefile +22 -0
  1818. data/vendor/plugins/responds_to_parent/init.rb +1 -0
  1819. data/vendor/plugins/responds_to_parent/lib/responds_to_parent.rb +46 -0
  1820. data/vendor/plugins/responds_to_parent/test/responds_to_parent_test.rb +115 -0
  1821. data/vendor/plugins/rjs-assertions/MIT-LICENSE +20 -0
  1822. data/vendor/plugins/rjs-assertions/README +64 -0
  1823. data/vendor/plugins/rjs-assertions/init.rb +1 -0
  1824. data/vendor/plugins/rjs-assertions/lib/rjs-assertions.rb +99 -0
  1825. data/vendor/rails_patches/support_for_inverse_relationships_on_active_record_objects.diff +739 -0
  1826. metadata +2075 -0
@@ -0,0 +1,60 @@
1
+ // script.aculo.us scriptaculous.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
2
+
3
+ // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining
6
+ // a copy of this software and associated documentation files (the
7
+ // "Software"), to deal in the Software without restriction, including
8
+ // without limitation the rights to use, copy, modify, merge, publish,
9
+ // distribute, sublicense, and/or sell copies of the Software, and to
10
+ // permit persons to whom the Software is furnished to do so, subject to
11
+ // the following conditions:
12
+ //
13
+ // The above copyright notice and this permission notice shall be
14
+ // included in all copies or substantial portions of the Software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ //
24
+ // For details, see the script.aculo.us web site: http://script.aculo.us/
25
+
26
+ var Scriptaculous = {
27
+ Version: '1.8.2',
28
+ require: function(libraryName) {
29
+ // inserting via DOM fails in Safari 2.0, so brute force approach
30
+ document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');
31
+ },
32
+ REQUIRED_PROTOTYPE: '1.6.0.3',
33
+ load: function() {
34
+ function convertVersionString(versionString) {
35
+ var v = versionString.replace(/_.*|\./g, '');
36
+ v = parseInt(v + '0'.times(4-v.length));
37
+ return versionString.indexOf('_') > -1 ? v-1 : v;
38
+ }
39
+
40
+ if((typeof Prototype=='undefined') ||
41
+ (typeof Element == 'undefined') ||
42
+ (typeof Element.Methods=='undefined') ||
43
+ (convertVersionString(Prototype.Version) <
44
+ convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
45
+ throw("script.aculo.us requires the Prototype JavaScript framework >= " +
46
+ Scriptaculous.REQUIRED_PROTOTYPE);
47
+
48
+ var js = /scriptaculous\.js(\?.*)?$/;
49
+ $$('head script[src]').findAll(function(s) {
50
+ return s.src.match(js);
51
+ }).each(function(s) {
52
+ var path = s.src.replace(js, ''),
53
+ includes = s.src.match(/\?.*load=([a-z,]*)/);
54
+ (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
55
+ function(include) { Scriptaculous.require(path+include+'.js') });
56
+ });
57
+ }
58
+ };
59
+
60
+ Scriptaculous.load();
@@ -0,0 +1,275 @@
1
+ // script.aculo.us slider.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
2
+
3
+ // Copyright (c) 2005-2008 Marty Haught, Thomas Fuchs
4
+ //
5
+ // script.aculo.us is freely distributable under the terms of an MIT-style license.
6
+ // For details, see the script.aculo.us web site: http://script.aculo.us/
7
+
8
+ if (!Control) var Control = { };
9
+
10
+ // options:
11
+ // axis: 'vertical', or 'horizontal' (default)
12
+ //
13
+ // callbacks:
14
+ // onChange(value)
15
+ // onSlide(value)
16
+ Control.Slider = Class.create({
17
+ initialize: function(handle, track, options) {
18
+ var slider = this;
19
+
20
+ if (Object.isArray(handle)) {
21
+ this.handles = handle.collect( function(e) { return $(e) });
22
+ } else {
23
+ this.handles = [$(handle)];
24
+ }
25
+
26
+ this.track = $(track);
27
+ this.options = options || { };
28
+
29
+ this.axis = this.options.axis || 'horizontal';
30
+ this.increment = this.options.increment || 1;
31
+ this.step = parseInt(this.options.step || '1');
32
+ this.range = this.options.range || $R(0,1);
33
+
34
+ this.value = 0; // assure backwards compat
35
+ this.values = this.handles.map( function() { return 0 });
36
+ this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;
37
+ this.options.startSpan = $(this.options.startSpan || null);
38
+ this.options.endSpan = $(this.options.endSpan || null);
39
+
40
+ this.restricted = this.options.restricted || false;
41
+
42
+ this.maximum = this.options.maximum || this.range.end;
43
+ this.minimum = this.options.minimum || this.range.start;
44
+
45
+ // Will be used to align the handle onto the track, if necessary
46
+ this.alignX = parseInt(this.options.alignX || '0');
47
+ this.alignY = parseInt(this.options.alignY || '0');
48
+
49
+ this.trackLength = this.maximumOffset() - this.minimumOffset();
50
+
51
+ this.handleLength = this.isVertical() ?
52
+ (this.handles[0].offsetHeight != 0 ?
53
+ this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) :
54
+ (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth :
55
+ this.handles[0].style.width.replace(/px$/,""));
56
+
57
+ this.active = false;
58
+ this.dragging = false;
59
+ this.disabled = false;
60
+
61
+ if (this.options.disabled) this.setDisabled();
62
+
63
+ // Allowed values array
64
+ this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;
65
+ if (this.allowedValues) {
66
+ this.minimum = this.allowedValues.min();
67
+ this.maximum = this.allowedValues.max();
68
+ }
69
+
70
+ this.eventMouseDown = this.startDrag.bindAsEventListener(this);
71
+ this.eventMouseUp = this.endDrag.bindAsEventListener(this);
72
+ this.eventMouseMove = this.update.bindAsEventListener(this);
73
+
74
+ // Initialize handles in reverse (make sure first handle is active)
75
+ this.handles.each( function(h,i) {
76
+ i = slider.handles.length-1-i;
77
+ slider.setValue(parseFloat(
78
+ (Object.isArray(slider.options.sliderValue) ?
79
+ slider.options.sliderValue[i] : slider.options.sliderValue) ||
80
+ slider.range.start), i);
81
+ h.makePositioned().observe("mousedown", slider.eventMouseDown);
82
+ });
83
+
84
+ this.track.observe("mousedown", this.eventMouseDown);
85
+ document.observe("mouseup", this.eventMouseUp);
86
+ document.observe("mousemove", this.eventMouseMove);
87
+
88
+ this.initialized = true;
89
+ },
90
+ dispose: function() {
91
+ var slider = this;
92
+ Event.stopObserving(this.track, "mousedown", this.eventMouseDown);
93
+ Event.stopObserving(document, "mouseup", this.eventMouseUp);
94
+ Event.stopObserving(document, "mousemove", this.eventMouseMove);
95
+ this.handles.each( function(h) {
96
+ Event.stopObserving(h, "mousedown", slider.eventMouseDown);
97
+ });
98
+ },
99
+ setDisabled: function(){
100
+ this.disabled = true;
101
+ },
102
+ setEnabled: function(){
103
+ this.disabled = false;
104
+ },
105
+ getNearestValue: function(value){
106
+ if (this.allowedValues){
107
+ if (value >= this.allowedValues.max()) return(this.allowedValues.max());
108
+ if (value <= this.allowedValues.min()) return(this.allowedValues.min());
109
+
110
+ var offset = Math.abs(this.allowedValues[0] - value);
111
+ var newValue = this.allowedValues[0];
112
+ this.allowedValues.each( function(v) {
113
+ var currentOffset = Math.abs(v - value);
114
+ if (currentOffset <= offset){
115
+ newValue = v;
116
+ offset = currentOffset;
117
+ }
118
+ });
119
+ return newValue;
120
+ }
121
+ if (value > this.range.end) return this.range.end;
122
+ if (value < this.range.start) return this.range.start;
123
+ return value;
124
+ },
125
+ setValue: function(sliderValue, handleIdx){
126
+ if (!this.active) {
127
+ this.activeHandleIdx = handleIdx || 0;
128
+ this.activeHandle = this.handles[this.activeHandleIdx];
129
+ this.updateStyles();
130
+ }
131
+ handleIdx = handleIdx || this.activeHandleIdx || 0;
132
+ if (this.initialized && this.restricted) {
133
+ if ((handleIdx>0) && (sliderValue<this.values[handleIdx-1]))
134
+ sliderValue = this.values[handleIdx-1];
135
+ if ((handleIdx < (this.handles.length-1)) && (sliderValue>this.values[handleIdx+1]))
136
+ sliderValue = this.values[handleIdx+1];
137
+ }
138
+ sliderValue = this.getNearestValue(sliderValue);
139
+ this.values[handleIdx] = sliderValue;
140
+ this.value = this.values[0]; // assure backwards compat
141
+
142
+ this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
143
+ this.translateToPx(sliderValue);
144
+
145
+ this.drawSpans();
146
+ if (!this.dragging || !this.event) this.updateFinished();
147
+ },
148
+ setValueBy: function(delta, handleIdx) {
149
+ this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta,
150
+ handleIdx || this.activeHandleIdx || 0);
151
+ },
152
+ translateToPx: function(value) {
153
+ return Math.round(
154
+ ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) *
155
+ (value - this.range.start)) + "px";
156
+ },
157
+ translateToValue: function(offset) {
158
+ return ((offset/(this.trackLength-this.handleLength) *
159
+ (this.range.end-this.range.start)) + this.range.start);
160
+ },
161
+ getRange: function(range) {
162
+ var v = this.values.sortBy(Prototype.K);
163
+ range = range || 0;
164
+ return $R(v[range],v[range+1]);
165
+ },
166
+ minimumOffset: function(){
167
+ return(this.isVertical() ? this.alignY : this.alignX);
168
+ },
169
+ maximumOffset: function(){
170
+ return(this.isVertical() ?
171
+ (this.track.offsetHeight != 0 ? this.track.offsetHeight :
172
+ this.track.style.height.replace(/px$/,"")) - this.alignY :
173
+ (this.track.offsetWidth != 0 ? this.track.offsetWidth :
174
+ this.track.style.width.replace(/px$/,"")) - this.alignX);
175
+ },
176
+ isVertical: function(){
177
+ return (this.axis == 'vertical');
178
+ },
179
+ drawSpans: function() {
180
+ var slider = this;
181
+ if (this.spans)
182
+ $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) });
183
+ if (this.options.startSpan)
184
+ this.setSpan(this.options.startSpan,
185
+ $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
186
+ if (this.options.endSpan)
187
+ this.setSpan(this.options.endSpan,
188
+ $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
189
+ },
190
+ setSpan: function(span, range) {
191
+ if (this.isVertical()) {
192
+ span.style.top = this.translateToPx(range.start);
193
+ span.style.height = this.translateToPx(range.end - range.start + this.range.start);
194
+ } else {
195
+ span.style.left = this.translateToPx(range.start);
196
+ span.style.width = this.translateToPx(range.end - range.start + this.range.start);
197
+ }
198
+ },
199
+ updateStyles: function() {
200
+ this.handles.each( function(h){ Element.removeClassName(h, 'selected') });
201
+ Element.addClassName(this.activeHandle, 'selected');
202
+ },
203
+ startDrag: function(event) {
204
+ if (Event.isLeftClick(event)) {
205
+ if (!this.disabled){
206
+ this.active = true;
207
+
208
+ var handle = Event.element(event);
209
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
210
+ var track = handle;
211
+ if (track==this.track) {
212
+ var offsets = Position.cumulativeOffset(this.track);
213
+ this.event = event;
214
+ this.setValue(this.translateToValue(
215
+ (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
216
+ ));
217
+ var offsets = Position.cumulativeOffset(this.activeHandle);
218
+ this.offsetX = (pointer[0] - offsets[0]);
219
+ this.offsetY = (pointer[1] - offsets[1]);
220
+ } else {
221
+ // find the handle (prevents issues with Safari)
222
+ while((this.handles.indexOf(handle) == -1) && handle.parentNode)
223
+ handle = handle.parentNode;
224
+
225
+ if (this.handles.indexOf(handle)!=-1) {
226
+ this.activeHandle = handle;
227
+ this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
228
+ this.updateStyles();
229
+
230
+ var offsets = Position.cumulativeOffset(this.activeHandle);
231
+ this.offsetX = (pointer[0] - offsets[0]);
232
+ this.offsetY = (pointer[1] - offsets[1]);
233
+ }
234
+ }
235
+ }
236
+ Event.stop(event);
237
+ }
238
+ },
239
+ update: function(event) {
240
+ if (this.active) {
241
+ if (!this.dragging) this.dragging = true;
242
+ this.draw(event);
243
+ if (Prototype.Browser.WebKit) window.scrollBy(0,0);
244
+ Event.stop(event);
245
+ }
246
+ },
247
+ draw: function(event) {
248
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
249
+ var offsets = Position.cumulativeOffset(this.track);
250
+ pointer[0] -= this.offsetX + offsets[0];
251
+ pointer[1] -= this.offsetY + offsets[1];
252
+ this.event = event;
253
+ this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] ));
254
+ if (this.initialized && this.options.onSlide)
255
+ this.options.onSlide(this.values.length>1 ? this.values : this.value, this);
256
+ },
257
+ endDrag: function(event) {
258
+ if (this.active && this.dragging) {
259
+ this.finishDrag(event, true);
260
+ Event.stop(event);
261
+ }
262
+ this.active = false;
263
+ this.dragging = false;
264
+ },
265
+ finishDrag: function(event, success) {
266
+ this.active = false;
267
+ this.dragging = false;
268
+ this.updateFinished();
269
+ },
270
+ updateFinished: function() {
271
+ if (this.initialized && this.options.onChange)
272
+ this.options.onChange(this.values.length>1 ? this.values : this.value, this);
273
+ this.event = null;
274
+ }
275
+ });
@@ -0,0 +1,55 @@
1
+ // script.aculo.us sound.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
2
+
3
+ // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
4
+ //
5
+ // Based on code created by Jules Gravinese (http://www.webveteran.com/)
6
+ //
7
+ // script.aculo.us is freely distributable under the terms of an MIT-style license.
8
+ // For details, see the script.aculo.us web site: http://script.aculo.us/
9
+
10
+ Sound = {
11
+ tracks: {},
12
+ _enabled: true,
13
+ template:
14
+ new Template('<embed style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>'),
15
+ enable: function(){
16
+ Sound._enabled = true;
17
+ },
18
+ disable: function(){
19
+ Sound._enabled = false;
20
+ },
21
+ play: function(url){
22
+ if(!Sound._enabled) return;
23
+ var options = Object.extend({
24
+ track: 'global', url: url, replace: false
25
+ }, arguments[1] || {});
26
+
27
+ if(options.replace && this.tracks[options.track]) {
28
+ $R(0, this.tracks[options.track].id).each(function(id){
29
+ var sound = $('sound_'+options.track+'_'+id);
30
+ sound.Stop && sound.Stop();
31
+ sound.remove();
32
+ });
33
+ this.tracks[options.track] = null;
34
+ }
35
+
36
+ if(!this.tracks[options.track])
37
+ this.tracks[options.track] = { id: 0 };
38
+ else
39
+ this.tracks[options.track].id++;
40
+
41
+ options.id = this.tracks[options.track].id;
42
+ $$('body')[0].insert(
43
+ Prototype.Browser.IE ? new Element('bgsound',{
44
+ id: 'sound_'+options.track+'_'+options.id,
45
+ src: options.url, loop: 1, autostart: true
46
+ }) : Sound.template.evaluate(options));
47
+ }
48
+ };
49
+
50
+ if(Prototype.Browser.Gecko && navigator.userAgent.indexOf("Win") > 0){
51
+ if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('QuickTime') != -1 }))
52
+ Sound.template = new Template('<object id="sound_#{track}_#{id}" width="0" height="0" type="audio/mpeg" data="#{url}"/>');
53
+ else
54
+ Sound.play = function(){};
55
+ }
@@ -0,0 +1,965 @@
1
+ /*
2
+ *
3
+ * Copyright (c) 2007 Andrew Tetlaw & Millstream Web Software
4
+ * http://www.millstream.com.au/view/code/tablekit/
5
+ * Version: 1.3b 2008-03-23
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person
8
+ * obtaining a copy of this software and associated documentation
9
+ * files (the "Software"), to deal in the Software without
10
+ * restriction, including without limitation the rights to use, copy,
11
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
12
+ * of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be
16
+ * included in all copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ * *
27
+ */
28
+
29
+ // Use the TableKit class constructure if you'd prefer to init your tables as JS objects
30
+ var TableKit = Class.create();
31
+
32
+ TableKit.prototype = {
33
+ initialize : function(elm, options) {
34
+ var table = $(elm);
35
+ if(table.tagName !== "TABLE") {
36
+ return;
37
+ }
38
+ TableKit.register(table,Object.extend(TableKit.options,options || {}));
39
+ this.id = table.id;
40
+ var op = TableKit.option('sortable resizable editable', this.id);
41
+ if(op.sortable) {
42
+ TableKit.Sortable.init(table);
43
+ }
44
+ if(op.resizable) {
45
+ TableKit.Resizable.init(table);
46
+ }
47
+ if(op.editable) {
48
+ TableKit.Editable.init(table);
49
+ }
50
+ },
51
+ sort : function(column, order) {
52
+ TableKit.Sortable.sort(this.id, column, order);
53
+ },
54
+ resizeColumn : function(column, w) {
55
+ TableKit.Resizable.resize(this.id, column, w);
56
+ },
57
+ editCell : function(row, column) {
58
+ TableKit.Editable.editCell(this.id, row, column);
59
+ }
60
+ };
61
+
62
+ Object.extend(TableKit, {
63
+ getBodyRows : function(table) {
64
+ table = $(table);
65
+ var id = table.id;
66
+ if(!TableKit.tables[id].dom.rows) {
67
+ TableKit.tables[id].dom.rows = (table.tHead && table.tHead.rows.length > 0) ? $A(table.tBodies[0].rows) : $A(table.rows).without(table.rows[0]);
68
+ }
69
+ return TableKit.tables[id].dom.rows;
70
+ },
71
+ getHeaderCells : function(table, cell) {
72
+ if(!table) { table = $(cell).up('table'); }
73
+ var id = table.id;
74
+ if(!TableKit.tables[id].dom.head) {
75
+ TableKit.tables[id].dom.head = $A((table.tHead && table.tHead.rows.length > 0) ? table.tHead.rows[table.tHead.rows.length-1].cells : table.rows[0].cells);
76
+ }
77
+ return TableKit.tables[id].dom.head;
78
+ },
79
+ getCellIndex : function(cell) {
80
+ return $A(cell.parentNode.cells).indexOf(cell);
81
+ },
82
+ getRowIndex : function(row) {
83
+ return $A(row.parentNode.rows).indexOf(row);
84
+ },
85
+ getCellText : function(cell, refresh) {
86
+ if(!cell) { return ""; }
87
+ var data = TableKit.getCellData(cell);
88
+ if(refresh || data.refresh || !data.textContent) {
89
+ data.textContent = cell.textContent ? cell.textContent : cell.innerText;
90
+ data.refresh = false;
91
+ }
92
+ return data.textContent;
93
+ },
94
+ getCellData : function(cell) {
95
+ var t = null;
96
+ if(!cell.id) {
97
+ t = $(cell).up('table');
98
+ cell.id = t.id + "-cell-" + TableKit._getc();
99
+ }
100
+ var tblid = t ? t.id : cell.id.match(/(.*)-cell.*/)[1];
101
+ if(!TableKit.tables[tblid].dom.cells[cell.id]) {
102
+ TableKit.tables[tblid].dom.cells[cell.id] = {textContent : '', htmlContent : '', active : false};
103
+ }
104
+ return TableKit.tables[tblid].dom.cells[cell.id];
105
+ },
106
+ register : function(table, options) {
107
+ if(!table.id) {
108
+ table.id = "tablekit-table-" + TableKit._getc();
109
+ }
110
+ var id = table.id;
111
+ TableKit.tables[id] = TableKit.tables[id] ?
112
+ Object.extend(TableKit.tables[id], options || {}) :
113
+ Object.extend(
114
+ {dom : {head:null,rows:null,cells:{}},sortable:false,resizable:false,editable:false},
115
+ options || {}
116
+ );
117
+ },
118
+ notify : function(eventName, table, event) {
119
+ if(TableKit.tables[table.id] && TableKit.tables[table.id].observers && TableKit.tables[table.id].observers[eventName]) {
120
+ TableKit.tables[table.id].observers[eventName](table, event);
121
+ }
122
+ TableKit.options.observers[eventName](table, event)();
123
+ },
124
+ isSortable : function(table) {
125
+ return TableKit.tables[table.id] ? TableKit.tables[table.id].sortable : false;
126
+ },
127
+ isResizable : function(table) {
128
+ return TableKit.tables[table.id] ? TableKit.tables[table.id].resizable : false;
129
+ },
130
+ isEditable : function(table) {
131
+ return TableKit.tables[table.id] ? TableKit.tables[table.id].editable : false;
132
+ },
133
+ setup : function(o) {
134
+ Object.extend(TableKit.options, o || {} );
135
+ },
136
+ option : function(s, id, o1, o2) {
137
+ o1 = o1 || TableKit.options;
138
+ o2 = o2 || (id ? (TableKit.tables[id] ? TableKit.tables[id] : {}) : {});
139
+ var key = id + s;
140
+ if(!TableKit._opcache[key]){
141
+ TableKit._opcache[key] = $A($w(s)).inject([],function(a,v){
142
+ a.push(a[v] = o2[v] || o1[v]);
143
+ return a;
144
+ });
145
+ }
146
+ return TableKit._opcache[key];
147
+ },
148
+ e : function(event) {
149
+ return event || window.event;
150
+ },
151
+ tables : {},
152
+ _opcache : {},
153
+ options : {
154
+ autoLoad : true,
155
+ stripe : true,
156
+ sortable : false,
157
+ resizable : false,
158
+ editable : true,
159
+ rowEvenClass : 'roweven',
160
+ rowOddClass : 'rowodd',
161
+ sortableSelector : ['table.sortable'],
162
+ columnClass : 'sortcol',
163
+ descendingClass : 'sortdesc',
164
+ ascendingClass : 'sortasc',
165
+ defaultSortDirection : 1,
166
+ noSortClass : 'nosort',
167
+ sortFirstAscendingClass : 'sortfirstasc',
168
+ sortFirstDecendingClass : 'sortfirstdesc',
169
+ resizableSelector : ['table.resizable'],
170
+ minWidth : 10,
171
+ showHandle : true,
172
+ resizeOnHandleClass : 'resize-handle-active',
173
+ editableSelector : ['table.editable'],
174
+ formClassName : 'editable-cell-form',
175
+ noEditClass : 'noedit',
176
+ editAjaxURI : '/',
177
+ editAjaxOptions : {},
178
+ observers : {
179
+ 'onSortStart' : function(){},
180
+ 'onSort' : function(){},
181
+ 'onSortEnd' : function(){},
182
+ 'onResizeStart' : function(){},
183
+ 'onResize' : function(){},
184
+ 'onResizeEnd' : function(){},
185
+ 'onEditStart' : function(){},
186
+ 'onEdit' : function(){},
187
+ 'onEditEnd' : function(){}
188
+ }
189
+ },
190
+ _c : 0,
191
+ _getc : function() {return TableKit._c += 1;},
192
+ unloadTable : function(table){
193
+ table = $(table);
194
+ if(!TableKit.tables[table.id]) {return;} //if not an existing registered table return
195
+ var cells = TableKit.getHeaderCells(table);
196
+ var op = TableKit.option('sortable resizable editable noSortClass descendingClass ascendingClass columnClass sortFirstAscendingClass sortFirstDecendingClass', table.id);
197
+ //unregister all the sorting and resizing events
198
+ cells.each(function(c){
199
+ c = $(c);
200
+ if(op.sortable) {
201
+ if(!c.hasClassName(op.noSortClass)) {
202
+ Event.stopObserving(c, 'mousedown', TableKit.Sortable._sort);
203
+ c.removeClassName(op.columnClass);
204
+ c.removeClassName(op.sortFirstAscendingClass);
205
+ c.removeClassName(op.sortFirstDecendingClass);
206
+ //ensure that if table reloaded current sort is remembered via sort first class name
207
+ if(c.hasClassName(op.ascendingClass)) {
208
+ c.removeClassName(op.ascendingClass);
209
+ c.addClassName(op.sortFirstAscendingClass)
210
+ } else if (c.hasClassName(op.descendingClass)) {
211
+ c.removeClassName(op.descendingClass);
212
+ c.addClassName(op.sortFirstDecendingClass)
213
+ }
214
+ }
215
+ }
216
+ if(op.resizable) {
217
+ Event.stopObserving(c, 'mouseover', TableKit.Resizable.initDetect);
218
+ Event.stopObserving(c, 'mouseout', TableKit.Resizable.killDetect);
219
+ }
220
+ });
221
+ //unregister the editing events and cancel any open editors
222
+ if(op.editable) {
223
+ Event.stopObserving(table.tBodies[0], 'click', TableKit.Editable._editCell);
224
+ for(var c in TableKit.tables[table.id].dom.cells) {
225
+ if(TableKit.tables[table.id].dom.cells[c].active) {
226
+ var cell = $(c);
227
+ var editor = TableKit.Editable.getCellEditor(cell);
228
+ editor.cancel(cell);
229
+ }
230
+ }
231
+ }
232
+ //delete the cache
233
+ TableKit.tables[table.id].dom = {head:null,rows:null,cells:{}}; // TODO: watch this for mem leaks
234
+ },
235
+ reloadTable : function(table){
236
+ table = $(table);
237
+ TableKit.unloadTable(table);
238
+ var op = TableKit.option('sortable resizable editable', table.id);
239
+ if(op.sortable) {TableKit.Sortable.init(table);}
240
+ if(op.resizable) {TableKit.Resizable.init(table);}
241
+ if(op.editable) {TableKit.Editable.init(table);}
242
+ },
243
+ reload : function() {
244
+ for(var k in TableKit.tables) {
245
+ TableKit.reloadTable(k);
246
+ }
247
+ },
248
+ load : function() {
249
+ if(TableKit.options.autoLoad) {
250
+ if(TableKit.options.sortable) {
251
+ $A(TableKit.options.sortableSelector).each(function(s){
252
+ $$(s).each(function(t) {
253
+ TableKit.Sortable.init(t);
254
+ });
255
+ });
256
+ }
257
+ if(TableKit.options.resizable) {
258
+ $A(TableKit.options.resizableSelector).each(function(s){
259
+ $$(s).each(function(t) {
260
+ TableKit.Resizable.init(t);
261
+ });
262
+ });
263
+ }
264
+ if(TableKit.options.editable) {
265
+ $A(TableKit.options.editableSelector).each(function(s){
266
+ $$(s).each(function(t) {
267
+ TableKit.Editable.init(t);
268
+ });
269
+ });
270
+ }
271
+ }
272
+ }
273
+ });
274
+
275
+ TableKit.Rows = {
276
+ stripe : function(table) {
277
+ var rows = TableKit.getBodyRows(table);
278
+ rows.each(function(r,i) {
279
+ TableKit.Rows.addStripeClass(table,r,i);
280
+ });
281
+ },
282
+ addStripeClass : function(t,r,i) {
283
+ t = t || r.up('table');
284
+ var op = TableKit.option('rowEvenClass rowOddClass', t.id);
285
+ var css = ((i+1)%2 === 0 ? op[0] : op[1]);
286
+ // using prototype's assClassName/RemoveClassName was not efficient for large tables, hence:
287
+ var cn = r.className.split(/\s+/);
288
+ var newCn = [];
289
+ for(var x = 0, l = cn.length; x < l; x += 1) {
290
+ if(cn[x] !== op[0] && cn[x] !== op[1]) { newCn.push(cn[x]); }
291
+ }
292
+ newCn.push(css);
293
+ r.className = newCn.join(" ");
294
+ }
295
+ };
296
+
297
+ TableKit.Sortable = {
298
+ init : function(elm, options){
299
+ var table = $(elm);
300
+ if(table.tagName !== "TABLE") {
301
+ return;
302
+ }
303
+ TableKit.register(table,Object.extend(options || {},{sortable:true}));
304
+ var sortFirst;
305
+ var cells = TableKit.getHeaderCells(table);
306
+ var op = TableKit.option('noSortClass columnClass sortFirstAscendingClass sortFirstDecendingClass', table.id);
307
+ cells.each(function(c){
308
+ c = $(c);
309
+ if(!c.hasClassName(op.noSortClass)) {
310
+ Event.observe(c, 'mousedown', TableKit.Sortable._sort);
311
+ c.addClassName(op.columnClass);
312
+ if(c.hasClassName(op.sortFirstAscendingClass) || c.hasClassName(op.sortFirstDecendingClass)) {
313
+ sortFirst = c;
314
+ }
315
+ }
316
+ });
317
+
318
+ if(sortFirst) {
319
+ if(sortFirst.hasClassName(op.sortFirstAscendingClass)) {
320
+ TableKit.Sortable.sort(table, sortFirst, 1);
321
+ } else {
322
+ TableKit.Sortable.sort(table, sortFirst, -1);
323
+ }
324
+ } else { // just add row stripe classes
325
+ TableKit.Rows.stripe(table);
326
+ }
327
+ },
328
+ reload : function(table) {
329
+ table = $(table);
330
+ var cells = TableKit.getHeaderCells(table);
331
+ var op = TableKit.option('noSortClass columnClass', table.id);
332
+ cells.each(function(c){
333
+ c = $(c);
334
+ if(!c.hasClassName(op.noSortClass)) {
335
+ Event.stopObserving(c, 'mousedown', TableKit.Sortable._sort);
336
+ c.removeClassName(op.columnClass);
337
+ }
338
+ });
339
+ TableKit.Sortable.init(table);
340
+ },
341
+ _sort : function(e) {
342
+ if(TableKit.Resizable._onHandle) {return;}
343
+ e = TableKit.e(e);
344
+ Event.stop(e);
345
+ var cell = Event.element(e);
346
+ while(!(cell.tagName && cell.tagName.match(/td|th/gi))) {
347
+ cell = cell.parentNode;
348
+ }
349
+ TableKit.Sortable.sort(null, cell);
350
+ },
351
+ sort : function(table, index, order) {
352
+ var cell;
353
+ if(typeof index === 'number') {
354
+ if(!table || (table.tagName && table.tagName !== "TABLE")) {
355
+ return;
356
+ }
357
+ table = $(table);
358
+ index = Math.min(table.rows[0].cells.length, index);
359
+ index = Math.max(1, index);
360
+ index -= 1;
361
+ cell = (table.tHead && table.tHead.rows.length > 0) ? $(table.tHead.rows[table.tHead.rows.length-1].cells[index]) : $(table.rows[0].cells[index]);
362
+ } else {
363
+ cell = $(index);
364
+ table = table ? $(table) : cell.up('table');
365
+ index = TableKit.getCellIndex(cell);
366
+ }
367
+ var op = TableKit.option('noSortClass descendingClass ascendingClass defaultSortDirection', table.id);
368
+
369
+ if(cell.hasClassName(op.noSortClass)) {return;}
370
+ //TableKit.notify('onSortStart', table);
371
+ order = order ? order : op.defaultSortDirection;
372
+ var rows = TableKit.getBodyRows(table);
373
+
374
+ if(cell.hasClassName(op.ascendingClass) || cell.hasClassName(op.descendingClass)) {
375
+ rows.reverse(); // if it was already sorted we just need to reverse it.
376
+ order = cell.hasClassName(op.descendingClass) ? 1 : -1;
377
+ } else {
378
+ var datatype = TableKit.Sortable.getDataType(cell,index,table);
379
+ var tkst = TableKit.Sortable.types;
380
+ rows.sort(function(a,b) {
381
+ return order * tkst[datatype].compare(TableKit.getCellText(a.cells[index]),TableKit.getCellText(b.cells[index]));
382
+ });
383
+ }
384
+ var tb = table.tBodies[0];
385
+ var tkr = TableKit.Rows;
386
+ rows.each(function(r,i) {
387
+ tb.appendChild(r);
388
+ tkr.addStripeClass(table,r,i);
389
+ });
390
+ var hcells = TableKit.getHeaderCells(null, cell);
391
+ $A(hcells).each(function(c,i){
392
+ c = $(c);
393
+ c.removeClassName(op.ascendingClass);
394
+ c.removeClassName(op.descendingClass);
395
+ if(index === i) {
396
+ if(order === 1) {
397
+ c.addClassName(op.ascendingClass);
398
+ } else {
399
+ c.addClassName(op.descendingClass);
400
+ }
401
+ }
402
+ });
403
+ },
404
+ types : {},
405
+ detectors : [],
406
+ addSortType : function() {
407
+ $A(arguments).each(function(o){
408
+ TableKit.Sortable.types[o.name] = o;
409
+ });
410
+ },
411
+ getDataType : function(cell,index,table) {
412
+ cell = $(cell);
413
+ index = (index || index === 0) ? index : TableKit.getCellIndex(cell);
414
+
415
+ var colcache = TableKit.Sortable._coltypecache;
416
+ var cache = colcache[table.id] ? colcache[table.id] : (colcache[table.id] = {});
417
+
418
+ if(!cache[index]) {
419
+ var t = false;
420
+ // first look for a data type id on the heading row cell
421
+ if(cell.id && TableKit.Sortable.types[cell.id]) {
422
+ t = cell.id
423
+ }
424
+ if(!t) {
425
+ t = $w(cell.className).detect(function(n){ // then look for a data type classname on the heading row cell
426
+ return (TableKit.Sortable.types[n]) ? true : false;
427
+ });
428
+ }
429
+ if(!t) {
430
+ var rows = TableKit.getBodyRows(table);
431
+ cell = rows[0].cells[index]; // grab same index cell from body row to try and match data type
432
+ t = TableKit.Sortable.detectors.detect(
433
+ function(d){
434
+ return TableKit.Sortable.types[d].detect(TableKit.getCellText(cell));
435
+ });
436
+ }
437
+ cache[index] = t;
438
+ }
439
+ return cache[index];
440
+ },
441
+ _coltypecache : {}
442
+ };
443
+
444
+ TableKit.Sortable.detectors = $A($w('date-iso date date-eu date-au time currency datasize number casesensitivetext text')); // setting it here because Safari complained when I did it above...
445
+
446
+ TableKit.Sortable.Type = Class.create();
447
+ TableKit.Sortable.Type.prototype = {
448
+ initialize : function(name, options){
449
+ this.name = name;
450
+ options = Object.extend({
451
+ normal : function(v){
452
+ return v;
453
+ },
454
+ pattern : /.*/
455
+ }, options || {});
456
+ this.normal = options.normal;
457
+ this.pattern = options.pattern;
458
+ if(options.compare) {
459
+ this.compare = options.compare;
460
+ }
461
+ if(options.detect) {
462
+ this.detect = options.detect;
463
+ }
464
+ },
465
+ compare : function(a,b){
466
+ return TableKit.Sortable.Type.compare(this.normal(a), this.normal(b));
467
+ },
468
+ detect : function(v){
469
+ return this.pattern.test(v);
470
+ }
471
+ };
472
+
473
+ TableKit.Sortable.Type.compare = function(a,b) {
474
+ return a < b ? -1 : a === b ? 0 : 1;
475
+ };
476
+
477
+ TableKit.Sortable.addSortType(
478
+ new TableKit.Sortable.Type('number', {
479
+ pattern : /^[-+]?[\d]*\.?[\d]+(?:[eE][-+]?[\d]+)?/,
480
+ normal : function(v) {
481
+ // This will grab the first thing that looks like a number from a string, so you can use it to order a column of various srings containing numbers.
482
+ v = parseFloat(v.replace(/^.*?([-+]?[\d]*\.?[\d]+(?:[eE][-+]?[\d]+)?).*$/,"$1"));
483
+ return isNaN(v) ? 0 : v;
484
+ }}),
485
+ new TableKit.Sortable.Type('text',{
486
+ normal : function(v) {
487
+ return v ? v.toLowerCase() : '';
488
+ }}),
489
+ new TableKit.Sortable.Type('casesensitivetext',{pattern : /^[A-Z]+$/}),
490
+ new TableKit.Sortable.Type('datasize',{
491
+ pattern : /^[-+]?[\d]*\.?[\d]+(?:[eE][-+]?[\d]+)?\s?[k|m|g|t]b$/i,
492
+ normal : function(v) {
493
+ var r = v.match(/^([-+]?[\d]*\.?[\d]+([eE][-+]?[\d]+)?)\s?([k|m|g|t]?b)?/i);
494
+ var b = r[1] ? Number(r[1]).valueOf() : 0;
495
+ var m = r[3] ? r[3].substr(0,1).toLowerCase() : '';
496
+ var result = b;
497
+ switch(m) {
498
+ case 'k':
499
+ result = b * 1024;
500
+ break;
501
+ case 'm':
502
+ result = b * 1024 * 1024;
503
+ break;
504
+ case 'g':
505
+ result = b * 1024 * 1024 * 1024;
506
+ break;
507
+ case 't':
508
+ result = b * 1024 * 1024 * 1024 * 1024;
509
+ break;
510
+ }
511
+ return result;
512
+ }}),
513
+ new TableKit.Sortable.Type('date-au',{
514
+ pattern : /^\d{2}\/\d{2}\/\d{4}\s?(?:\d{1,2}\:\d{2}(?:\:\d{2})?\s?[a|p]?m?)?/i,
515
+ normal : function(v) {
516
+ if(!this.pattern.test(v)) {return 0;}
517
+ var r = v.match(/^(\d{2})\/(\d{2})\/(\d{4})\s?(?:(\d{1,2})\:(\d{2})(?:\:(\d{2}))?\s?([a|p]?m?))?/i);
518
+ var yr_num = r[3];
519
+ var mo_num = parseInt(r[2],10)-1;
520
+ var day_num = r[1];
521
+ var hr_num = r[4] ? r[4] : 0;
522
+ if(r[7]) {
523
+ var chr = parseInt(r[4],10);
524
+ if(r[7].toLowerCase().indexOf('p') !== -1) {
525
+ hr_num = chr < 12 ? chr + 12 : chr;
526
+ } else if(r[7].toLowerCase().indexOf('a') !== -1) {
527
+ hr_num = chr < 12 ? chr : 0;
528
+ }
529
+ }
530
+ var min_num = r[5] ? r[5] : 0;
531
+ var sec_num = r[6] ? r[6] : 0;
532
+ return new Date(yr_num, mo_num, day_num, hr_num, min_num, sec_num, 0).valueOf();
533
+ }}),
534
+ new TableKit.Sortable.Type('date-us',{
535
+ pattern : /^\d{2}\/\d{2}\/\d{4}\s?(?:\d{1,2}\:\d{2}(?:\:\d{2})?\s?[a|p]?m?)?/i,
536
+ normal : function(v) {
537
+ if(!this.pattern.test(v)) {return 0;}
538
+ var r = v.match(/^(\d{2})\/(\d{2})\/(\d{4})\s?(?:(\d{1,2})\:(\d{2})(?:\:(\d{2}))?\s?([a|p]?m?))?/i);
539
+ var yr_num = r[3];
540
+ var mo_num = parseInt(r[1],10)-1;
541
+ var day_num = r[2];
542
+ var hr_num = r[4] ? r[4] : 0;
543
+ if(r[7]) {
544
+ var chr = parseInt(r[4],10);
545
+ if(r[7].toLowerCase().indexOf('p') !== -1) {
546
+ hr_num = chr < 12 ? chr + 12 : chr;
547
+ } else if(r[7].toLowerCase().indexOf('a') !== -1) {
548
+ hr_num = chr < 12 ? chr : 0;
549
+ }
550
+ }
551
+ var min_num = r[5] ? r[5] : 0;
552
+ var sec_num = r[6] ? r[6] : 0;
553
+ return new Date(yr_num, mo_num, day_num, hr_num, min_num, sec_num, 0).valueOf();
554
+ }}),
555
+ new TableKit.Sortable.Type('date-eu',{
556
+ pattern : /^\d{2}-\d{2}-\d{4}/i,
557
+ normal : function(v) {
558
+ if(!this.pattern.test(v)) {return 0;}
559
+ var r = v.match(/^(\d{2})-(\d{2})-(\d{4})/);
560
+ var yr_num = r[3];
561
+ var mo_num = parseInt(r[2],10)-1;
562
+ var day_num = r[1];
563
+ return new Date(yr_num, mo_num, day_num).valueOf();
564
+ }}),
565
+ new TableKit.Sortable.Type('date-iso',{
566
+ pattern : /[\d]{4}-[\d]{2}-[\d]{2}(?:T[\d]{2}\:[\d]{2}(?:\:[\d]{2}(?:\.[\d]+)?)?(Z|([-+][\d]{2}:[\d]{2})?)?)?/, // 2005-03-26T19:51:34Z
567
+ normal : function(v) {
568
+ if(!this.pattern.test(v)) {return 0;}
569
+ var d = v.match(/([\d]{4})(-([\d]{2})(-([\d]{2})(T([\d]{2}):([\d]{2})(:([\d]{2})(\.([\d]+))?)?(Z|(([-+])([\d]{2}):([\d]{2})))?)?)?)?/);
570
+ var offset = 0;
571
+ var date = new Date(d[1], 0, 1);
572
+ if (d[3]) { date.setMonth(d[3] - 1) ;}
573
+ if (d[5]) { date.setDate(d[5]); }
574
+ if (d[7]) { date.setHours(d[7]); }
575
+ if (d[8]) { date.setMinutes(d[8]); }
576
+ if (d[10]) { date.setSeconds(d[10]); }
577
+ if (d[12]) { date.setMilliseconds(Number("0." + d[12]) * 1000); }
578
+ if (d[14]) {
579
+ offset = (Number(d[16]) * 60) + Number(d[17]);
580
+ offset *= ((d[15] === '-') ? 1 : -1);
581
+ }
582
+ offset -= date.getTimezoneOffset();
583
+ if(offset !== 0) {
584
+ var time = (Number(date) + (offset * 60 * 1000));
585
+ date.setTime(Number(time));
586
+ }
587
+ return date.valueOf();
588
+ }}),
589
+ new TableKit.Sortable.Type('date',{
590
+ pattern: /^(?:sun|mon|tue|wed|thu|fri|sat)\,\s\d{1,2}\s(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s\d{4}(?:\s\d{2}\:\d{2}(?:\:\d{2})?(?:\sGMT(?:[+-]\d{4})?)?)?/i, //Mon, 18 Dec 1995 17:28:35 GMT
591
+ compare : function(a,b) { // must be standard javascript date format
592
+ if(a && b) {
593
+ return TableKit.Sortable.Type.compare(new Date(a),new Date(b));
594
+ } else {
595
+ return TableKit.Sortable.Type.compare(a ? 1 : 0, b ? 1 : 0);
596
+ }
597
+ }}),
598
+ new TableKit.Sortable.Type('time',{
599
+ pattern : /^\d{1,2}\:\d{2}(?:\:\d{2})?(?:\s[a|p]m)?$/i,
600
+ compare : function(a,b) {
601
+ var d = new Date();
602
+ var ds = d.getMonth() + "/" + d.getDate() + "/" + d.getFullYear() + " ";
603
+ return TableKit.Sortable.Type.compare(new Date(ds + a),new Date(ds + b));
604
+ }}),
605
+ new TableKit.Sortable.Type('currency',{
606
+ pattern : /^[$����]/, // dollar,pound,yen,euro,generic currency symbol
607
+ normal : function(v) {
608
+ return v ? parseFloat(v.replace(/[^-\d\.]/g,'')) : 0;
609
+ }})
610
+ );
611
+
612
+ TableKit.Resizable = {
613
+ init : function(elm, options){
614
+ var table = $(elm);
615
+ if(table.tagName !== "TABLE") {return;}
616
+ TableKit.register(table,Object.extend(options || {},{resizable:true}));
617
+ var cells = TableKit.getHeaderCells(table);
618
+ cells.each(function(c){
619
+ c = $(c);
620
+ Event.observe(c, 'mouseover', TableKit.Resizable.initDetect);
621
+ Event.observe(c, 'mouseout', TableKit.Resizable.killDetect);
622
+ });
623
+ },
624
+ resize : function(table, index, w) {
625
+ var cell;
626
+ if(typeof index === 'number') {
627
+ if(!table || (table.tagName && table.tagName !== "TABLE")) {return;}
628
+ table = $(table);
629
+ index = Math.min(table.rows[0].cells.length, index);
630
+ index = Math.max(1, index);
631
+ index -= 1;
632
+ cell = (table.tHead && table.tHead.rows.length > 0) ? $(table.tHead.rows[table.tHead.rows.length-1].cells[index]) : $(table.rows[0].cells[index]);
633
+ } else {
634
+ cell = $(index);
635
+ table = table ? $(table) : cell.up('table');
636
+ index = TableKit.getCellIndex(cell);
637
+ }
638
+ var pad = parseInt(cell.getStyle('paddingLeft'),10) + parseInt(cell.getStyle('paddingRight'),10);
639
+ w = Math.max(w-pad, TableKit.option('minWidth', table.id)[0]);
640
+
641
+ cell.setStyle({'width' : w + 'px'});
642
+ },
643
+ initDetect : function(e) {
644
+ e = TableKit.e(e);
645
+ var cell = Event.element(e);
646
+ Event.observe(cell, 'mousemove', TableKit.Resizable.detectHandle);
647
+ Event.observe(cell, 'mousedown', TableKit.Resizable.startResize);
648
+ },
649
+ detectHandle : function(e) {
650
+ e = TableKit.e(e);
651
+ var cell = Event.element(e);
652
+ if(TableKit.Resizable.pointerPos(cell,Event.pointerX(e),Event.pointerY(e))){
653
+ cell.addClassName(TableKit.option('resizeOnHandleClass', cell.up('table').id)[0]);
654
+ TableKit.Resizable._onHandle = true;
655
+ } else {
656
+ cell.removeClassName(TableKit.option('resizeOnHandleClass', cell.up('table').id)[0]);
657
+ TableKit.Resizable._onHandle = false;
658
+ }
659
+ },
660
+ killDetect : function(e) {
661
+ e = TableKit.e(e);
662
+ TableKit.Resizable._onHandle = false;
663
+ var cell = Event.element(e);
664
+ Event.stopObserving(cell, 'mousemove', TableKit.Resizable.detectHandle);
665
+ Event.stopObserving(cell, 'mousedown', TableKit.Resizable.startResize);
666
+ cell.removeClassName(TableKit.option('resizeOnHandleClass', cell.up('table').id)[0]);
667
+ },
668
+ startResize : function(e) {
669
+ e = TableKit.e(e);
670
+ if(!TableKit.Resizable._onHandle) {return;}
671
+ var cell = Event.element(e);
672
+ Event.stopObserving(cell, 'mousemove', TableKit.Resizable.detectHandle);
673
+ Event.stopObserving(cell, 'mousedown', TableKit.Resizable.startResize);
674
+ Event.stopObserving(cell, 'mouseout', TableKit.Resizable.killDetect);
675
+ TableKit.Resizable._cell = cell;
676
+ var table = cell.up('table');
677
+ TableKit.Resizable._tbl = table;
678
+ if(TableKit.option('showHandle', table.id)[0]) {
679
+ TableKit.Resizable._handle = $(document.createElement('div')).addClassName('resize-handle').setStyle({
680
+ 'top' : cell.cumulativeOffset()[1] + 'px',
681
+ 'left' : Event.pointerX(e) + 'px',
682
+ 'height' : table.getDimensions().height + 'px'
683
+ });
684
+ document.body.appendChild(TableKit.Resizable._handle);
685
+ }
686
+ Event.observe(document, 'mousemove', TableKit.Resizable.drag);
687
+ Event.observe(document, 'mouseup', TableKit.Resizable.endResize);
688
+ Event.stop(e);
689
+ },
690
+ endResize : function(e) {
691
+ e = TableKit.e(e);
692
+ var cell = TableKit.Resizable._cell;
693
+ TableKit.Resizable.resize(null, cell, (Event.pointerX(e) - cell.cumulativeOffset()[0]));
694
+ Event.stopObserving(document, 'mousemove', TableKit.Resizable.drag);
695
+ Event.stopObserving(document, 'mouseup', TableKit.Resizable.endResize);
696
+ if(TableKit.option('showHandle', TableKit.Resizable._tbl.id)[0]) {
697
+ $$('div.resize-handle').each(function(elm){
698
+ document.body.removeChild(elm);
699
+ });
700
+ }
701
+ Event.observe(cell, 'mouseout', TableKit.Resizable.killDetect);
702
+ TableKit.Resizable._tbl = TableKit.Resizable._handle = TableKit.Resizable._cell = null;
703
+ Event.stop(e);
704
+ },
705
+ drag : function(e) {
706
+ e = TableKit.e(e);
707
+ if(TableKit.Resizable._handle === null) {
708
+ try {
709
+ TableKit.Resizable.resize(TableKit.Resizable._tbl, TableKit.Resizable._cell, (Event.pointerX(e) - TableKit.Resizable._cell.cumulativeOffset()[0]));
710
+ } catch(e) {}
711
+ } else {
712
+ TableKit.Resizable._handle.setStyle({'left' : Event.pointerX(e) + 'px'});
713
+ }
714
+ return false;
715
+ },
716
+ pointerPos : function(element, x, y) {
717
+ var offset = $(element).cumulativeOffset();
718
+ return (y >= offset[1] &&
719
+ y < offset[1] + element.offsetHeight &&
720
+ x >= offset[0] + element.offsetWidth - 5 &&
721
+ x < offset[0] + element.offsetWidth);
722
+ },
723
+ _onHandle : false,
724
+ _cell : null,
725
+ _tbl : null,
726
+ _handle : null
727
+ };
728
+
729
+
730
+ TableKit.Editable = {
731
+ init : function(elm, options){
732
+ var table = $(elm);
733
+ if(table.tagName !== "TABLE") {return;}
734
+ TableKit.register(table,Object.extend(options || {},{editable:true}));
735
+ Event.observe(table.tBodies[0], 'click', TableKit.Editable._editCell);
736
+ Event.observe(table.tHead, 'click', TableKit.Editable._editCell);
737
+ },
738
+ _editCell : function(e) {
739
+ e = TableKit.e(e);
740
+ var cell = Event.findElement(e,'td') || Event.findElement(e,'th');
741
+ if (Event.findElement(e,'a')) {
742
+ return false;
743
+ }
744
+ if(cell) {
745
+ TableKit.Editable.editCell(null, cell, null, e);
746
+ } else {
747
+ return false;
748
+ }
749
+ },
750
+ editCell : function(table, index, cindex, event) {
751
+ var cell, row;
752
+ if(typeof index === 'number') {
753
+ if(!table || (table.tagName && table.tagName !== "TABLE")) {return;}
754
+ table = $(table);
755
+ index = Math.min(table.tBodies[0].rows.length, index);
756
+ index = Math.max(1, index);
757
+ index -= 1;
758
+ cindex = Math.min(table.rows[0].cells.length, cindex);
759
+ cindex = Math.max(1, cindex);
760
+ cindex -= 1;
761
+ row = $(table.tBodies[0].rows[index]);
762
+ cell = $(row.cells[cindex]);
763
+ } else {
764
+ cell = $(event ? (Event.findElement(event, 'td') || Event.findElement(event, 'th')) : index);
765
+ table = (table && table.tagName && table.tagName !== "TABLE") ? $(table) : cell.up('table');
766
+ row = cell.up('tr');
767
+ }
768
+ var op = TableKit.option('noEditClass', table.id);
769
+ if(cell.hasClassName(op.noEditClass)) {return;}
770
+
771
+ var head = $(TableKit.getHeaderCells(table, cell)[TableKit.getCellIndex(cell)]);
772
+ if(head.hasClassName(op.noEditClass)) {return;}
773
+
774
+ var data = TableKit.getCellData(cell);
775
+ if(data.active) {return;}
776
+ data.htmlContent = cell.innerHTML;
777
+ var ftype = TableKit.Editable.getCellEditor(cell,null,head,event);
778
+ ftype.edit(cell, event);
779
+ data.active = true;
780
+ },
781
+ getCellEditor : function(cell, table, head, event) {
782
+ // cannot use cell.select('p'). Why ???
783
+ var head = head ? head : $(TableKit.getHeaderCells(table, cell)[TableKit.getCellIndex(cell)]);
784
+ var ftype = (head !== cell && event && (event.shiftKey || cell.getElementsByTagName('p')[0])) ? TableKit.Editable.types['multi-line-input'] : TableKit.Editable.types['text-input'];
785
+ if(head.id && TableKit.Editable.types[head.id]) {
786
+ ftype = TableKit.Editable.types[head.id];
787
+ } else {
788
+ var n = $w(head.className).detect(function(n){
789
+ return (TableKit.Editable.types[n]) ? true : false;
790
+ });
791
+ ftype = n ? TableKit.Editable.types[n] : ftype;
792
+ }
793
+ return ftype;
794
+ },
795
+ types : {},
796
+ addCellEditor : function(o) {
797
+ if(o && o.name) { TableKit.Editable.types[o.name] = o; }
798
+ }
799
+ };
800
+
801
+ TableKit.Editable.CellEditor = Class.create();
802
+ TableKit.Editable.CellEditor.prototype = {
803
+ initialize : function(name, options){
804
+ this.name = name;
805
+ this.options = Object.extend({
806
+ element : 'input',
807
+ attributes : {name : 'value', type : 'text'},
808
+ selectOptions : [],
809
+ showSubmit : true,
810
+ submitText : 'OK',
811
+ showCancel : true,
812
+ cancelText : 'Cancel',
813
+ ajaxURI : null,
814
+ ajaxOptions : null
815
+ }, options || {});
816
+ },
817
+ edit : function(cell) {
818
+ this.getCellText(cell);
819
+ },
820
+ getCellText : function(cell) {
821
+ if(!cell) { return ""; }
822
+ var row = cell.up('tr');
823
+ var table = cell.up('table');
824
+ var dom_id = table.id;
825
+ var attr = dom_id.replace(/^\d+_/,'');
826
+ var node_id = dom_id.match(/^\d+/);
827
+ var url = '/nodes/' + node_id + '/cell_edit?row=' + TableKit.getRowIndex(row) + '&cell=' + TableKit.getCellIndex(cell) + '&attr=' + attr;
828
+ var editor = this;
829
+ new Ajax.Request(url, {
830
+ method:'get',
831
+ onSuccess: function(transport) {
832
+ var data = transport.responseText;
833
+ editor.showForm(cell,data);
834
+ }});
835
+ },
836
+ showForm : function(cell, txt) {
837
+ cell = $(cell);
838
+
839
+ var op = this.options;
840
+ var element = txt.match(/\n/) ? 'textarea' : op.element;
841
+ var table = cell.up('table');
842
+
843
+ var form = $(document.createElement("form"));
844
+ form.id = cell.id + '-form';
845
+ form.addClassName(TableKit.option('formClassName', table.id)[0]);
846
+ form.onsubmit = this._submit.bindAsEventListener(this);
847
+
848
+ var field = document.createElement(element);
849
+ $H(op.attributes).each(function(v){
850
+ field[v.key] = v.value;
851
+ });
852
+ switch(element) {
853
+ case 'input':
854
+ case 'textarea':
855
+ field.value = txt;
856
+ break;
857
+
858
+ case 'select':
859
+ $A(op.selectOptions).each(function(v){
860
+ field.options[field.options.length] = new Option(v[0], v[1]);
861
+ if(txt === v[1]) {
862
+ field.options[field.options.length-1].selected = 'selected';
863
+ }
864
+ });
865
+ break;
866
+ }
867
+ form.appendChild(field);
868
+ if(element === 'textarea') {
869
+ form.appendChild(document.createElement("br"));
870
+ var okButton = document.createElement("input");
871
+ okButton.type = "submit";
872
+ okButton.value = op.submitText;
873
+ okButton.className = 'editor_ok_button';
874
+ form.appendChild(okButton);
875
+ }
876
+ //if(op.showCancel) {
877
+ // var cancelLink = document.createElement("a");
878
+ // cancelLink.href = "#";
879
+ // cancelLink.appendChild(document.createTextNode(op.cancelText));
880
+ // cancelLink.onclick = this._cancel.bindAsEventListener(this);
881
+ // cancelLink.className = 'editor_cancel';
882
+ // form.appendChild(cancelLink);
883
+ //}
884
+ cell.innerHTML = '';
885
+ cell.appendChild(form);
886
+ form.focusFirstElement();
887
+ },
888
+ _submit : function(e) {
889
+ var cell = Event.findElement(e,'td') || Event.findElement(e,'th');
890
+ var form = Event.findElement(e,'form');
891
+ Event.stop(e);
892
+ this.submit(cell,form);
893
+ },
894
+ submit : function(cell, form) {
895
+ var op = this.options;
896
+ form = form ? form : cell.down('form');
897
+ var head = $(TableKit.getHeaderCells(null, cell)[TableKit.getCellIndex(cell)]);
898
+ var row = cell.up('tr');
899
+ var table = cell.up('table');
900
+ var dom_id = table.id;
901
+ var attr = dom_id.replace(/^\d+_/,'');
902
+ var node_id = dom_id.match(/^\d+/);
903
+ var s = '&row=' + TableKit.getRowIndex(row) + '&cell=' + TableKit.getCellIndex(cell) + '&attr=' + attr + '&' + Form.serialize(form);
904
+ this.ajax = new Ajax.Updater(cell, '/nodes/' + node_id + '/cell_update', Object.extend(op.ajaxOptions || TableKit.option('editAjaxOptions', table.id)[0], {
905
+ postBody : s,
906
+ onComplete : function() {
907
+ var data = TableKit.getCellData(cell);
908
+ data.active = false;
909
+ data.refresh = true; // mark cell cache for refreshing, in case cell contents has changed and sorting is applied
910
+ }
911
+ }));
912
+ },
913
+ _cancel : function(e) {
914
+ var cell = Event.findElement(e,'td') || Event.findElement(e,'th');
915
+ Event.stop(e);
916
+ this.cancel(cell);
917
+ },
918
+ cancel : function(cell) {
919
+ this.ajax = null;
920
+ var data = TableKit.getCellData(cell);
921
+ cell.innerHTML = data.htmlContent;
922
+ data.htmlContent = '';
923
+ data.active = false;
924
+ },
925
+ ajax : null
926
+ };
927
+
928
+ TableKit.Editable.textInput = function(n,attributes) {
929
+ TableKit.Editable.addCellEditor(new TableKit.Editable.CellEditor(n, {
930
+ element : 'input',
931
+ attributes : Object.extend({name : 'value', type : 'text'}, attributes||{})
932
+ }));
933
+ };
934
+ TableKit.Editable.textInput('text-input');
935
+
936
+ TableKit.Editable.multiLineInput = function(n,attributes) {
937
+ TableKit.Editable.addCellEditor(new TableKit.Editable.CellEditor(n, {
938
+ element : 'textarea',
939
+ attributes : Object.extend({name : 'value', rows : '5', cols : '20'}, attributes||{})
940
+ }));
941
+ };
942
+ TableKit.Editable.multiLineInput('multi-line-input');
943
+
944
+ TableKit.Editable.selectInput = function(n,attributes,selectOptions) {
945
+ TableKit.Editable.addCellEditor(new TableKit.Editable.CellEditor(n, {
946
+ element : 'select',
947
+ attributes : Object.extend({name : 'value'}, attributes||{}),
948
+ 'selectOptions' : selectOptions
949
+ }));
950
+ };
951
+
952
+ /*
953
+ TableKit.Bench = {
954
+ bench : [],
955
+ start : function(){
956
+ TableKit.Bench.bench[0] = new Date().getTime();
957
+ },
958
+ end : function(s){
959
+ TableKit.Bench.bench[1] = new Date().getTime();
960
+ alert(s + ' ' + ((TableKit.Bench.bench[1]-TableKit.Bench.bench[0])/1000)+' seconds.') //console.log(s + ' ' + ((TableKit.Bench.bench[1]-TableKit.Bench.bench[0])/1000)+' seconds.')
961
+ TableKit.Bench.bench = [];
962
+ }
963
+ } */
964
+
965
+ document.observe("dom:loaded", TableKit.load);