activeldap 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. data/CHANGES +6 -0
  2. data/README +1 -0
  3. data/lib/active_ldap/get_text_support.rb +3 -1
  4. data/lib/active_ldap.rb +1 -1
  5. metadata +5 -321
  6. data/examples/al-admin/README +0 -182
  7. data/examples/al-admin/Rakefile +0 -16
  8. data/examples/al-admin/app/controllers/account_controller.rb +0 -60
  9. data/examples/al-admin/app/controllers/application_controller.rb +0 -46
  10. data/examples/al-admin/app/controllers/attributes_controller.rb +0 -17
  11. data/examples/al-admin/app/controllers/directory_controller.rb +0 -49
  12. data/examples/al-admin/app/controllers/object_classes_controller.rb +0 -17
  13. data/examples/al-admin/app/controllers/syntaxes_controller.rb +0 -17
  14. data/examples/al-admin/app/controllers/users_controller.rb +0 -66
  15. data/examples/al-admin/app/controllers/welcome_controller.rb +0 -12
  16. data/examples/al-admin/app/helpers/account_helper.rb +0 -2
  17. data/examples/al-admin/app/helpers/application_helper.rb +0 -46
  18. data/examples/al-admin/app/helpers/attributes_helper.rb +0 -15
  19. data/examples/al-admin/app/helpers/directory_helper.rb +0 -7
  20. data/examples/al-admin/app/helpers/object_classes_helper.rb +0 -10
  21. data/examples/al-admin/app/helpers/syntaxes_helper.rb +0 -10
  22. data/examples/al-admin/app/helpers/url_helper.rb +0 -17
  23. data/examples/al-admin/app/helpers/users_helper.rb +0 -17
  24. data/examples/al-admin/app/helpers/welcome_helper.rb +0 -2
  25. data/examples/al-admin/app/models/entry.rb +0 -23
  26. data/examples/al-admin/app/models/ldap_user.rb +0 -58
  27. data/examples/al-admin/app/models/user.rb +0 -91
  28. data/examples/al-admin/app/views/_entry/_attributes_information.html.erb +0 -29
  29. data/examples/al-admin/app/views/_entry/_entry.html.erb +0 -15
  30. data/examples/al-admin/app/views/_schema/_aliases.html.erb +0 -7
  31. data/examples/al-admin/app/views/_switcher/_after.html.erb +0 -2
  32. data/examples/al-admin/app/views/_switcher/_before.html.erb +0 -5
  33. data/examples/al-admin/app/views/account/login.html.erb +0 -26
  34. data/examples/al-admin/app/views/account/sign_up.html.erb +0 -29
  35. data/examples/al-admin/app/views/attributes/_attributes.html.erb +0 -19
  36. data/examples/al-admin/app/views/attributes/_detail.html.erb +0 -29
  37. data/examples/al-admin/app/views/attributes/index.html.erb +0 -3
  38. data/examples/al-admin/app/views/attributes/show.html.erb +0 -31
  39. data/examples/al-admin/app/views/directory/_tree.html.erb +0 -10
  40. data/examples/al-admin/app/views/directory/_tree_view_js.html.erb +0 -25
  41. data/examples/al-admin/app/views/directory/index.html.erb +0 -13
  42. data/examples/al-admin/app/views/directory/populate.html.erb +0 -2
  43. data/examples/al-admin/app/views/layouts/_footer.html.erb +0 -11
  44. data/examples/al-admin/app/views/layouts/_header_menu.html.erb +0 -10
  45. data/examples/al-admin/app/views/layouts/_main_menu.html.erb +0 -18
  46. data/examples/al-admin/app/views/layouts/application.html.erb +0 -57
  47. data/examples/al-admin/app/views/object_classes/_attributes.html.erb +0 -28
  48. data/examples/al-admin/app/views/object_classes/_object_classes.html.erb +0 -19
  49. data/examples/al-admin/app/views/object_classes/index.html.erb +0 -3
  50. data/examples/al-admin/app/views/object_classes/show.html.erb +0 -39
  51. data/examples/al-admin/app/views/syntaxes/_detail.html.erb +0 -14
  52. data/examples/al-admin/app/views/syntaxes/_syntaxes.html.erb +0 -19
  53. data/examples/al-admin/app/views/syntaxes/index.html.erb +0 -3
  54. data/examples/al-admin/app/views/syntaxes/show.html.erb +0 -22
  55. data/examples/al-admin/app/views/users/_attributes_update_form.html.erb +0 -42
  56. data/examples/al-admin/app/views/users/_form.html.erb +0 -13
  57. data/examples/al-admin/app/views/users/_object_classes_update_form.html.erb +0 -46
  58. data/examples/al-admin/app/views/users/_password_change_form.html.erb +0 -20
  59. data/examples/al-admin/app/views/users/edit.html.erb +0 -15
  60. data/examples/al-admin/app/views/users/index.html.erb +0 -10
  61. data/examples/al-admin/app/views/users/show.html.erb +0 -11
  62. data/examples/al-admin/app/views/welcome/index.html.erb +0 -13
  63. data/examples/al-admin/config/boot.rb +0 -110
  64. data/examples/al-admin/config/database.yml.example +0 -19
  65. data/examples/al-admin/config/environment.rb +0 -73
  66. data/examples/al-admin/config/environments/development.rb +0 -17
  67. data/examples/al-admin/config/environments/production.rb +0 -24
  68. data/examples/al-admin/config/environments/test.rb +0 -22
  69. data/examples/al-admin/config/initializers/exception_notifier.rb +0 -2
  70. data/examples/al-admin/config/initializers/fast_gettext.rb +0 -3
  71. data/examples/al-admin/config/initializers/inflections.rb +0 -10
  72. data/examples/al-admin/config/initializers/mime_types.rb +0 -5
  73. data/examples/al-admin/config/initializers/session_store.rb +0 -23
  74. data/examples/al-admin/config/ldap.yml.example +0 -21
  75. data/examples/al-admin/config/routes.rb +0 -58
  76. data/examples/al-admin/config/session_secret.txt +0 -1
  77. data/examples/al-admin/config.ru +0 -7
  78. data/examples/al-admin/db/migrate/001_create_users.rb +0 -16
  79. data/examples/al-admin/db/schema.rb +0 -23
  80. data/examples/al-admin/lib/authenticated_system.rb +0 -124
  81. data/examples/al-admin/lib/authenticated_test_helper.rb +0 -113
  82. data/examples/al-admin/lib/ldap_test_helper.rb +0 -38
  83. data/examples/al-admin/lib/tasks/testing.rake +0 -10
  84. data/examples/al-admin/po/en/al-admin.po +0 -343
  85. data/examples/al-admin/po/ja/al-admin.po +0 -343
  86. data/examples/al-admin/po/nl/al-admin.po +0 -380
  87. data/examples/al-admin/public/.htaccess +0 -40
  88. data/examples/al-admin/public/404.html +0 -30
  89. data/examples/al-admin/public/500.html +0 -30
  90. data/examples/al-admin/public/dispatch.cgi +0 -10
  91. data/examples/al-admin/public/dispatch.fcgi +0 -24
  92. data/examples/al-admin/public/dispatch.rb +0 -10
  93. data/examples/al-admin/public/favicon.ico +0 -0
  94. data/examples/al-admin/public/images/active-ldap.svg +0 -6351
  95. data/examples/al-admin/public/images/al-admin.png +0 -0
  96. data/examples/al-admin/public/images/al-admin.svg +0 -6371
  97. data/examples/al-admin/public/images/header-background.png +0 -0
  98. data/examples/al-admin/public/images/header-background.svg +0 -99
  99. data/examples/al-admin/public/images/rails.png +0 -0
  100. data/examples/al-admin/public/images/spinelz/accordion_tab_left_active.gif +0 -0
  101. data/examples/al-admin/public/images/spinelz/accordion_tab_left_inactive.gif +0 -0
  102. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_active.gif +0 -0
  103. data/examples/al-admin/public/images/spinelz/accordion_tab_middle_inactive.gif +0 -0
  104. data/examples/al-admin/public/images/spinelz/accordion_tab_right_active.gif +0 -0
  105. data/examples/al-admin/public/images/spinelz/accordion_tab_right_inactive.gif +0 -0
  106. data/examples/al-admin/public/images/spinelz/balloon_back.gif +0 -0
  107. data/examples/al-admin/public/images/spinelz/balloon_bottom_left.gif +0 -0
  108. data/examples/al-admin/public/images/spinelz/balloon_bottom_middle.gif +0 -0
  109. data/examples/al-admin/public/images/spinelz/balloon_bottom_right.gif +0 -0
  110. data/examples/al-admin/public/images/spinelz/balloon_left_down_arrow.gif +0 -0
  111. data/examples/al-admin/public/images/spinelz/balloon_left_up_arrow.gif +0 -0
  112. data/examples/al-admin/public/images/spinelz/balloon_middle_left.gif +0 -0
  113. data/examples/al-admin/public/images/spinelz/balloon_middle_right.gif +0 -0
  114. data/examples/al-admin/public/images/spinelz/balloon_right_down_arrow.gif +0 -0
  115. data/examples/al-admin/public/images/spinelz/balloon_right_up_arrow.gif +0 -0
  116. data/examples/al-admin/public/images/spinelz/balloon_top_left.gif +0 -0
  117. data/examples/al-admin/public/images/spinelz/balloon_top_middle.gif +0 -0
  118. data/examples/al-admin/public/images/spinelz/balloon_top_right.gif +0 -0
  119. data/examples/al-admin/public/images/spinelz/barchart_h.gif +0 -0
  120. data/examples/al-admin/public/images/spinelz/barchart_v.gif +0 -0
  121. data/examples/al-admin/public/images/spinelz/button.gif +0 -0
  122. data/examples/al-admin/public/images/spinelz/calendar_default_handler.gif +0 -0
  123. data/examples/al-admin/public/images/spinelz/calendar_delete.gif +0 -0
  124. data/examples/al-admin/public/images/spinelz/calendar_next.gif +0 -0
  125. data/examples/al-admin/public/images/spinelz/calendar_next_second.gif +0 -0
  126. data/examples/al-admin/public/images/spinelz/calendar_pre.gif +0 -0
  127. data/examples/al-admin/public/images/spinelz/calendar_pre_second.gif +0 -0
  128. data/examples/al-admin/public/images/spinelz/calendar_private_icon.gif +0 -0
  129. data/examples/al-admin/public/images/spinelz/calendar_schedule.gif +0 -0
  130. data/examples/al-admin/public/images/spinelz/calender_back.gif +0 -0
  131. data/examples/al-admin/public/images/spinelz/calender_back_second.gif +0 -0
  132. data/examples/al-admin/public/images/spinelz/datepicker2_back.gif +0 -0
  133. data/examples/al-admin/public/images/spinelz/datepicker2_back_second.gif +0 -0
  134. data/examples/al-admin/public/images/spinelz/datepicker2_next.gif +0 -0
  135. data/examples/al-admin/public/images/spinelz/datepicker2_next_second.gif +0 -0
  136. data/examples/al-admin/public/images/spinelz/datepicker2_pre.gif +0 -0
  137. data/examples/al-admin/public/images/spinelz/datepicker2_pre_second.gif +0 -0
  138. data/examples/al-admin/public/images/spinelz/datepicker_back.gif +0 -0
  139. data/examples/al-admin/public/images/spinelz/datepicker_back_second.gif +0 -0
  140. data/examples/al-admin/public/images/spinelz/datepicker_next.gif +0 -0
  141. data/examples/al-admin/public/images/spinelz/datepicker_next_second.gif +0 -0
  142. data/examples/al-admin/public/images/spinelz/datepicker_pre.gif +0 -0
  143. data/examples/al-admin/public/images/spinelz/datepicker_pre_second.gif +0 -0
  144. data/examples/al-admin/public/images/spinelz/grid_down.gif +0 -0
  145. data/examples/al-admin/public/images/spinelz/grid_state.gif +0 -0
  146. data/examples/al-admin/public/images/spinelz/grid_up.gif +0 -0
  147. data/examples/al-admin/public/images/spinelz/icon_day.gif +0 -0
  148. data/examples/al-admin/public/images/spinelz/icon_month.gif +0 -0
  149. data/examples/al-admin/public/images/spinelz/icon_week.gif +0 -0
  150. data/examples/al-admin/public/images/spinelz/menubar_back.gif +0 -0
  151. data/examples/al-admin/public/images/spinelz/menubar_subcontents_back.gif +0 -0
  152. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_active.gif +0 -0
  153. data/examples/al-admin/public/images/spinelz/navPanel_tab_left_inactive.gif +0 -0
  154. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_active.gif +0 -0
  155. data/examples/al-admin/public/images/spinelz/navPanel_tab_middle_inactive.gif +0 -0
  156. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_active.gif +0 -0
  157. data/examples/al-admin/public/images/spinelz/navPanel_tab_right_inactive.gif +0 -0
  158. data/examples/al-admin/public/images/spinelz/select_date.gif +0 -0
  159. data/examples/al-admin/public/images/spinelz/selectabletable_selected.gif +0 -0
  160. data/examples/al-admin/public/images/spinelz/sideBarBox_about.gif +0 -0
  161. data/examples/al-admin/public/images/spinelz/sideBarBox_menu.gif +0 -0
  162. data/examples/al-admin/public/images/spinelz/sideBarBox_sample.gif +0 -0
  163. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomActive.gif +0 -0
  164. data/examples/al-admin/public/images/spinelz/sideBarBox_tabBottomInactive.gif +0 -0
  165. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive.gif +0 -0
  166. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleActive2.gif +0 -0
  167. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive.gif +0 -0
  168. data/examples/al-admin/public/images/spinelz/sideBarBox_tabMiddleInactive2.gif +0 -0
  169. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopActive.gif +0 -0
  170. data/examples/al-admin/public/images/spinelz/sideBarBox_tabTopInactive.gif +0 -0
  171. data/examples/al-admin/public/images/spinelz/sideBarBox_tabbar.gif +0 -0
  172. data/examples/al-admin/public/images/spinelz/sortableTable_down.gif +0 -0
  173. data/examples/al-admin/public/images/spinelz/sortableTable_normal.gif +0 -0
  174. data/examples/al-admin/public/images/spinelz/sortableTable_up.gif +0 -0
  175. data/examples/al-admin/public/images/spinelz/switcher_close.gif +0 -0
  176. data/examples/al-admin/public/images/spinelz/switcher_open.gif +0 -0
  177. data/examples/al-admin/public/images/spinelz/tabBox_close.gif +0 -0
  178. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftActive.gif +0 -0
  179. data/examples/al-admin/public/images/spinelz/tabBox_tabLeftInactive.gif +0 -0
  180. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleActive.gif +0 -0
  181. data/examples/al-admin/public/images/spinelz/tabBox_tabMiddleInactive.gif +0 -0
  182. data/examples/al-admin/public/images/spinelz/tabBox_tabRightActive.gif +0 -0
  183. data/examples/al-admin/public/images/spinelz/tabBox_tabRightInactive.gif +0 -0
  184. data/examples/al-admin/public/images/spinelz/tab_bar.gif +0 -0
  185. data/examples/al-admin/public/images/spinelz/table_back.gif +0 -0
  186. data/examples/al-admin/public/images/spinelz/timepicker_clock.gif +0 -0
  187. data/examples/al-admin/public/images/spinelz/toolbar_close.gif +0 -0
  188. data/examples/al-admin/public/images/spinelz/toolbar_left.gif +0 -0
  189. data/examples/al-admin/public/images/spinelz/toolbar_max.gif +0 -0
  190. data/examples/al-admin/public/images/spinelz/toolbar_middle.gif +0 -0
  191. data/examples/al-admin/public/images/spinelz/toolbar_min.gif +0 -0
  192. data/examples/al-admin/public/images/spinelz/toolbar_next.gif +0 -0
  193. data/examples/al-admin/public/images/spinelz/toolbar_right.gif +0 -0
  194. data/examples/al-admin/public/images/spinelz/treeview_dir.gif +0 -0
  195. data/examples/al-admin/public/images/spinelz/treeview_file.gif +0 -0
  196. data/examples/al-admin/public/images/spinelz/treeview_group.gif +0 -0
  197. data/examples/al-admin/public/images/spinelz/treeview_group_special.gif +0 -0
  198. data/examples/al-admin/public/images/spinelz/treeview_state.gif +0 -0
  199. data/examples/al-admin/public/images/spinelz/treeview_user.gif +0 -0
  200. data/examples/al-admin/public/images/spinelz/window_bottom_left.gif +0 -0
  201. data/examples/al-admin/public/images/spinelz/window_bottom_middle.gif +0 -0
  202. data/examples/al-admin/public/images/spinelz/window_bottom_right.gif +0 -0
  203. data/examples/al-admin/public/images/spinelz/window_close.gif +0 -0
  204. data/examples/al-admin/public/images/spinelz/window_max.gif +0 -0
  205. data/examples/al-admin/public/images/spinelz/window_middle_left.gif +0 -0
  206. data/examples/al-admin/public/images/spinelz/window_middle_right.gif +0 -0
  207. data/examples/al-admin/public/images/spinelz/window_min.gif +0 -0
  208. data/examples/al-admin/public/images/spinelz/window_top_left.gif +0 -0
  209. data/examples/al-admin/public/images/spinelz/window_top_middle.gif +0 -0
  210. data/examples/al-admin/public/images/spinelz/window_top_right.gif +0 -0
  211. data/examples/al-admin/public/javascripts/application.js +0 -2
  212. data/examples/al-admin/public/javascripts/controls.js +0 -963
  213. data/examples/al-admin/public/javascripts/dragdrop.js +0 -973
  214. data/examples/al-admin/public/javascripts/effects.js +0 -1128
  215. data/examples/al-admin/public/javascripts/prototype.js +0 -4320
  216. data/examples/al-admin/public/javascripts/spinelz/accordion.js +0 -185
  217. data/examples/al-admin/public/javascripts/spinelz/ajaxHistory.js +0 -157
  218. data/examples/al-admin/public/javascripts/spinelz/balloon.js +0 -287
  219. data/examples/al-admin/public/javascripts/spinelz/barchart.js +0 -524
  220. data/examples/al-admin/public/javascripts/spinelz/calendar.js +0 -3012
  221. data/examples/al-admin/public/javascripts/spinelz/colorpicker.js +0 -128
  222. data/examples/al-admin/public/javascripts/spinelz/datepicker.js +0 -438
  223. data/examples/al-admin/public/javascripts/spinelz/grid.js +0 -1391
  224. data/examples/al-admin/public/javascripts/spinelz/grid_resizeEx.js +0 -100
  225. data/examples/al-admin/public/javascripts/spinelz/grid_sortabletableEx.js +0 -129
  226. data/examples/al-admin/public/javascripts/spinelz/inplaceEditorEx.js +0 -148
  227. data/examples/al-admin/public/javascripts/spinelz/menubar.js +0 -232
  228. data/examples/al-admin/public/javascripts/spinelz/navPanel.js +0 -170
  229. data/examples/al-admin/public/javascripts/spinelz/selectableTable.js +0 -433
  230. data/examples/al-admin/public/javascripts/spinelz/sideBarBox.js +0 -282
  231. data/examples/al-admin/public/javascripts/spinelz/sideBarBox_effects.js +0 -83
  232. data/examples/al-admin/public/javascripts/spinelz/sortableTable.js +0 -270
  233. data/examples/al-admin/public/javascripts/spinelz/switcher.js +0 -78
  234. data/examples/al-admin/public/javascripts/spinelz/tabBox.js +0 -469
  235. data/examples/al-admin/public/javascripts/spinelz/timepicker.js +0 -384
  236. data/examples/al-admin/public/javascripts/spinelz/toolbar.js +0 -152
  237. data/examples/al-admin/public/javascripts/spinelz/treeview.js +0 -703
  238. data/examples/al-admin/public/javascripts/spinelz/window.js +0 -641
  239. data/examples/al-admin/public/javascripts/spinelz/window_resizeEx.js +0 -130
  240. data/examples/al-admin/public/javascripts/spinelz_lib/builder.js +0 -131
  241. data/examples/al-admin/public/javascripts/spinelz_lib/controls.js +0 -835
  242. data/examples/al-admin/public/javascripts/spinelz_lib/dragdrop.js +0 -944
  243. data/examples/al-admin/public/javascripts/spinelz_lib/effects.js +0 -1090
  244. data/examples/al-admin/public/javascripts/spinelz_lib/json.js +0 -139
  245. data/examples/al-admin/public/javascripts/spinelz_lib/prototype.js +0 -2515
  246. data/examples/al-admin/public/javascripts/spinelz_lib/resize.js +0 -215
  247. data/examples/al-admin/public/javascripts/spinelz_lib/scriptaculous.js +0 -51
  248. data/examples/al-admin/public/javascripts/spinelz_lib/slider.js +0 -278
  249. data/examples/al-admin/public/javascripts/spinelz_lib/spinelz_util.js +0 -1266
  250. data/examples/al-admin/public/javascripts/spinelz_lib/unittest.js +0 -564
  251. data/examples/al-admin/public/robots.txt +0 -1
  252. data/examples/al-admin/public/stylesheets/account.css +0 -41
  253. data/examples/al-admin/public/stylesheets/attributes.css +0 -1
  254. data/examples/al-admin/public/stylesheets/base.css +0 -104
  255. data/examples/al-admin/public/stylesheets/detail.css +0 -36
  256. data/examples/al-admin/public/stylesheets/directory.css +0 -22
  257. data/examples/al-admin/public/stylesheets/object-classes.css +0 -6
  258. data/examples/al-admin/public/stylesheets/rails.css +0 -35
  259. data/examples/al-admin/public/stylesheets/spinelz/accordion.css +0 -59
  260. data/examples/al-admin/public/stylesheets/spinelz/balloon.css +0 -151
  261. data/examples/al-admin/public/stylesheets/spinelz/calendar.css +0 -564
  262. data/examples/al-admin/public/stylesheets/spinelz/datepicker.css +0 -175
  263. data/examples/al-admin/public/stylesheets/spinelz/grid.css +0 -137
  264. data/examples/al-admin/public/stylesheets/spinelz/menubar.css +0 -78
  265. data/examples/al-admin/public/stylesheets/spinelz/modal.css +0 -22
  266. data/examples/al-admin/public/stylesheets/spinelz/navPanel.css +0 -58
  267. data/examples/al-admin/public/stylesheets/spinelz/selectableTable.css +0 -28
  268. data/examples/al-admin/public/stylesheets/spinelz/sideBarBox.css +0 -82
  269. data/examples/al-admin/public/stylesheets/spinelz/sortableTable.css +0 -51
  270. data/examples/al-admin/public/stylesheets/spinelz/switcher.css +0 -23
  271. data/examples/al-admin/public/stylesheets/spinelz/tabBox.css +0 -94
  272. data/examples/al-admin/public/stylesheets/spinelz/timepicker.css +0 -508
  273. data/examples/al-admin/public/stylesheets/spinelz/toolbar.css +0 -82
  274. data/examples/al-admin/public/stylesheets/spinelz/treeview.css +0 -121
  275. data/examples/al-admin/public/stylesheets/spinelz/window.css +0 -140
  276. data/examples/al-admin/public/stylesheets/structure.css +0 -81
  277. data/examples/al-admin/public/stylesheets/syntaxes.css +0 -1
  278. data/examples/al-admin/public/stylesheets/users.css +0 -13
  279. data/examples/al-admin/public/stylesheets/welcome.css +0 -0
  280. data/examples/al-admin/script/about +0 -3
  281. data/examples/al-admin/script/console +0 -3
  282. data/examples/al-admin/script/dbconsole +0 -3
  283. data/examples/al-admin/script/destroy +0 -3
  284. data/examples/al-admin/script/generate +0 -3
  285. data/examples/al-admin/script/performance/benchmarker +0 -3
  286. data/examples/al-admin/script/performance/profiler +0 -3
  287. data/examples/al-admin/script/performance/request +0 -3
  288. data/examples/al-admin/script/plugin +0 -3
  289. data/examples/al-admin/script/process/inspector +0 -3
  290. data/examples/al-admin/script/process/reaper +0 -3
  291. data/examples/al-admin/script/process/spawner +0 -3
  292. data/examples/al-admin/script/runner +0 -3
  293. data/examples/al-admin/script/server +0 -3
  294. data/examples/al-admin/test/fixtures/users.yml +0 -9
  295. data/examples/al-admin/test/functional/account_controller_test.rb +0 -12
  296. data/examples/al-admin/test/functional/attributes_controller_test.rb +0 -8
  297. data/examples/al-admin/test/functional/directory_controller_test.rb +0 -8
  298. data/examples/al-admin/test/functional/object_classes_controller_test.rb +0 -8
  299. data/examples/al-admin/test/functional/syntaxes_controller_test.rb +0 -8
  300. data/examples/al-admin/test/functional/users_controller_test.rb +0 -8
  301. data/examples/al-admin/test/functional/welcome_controller_test.rb +0 -8
  302. data/examples/al-admin/test/integration/sign_up_test.rb +0 -44
  303. data/examples/al-admin/test/run-test.sh +0 -3
  304. data/examples/al-admin/test/test_helper.rb +0 -52
  305. data/examples/al-admin/test/unit/user_test.rb +0 -12
  306. data/examples/al-admin/vendor/plugins/exception_notification/README +0 -111
  307. data/examples/al-admin/vendor/plugins/exception_notification/init.rb +0 -1
  308. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifiable.rb +0 -99
  309. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier.rb +0 -66
  310. data/examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifier_helper.rb +0 -78
  311. data/examples/al-admin/vendor/plugins/exception_notification/test/exception_notifier_helper_test.rb +0 -61
  312. data/examples/al-admin/vendor/plugins/exception_notification/test/test_helper.rb +0 -7
  313. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml +0 -1
  314. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml +0 -7
  315. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml +0 -16
  316. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml +0 -4
  317. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml +0 -2
  318. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml +0 -3
  319. data/examples/al-admin/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml +0 -6
@@ -1,384 +0,0 @@
1
- // Copyright (c) 2005 spinelz.org (http://script.spinelz.org/)
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining
4
- // a copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to
8
- // permit persons to whom the Software is furnished to do so, subject to
9
- // the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be
12
- // included in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
-
23
- /**
24
- * TimePicker
25
- */
26
- var TimePicker = Class.create();
27
- TimePicker.className = {
28
- container: 'timepicker_container',
29
- // container: 'timepicker',
30
- header: 'timepicker_header',
31
- preYears: 'timepicker_preYears',
32
- nextYears: 'timepicker_nextYears',
33
- years: 'timepicker_years',
34
- mark: 'timepicker_mark',
35
- ym: 'timepicker_ym',
36
- table: 'timepicker_table',
37
- thRight: 'right',
38
- tdRight: 'right',
39
- tdBottom: 'bottom',
40
- date: 'timepicker_date',
41
- holiday: 'timepicker_holiday',
42
- regularHoliday: 'timepicker_regularHoliday',
43
- schedule: 'timepicker_schedule',
44
- highlightDay: 'timepicker_highlightDay',
45
- scheduleListContainer: 'timepicker_scheduleListContainer',
46
- scheduleItem: 'timepicker_scheduleItem',
47
- scheduleTimeArea: 'timepicker_scheduleItemTimeArea',
48
- scheduleHandler: 'timepicker_scheduleHandler',
49
- holidayName: 'timepicker_holidayName',
50
- dateContainer: 'timepicker_dateContainer',
51
- tableHeader: 'timepicker_tableHeader',
52
- rowContent: 'timepicker_rowContent',
53
- selected: 'timepicker_selected',
54
- displayToggle: 'timepicker_displayToggle',
55
-
56
- nextYearMark: 'timepicker_nextYearMark',
57
- nextMonthMark: 'timepicker_nextMonthMark',
58
- nextWeekMark: 'timepicker_nextWeekMark',
59
- preYearMark: 'timepicker_preYearMark',
60
- preMonthMark: 'timepicker_preMonthMark',
61
- preWeekMark: 'timepicker_preWeekMark',
62
-
63
- weekTable: 'timepicker_weekContainerTable',
64
- weekMainTable: 'timepicker_weekMainTable',
65
- timeLine: 'timepicker_timeline',
66
- timeLineTimeTop: 'timepicker_timelineTimeTop',
67
- timeLineTime: 'timepicker_timelineTime',
68
- timeLineTimeIe: 'timepicker_timelineTime_ie',
69
- timeLineTimeIeTop: 'timepicker_timelineTime_ieTop',
70
- headerColumn: 'timepicker_headerColumn',
71
- columnTopDate: 'timepicker_columnTopDate',
72
- columnDate: 'timepicker_columnDate',
73
- columnDateOdd: 'timepicker_columnOddDate',
74
- scheduleItemSamll: 'timepicker_scheduleItemSmall',
75
- scheduleItemLarge: 'timepicker_scheduleItemLarge',
76
- scheduleItemSelect: 'timepicker_scheduleItemSelect',
77
- deleteImg: 'timepicker_deleteImage',
78
- privateImg: 'timepicker_privateImage',
79
- scheduleContainer: 'timepicker_weekScheduleContainer',
80
- selector: 'timepicker_selector',
81
- cover: 'timepicker_cover'
82
- }
83
- Object.extend(TimePicker.prototype, Calendar.prototype);
84
- Object.extend(TimePicker.prototype, {
85
- initialize: function(element) {
86
- this.options = Object.extend({
87
- initDate: new Date(),
88
- cssPrefix: 'custom_',
89
- holidays: [],
90
- schedules: [],
91
- size: Calendar.size.large,
92
- regularHoliday: [0, 6],
93
- displayIndexes: [0, 1, 2, 3, 4, 5, 6],
94
- displayTime: [{hour: 0, min: 0}, {hour: 24, min: 0}],
95
- weekIndex: 0,
96
- dblclickListener: null,
97
- afterSelect: Prototype.emptyFunction,
98
- beforeRefresh: Prototype.emptyFunction,
99
- changeSchedule: Prototype.emptyFunction,
100
- changeCalendar: Prototype.emptyFunction,
101
- displayType: 'month',
102
- highlightDay: true,
103
- beforeRemoveSchedule: function() {return true;},
104
- dblclickSchedule: null,
105
- updateTirm: Prototype.emptyFunction,
106
- displayTimeLine: true,
107
- clickDateText: null,
108
- getMonthHeaderText: Prototype.emptyFunction,
109
- getMonthSubHeaderText: Prototype.emptyFunction,
110
- getWeekHeaderText: Prototype.emptyFunction,
111
- getWeekSubHeaderText: Prototype.emptyFunction,
112
- getDayHeaderText: Prototype.emptyFunction,
113
-
114
- setPosition: true,
115
- headerTitle: '',
116
- standardTime: false,
117
- oneDayLabel: '24H',
118
- standardTimeLabel: 'standard',
119
- build: true
120
- }, arguments[1] || {});
121
-
122
- if (this.options.standardTime) {
123
- this.options.displayTime = this.options.standardTime;
124
- this.options.oneDay = [{hour: 0, min: 0}, {hour: 24, min: 0}];
125
- }
126
-
127
- this.element = $(element);
128
- this.date = new Date();
129
- this.css = CssUtil.getInstance(this.options.cssPrefix, TimePicker.className);
130
- this.classNames = this.css.allJoinClassNames();
131
-
132
- Element.setStyle(this.element, {visibility: 'hidden'});
133
- this.builder = new TimePickerBuilder(this);
134
- this.builder.beforeBuild();
135
- this.element.innerHTML = this.builder.build();
136
- this.builder.afterBuild();
137
- this.builder.setEvent();
138
- Element.hide(element);
139
- Element.setStyle(this.element, {position: 'absolute'});
140
- Element.setStyle(this.element, {visibility: 'visible'});
141
-
142
- this.mouseupListener = this.onMouseUp.bindAsEventListener(this);
143
- Event.observe(document, "mouseup", this.mouseupListener);
144
- },
145
-
146
- destroy: function() {
147
- Event.stopObserving(document, "mouseup", this.mouseupListener);
148
- },
149
-
150
- refresh: function() {
151
- this.options.beforeRefresh(this);
152
- this.destroy();
153
- this.selectedBase = null;
154
- this.builder = new TimePickerBuilder(this);
155
- this.builder.beforeBuild();
156
- this.element.innerHTML = this.builder.build();
157
- this.builder.afterBuild();
158
- this.builder.setEvent();
159
- Event.observe(document, "mouseup", this.mouseupListener);
160
- },
161
-
162
- show: function(event, triggerId) {
163
- Event.stop(event);
164
- var pointer = [Event.pointerX(event), Event.pointerY(event)];
165
- if (this.options.setPosition.constructor == Function) {
166
- this.options.setPosition(this.element, pointer);
167
- } else if (this.options.setPosition) {
168
- Element.setStyle(this.element, {
169
- left: pointer[0] + 'px',
170
- top: pointer[1] + 'px'
171
- });
172
- }
173
- Element.setStyle(this.element, {zIndex: ZindexManager.getIndex()});
174
- Element.show(this.element);
175
- this.builder.setColumnWidth();
176
- this.builder.setCover();
177
- Event.observe(document, "mouseup", this.mouseupListener);
178
- },
179
-
180
- hide: function() {
181
- Element.hide(this.element);
182
- this.clearSelected();
183
- Event.stopObserving(document, "mouseup", this.mouseupListener);
184
- },
185
-
186
- clearSelected: function() {
187
- var elements = this.getSelected();
188
- var self = this;
189
- elements.each(function(e) {
190
- if (Element.hasClassName(e, TimePicker.className.selected))
191
- self.removeSelectedClass(e);
192
- });
193
- },
194
-
195
- setTrigger: function(trigger, targets) {
196
- trigger = $(trigger);
197
- Event.observe(trigger, 'click', this.show.bindAsEventListener(this));
198
- },
199
-
200
- setTargets: function(targets) {
201
- this.targets = targets;
202
- },
203
-
204
- onMouseUp: function(event) {
205
- var calendar = this;
206
- var dimention = Element.getDimensions(this.element);
207
- var position = Position.cumulativeOffset(this.element);
208
- var x = Event.pointerX(event);
209
- var y = Event.pointerY(event);
210
-
211
- if ((x < position[0]) || ((position[0] + dimention.width) < x) ||
212
- (y < position[1]) || ((position[1] + dimention.height) < y)) {
213
- this.hide();
214
- }
215
-
216
- if (calendar.mouseDown) {
217
- setTimeout(function() {
218
- if (calendar.mouseDown) {
219
- calendar.mouseDown = false;
220
- calendar.hide();
221
- }
222
- }, 10);
223
- }
224
-
225
- var term = this.builder.getSelectedTerm();
226
- if (term) {
227
- var start = term.first();
228
- var finish = term.last();
229
- var finishHour = finish.getHours();
230
- var finishMin = finish.getMinutes();
231
- if ((finishHour == 0) && (finishMin == 0)) {
232
- finishHour = 23;
233
- finishMin = 55;
234
- }
235
-
236
- this.setTime(this.targets.start.hour, start.getHours());
237
- this.setTime(this.targets.start.min, start.getMinutes());
238
- this.setTime(this.targets.finish.hour, finishHour);
239
- this.setTime(this.targets.finish.min, finishMin);
240
- this.hide();
241
- this.options.afterSelect(event);
242
- }
243
- },
244
-
245
- setTime: function(target, value) {
246
- $A($(target).options).each(function(option) {
247
- if (option.value == value) {
248
- option.selected = true;
249
- } else {
250
- option.selected = false;
251
- }
252
- });
253
- },
254
-
255
- getSelected: function() {
256
- return this.element.getElementsByClassName(TimePicker.className.selected, this.element);
257
- }
258
- });
259
-
260
-
261
- /**
262
- * TimePickerBuilder
263
- */
264
- var TimePickerBuilder = Class.create();
265
- Object.extend(TimePickerBuilder.prototype, CalendarDay.prototype);
266
- Object.extend(TimePickerBuilder.prototype, {
267
- initialize: function(calendar) {
268
- var day = calendar.date.getDay();
269
- this.calendar = calendar;
270
- this.ids = SpinelzUtil.concat(this.calendar.element.id, CalendarWeek.id);
271
- this.ids.label = this.calendar.element.id.appendSuffix('label');
272
-
273
- this.setDisplayTime();
274
- this.calendar.options.displayIndexesOld = this.calendar.options.displayIndexes;
275
- this.calendar.options.displayIndexes = [day];
276
- this.calendar.options.weekIndexOld = this.calendar.options.weekIndex;
277
- this.calendar.options.weekIndex = day;
278
- this.week = this.getWeek();
279
- },
280
-
281
- buildHeader: function() {
282
- return "<table class='" + this.calendar.classNames.header + "'>" +
283
- "<tr>" + this.buildHeaderCenter() + "</tr>" +
284
- "</table>";
285
- },
286
-
287
- buildHeaderCenter: function() {
288
- return "<td><span>" + this.calendar.options.headerTitle + "</span></td>";
289
- },
290
-
291
- buildTimeLine: function() {
292
- var time = new Date();
293
- var hour = 0, hoursOfDay = 24;
294
- time.setHours(hour);
295
- time.setMinutes(0);
296
- var nodes = null;
297
- var timelineClass = 'timeLineTime';
298
- var timelineTopClass = 'timeLineTime'
299
- if (UserAgent.isIE()) {
300
- timelineClass = 'timeLineTimeIe';
301
- timelineTopClass = 'timeLineTimeIeTop';
302
- }
303
-
304
- nodes = "<div class='" + this.calendar.classNames.timeLineTimeTop + "'></div>";
305
- while (hour < hoursOfDay) {
306
- if (this.includeDisplayTime(hour)) {
307
-
308
- var lineClass = '';
309
- if (nodes.length == 0) {
310
- lineClass = this.calendar.classNames[timelineTopClass];
311
- } else {
312
- lineClass = this.calendar.classNames[timelineClass];
313
- }
314
- nodes += "<div class='" + lineClass + "'>" + this.formatTime(time) + "</div>";
315
- }
316
- hour++;
317
- time.setHours(hour);
318
- }
319
-
320
- return "<td class='" + this.calendar.classNames.timeLine + "'>" + nodes + "</td>";
321
- },
322
-
323
- buildCalendarHeader: function() {
324
- var labelKey = (this.calendar.options.displayTime == this.calendar.options.standardTime) ?
325
- 'oneDayLabel' : 'standardTimeLabel';
326
-
327
- return "<tr><td align='center'>" +
328
- "<div id='" + this.ids.label + "'class='" + this.calendar.classNames.headerColumn + "'>" +
329
- "<a href='javascript:void(0)'>" + this.calendar.options[labelKey] + "</a>" +
330
- "</div>" +
331
- "</td></tr>";
332
- },
333
-
334
- abstractSelect: function(event, method) {
335
- var element = this.findClickedElement(event);
336
- if (element) {
337
- if (Element.hasClassName(element, TimePicker.className.columnDate) ||
338
- Element.hasClassName(element, TimePicker.className.columnDateOdd) ||
339
- Element.hasClassName(element, TimePicker.className.columnTopDate)) {
340
-
341
- var date = this.getDate(element);
342
- method(date, element);
343
- }
344
- }
345
- },
346
-
347
- toggleDisplayTime: function(event, element) {
348
- Event.stop(event);
349
- if (this.calendar.options.displayTime == this.calendar.options.oneDay) {
350
- this.calendar.options.displayTime = this.calendar.options.standardTime;
351
- } else {
352
- this.calendar.options.displayTime = this.calendar.options.oneDay;
353
- }
354
- this.calendar.refresh();
355
- },
356
-
357
- findClickedElement: function(event) {
358
- var container = $(this.getScheduleContainerId());
359
- var position = Position.cumulativeOffset(container);
360
- var x = Event.pointerX(event) - position[0];
361
- var y = Event.pointerY(event) - position[1];
362
- var descendans = this.calendarTable.rows[0].cells[0].getElementsByTagName('div');
363
- var height = parseInt(Element.getHeight(container), 10) / descendans.length;
364
- var cellIndex = Math.floor(y / height);
365
- return descendans[cellIndex];
366
- },
367
-
368
- beforeBuild: function() {
369
- this.column = {};
370
- var rule = CssUtil.getCssRuleBySelectorText('.' + TimePicker.className.columnDate);
371
- this.column.height = parseInt(rule.style['height'], 10) + 1;
372
- },
373
-
374
- afterBuild: function() {
375
- this.calendarTable = $(this.getCalendarTableId());
376
- this.setColumnWidth();
377
- this.setCover();
378
- },
379
-
380
- setEvent: function() {
381
- var label = $(this.ids.label);
382
- Event.observe(label, 'click', this.toggleDisplayTime.bindAsEventListener(this, label));
383
- }
384
- });
@@ -1,152 +0,0 @@
1
- // Copyright (c) 2006 spinelz.org (http://script.spinelz.org/)
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining
4
- // a copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to
8
- // permit persons to whom the Software is furnished to do so, subject to
9
- // the following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be
12
- // included in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- var ToolBar = Class.create();
23
- ToolBar.className = {
24
- container : 'toolbar_container',
25
- containerLeft : 'toolbar_containerLeft',
26
- containerMiddle : 'toolbar_containerMiddle',
27
- containerRight : 'toolbar_containerRight',
28
- toolbarItem : 'toolbar_item',
29
- toolbarItemHover : 'toolbar_itemHov',
30
- toolbarItemPres : 'toolbar_itemPres',
31
- toolbarContent : 'toolbar_content',
32
- toolbarContentPres: 'toolbar_contentPres'
33
- }
34
-
35
- ToolBar.prototype = {
36
-
37
- initialize: function(element) {
38
- var options = Object.extend({
39
- cssPrefix : 'custom_'
40
- }, arguments[1] || {});
41
-
42
- this.element = $(element);
43
- Element.setStyle(this.element, {visibility: 'hidden'});
44
- Element.hide(this.element);
45
- this.options = options;
46
-
47
- var customCss = CssUtil.appendPrefix(this.options.cssPrefix, ToolBar.className);
48
- this.classNames = new CssUtil([ToolBar.className, customCss]);
49
-
50
- this.build();
51
- Element.setStyle(this.element, {visibility: 'visible'});
52
- Element.show(this.element);
53
- },
54
-
55
- build: function() {
56
- // Element.cleanWhitespace(this.element);
57
- this.classNames.addClassNames(this.element, 'container');
58
- var iconList = this.element.childNodes;
59
-
60
- var containerLeft = Builder.node('div');
61
- this.classNames.addClassNames(containerLeft, 'containerLeft');
62
-
63
- this.containerMiddle = Builder.node('div');
64
- this.classNames.addClassNames(this.containerMiddle, 'containerMiddle');
65
-
66
- var containerRight = Builder.node('div');
67
- this.classNames.addClassNames(containerRight, 'containerRight');
68
-
69
- var removeList = [];
70
- var toolbar = this;
71
- $A(iconList).each(function(i) {
72
- if (i.nodeType != 1) {
73
- throw $continue;
74
- }
75
- toolbar.buildIcon(i);
76
- });
77
-
78
- this.element.appendChild(containerLeft);
79
- this.element.appendChild(this.containerMiddle);
80
- this.element.appendChild(containerRight);
81
- },
82
-
83
- buildIcon: function(icon) {
84
- var toolbarItem = Builder.node('div');
85
- this.classNames.addClassNames(toolbarItem, 'toolbarItem');
86
-
87
- var toolbarContent = Builder.node('div');
88
- this.classNames.addClassNames(toolbarContent, 'toolbarContent');
89
-
90
- toolbarContent.appendChild(icon);
91
- toolbarItem.appendChild(toolbarContent);
92
- this.containerMiddle.appendChild(toolbarItem);
93
- this.setHovEvent(toolbarItem);
94
- this.setPresEvent(toolbarItem);
95
- },
96
-
97
- addIcon: function(options) {
98
- var iconOptions = Object.extend({
99
- id : 'newIcon',
100
- src : 'url',
101
- alt : 'icon',
102
- width: 15,
103
- height: 15
104
- }, arguments[0] || {});
105
- if (!$(iconOptions.id)) {
106
- var icon = Builder.node('img', {id: iconOptions.id, src: iconOptions.src, alt: iconOptions.alt, style: 'width: ' + iconOptions.width + 'px; height: ' + iconOptions.height + 'px;'});
107
- this.buildIcon(icon);
108
- }
109
- },
110
-
111
- removeIcon: function(icon) {
112
- var target = $(icon);
113
- if (target) {
114
- var itemNode = target.parentNode.parentNode;
115
- Element.remove(itemNode);
116
- }
117
- },
118
-
119
- addEvent: function(icon, eventName, func) {
120
- var target = $(icon);
121
- if (target) {
122
- var itemNode = target.parentNode.parentNode;
123
- Event.observe(itemNode, eventName, func);
124
- }
125
- },
126
-
127
- removeEvent: function(icon, eventName, func) {
128
- var target = $(icon);
129
- if (target) {
130
- var itemNode = target.parentNode.parentNode;
131
- Event.stopObserving(itemNode, eventName, func);
132
- }
133
- },
134
- setHovEvent: function(element) {
135
- Event.observe(element, "mouseout", this.toggleItemClass(element, 'toolbarItem').bindAsEventListener(this));
136
- Event.observe(element, "mouseover", this.toggleItemClass(element, 'toolbarItemHover').bindAsEventListener(this));
137
- Event.observe(element, "mouseout", this.toggleItemClass(element.childNodes[0], 'toolbarContent').bindAsEventListener(this));
138
- },
139
-
140
- setPresEvent: function(element) {
141
- Event.observe(element, "mousedown", this.toggleItemClass(element, 'toolbarItemPres').bindAsEventListener(this));
142
- Event.observe(element, "mouseup", this.toggleItemClass(element, 'toolbarItem').bindAsEventListener(this));
143
- Event.observe(element, "mousedown", this.toggleItemClass(element.childNodes[0], 'toolbarContentPres').bindAsEventListener(this));
144
- Event.observe(element, "mouseup", this.toggleItemClass(element.childNodes[0], 'toolbarContent').bindAsEventListener(this));
145
- },
146
-
147
- toggleItemClass: function(target, className) {
148
- return function() {
149
- this.classNames.refreshClassNames(target, className);
150
- }
151
- }
152
- }