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,185 +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
- Accordion = Class.create();
24
- Accordion.className = {
25
- accordion : 'accordion',
26
- panel: 'accordion_panel',
27
- tab : 'accordion_tab',
28
- tabLeftInactive : 'accordion_tabLeftInactive',
29
- tabLeftActive: 'accordion_tabLeftActive',
30
- tabMiddleInactive : 'accordion_tabMiddleInactive',
31
- tabMiddleActive : 'accordion_tabMiddleActive',
32
- tabRightInactive : 'accordion_tabRightInactive',
33
- tabRightActive : 'accordion_tabRightActive'
34
- }
35
-
36
- Accordion.prototype = {
37
-
38
- initialize: function(element) {
39
- var options = Object.extend({
40
- cssPrefix: 'custom_',
41
- selected: 1,
42
- duration: 0.5
43
- }, arguments[1] || {});
44
-
45
- this.options = options;
46
- this.element = $(element);
47
- Element.setStyle(this.element, {visibility: 'hidden'});
48
- Element.hide(this.element);
49
-
50
- var customCss = CssUtil.appendPrefix(this.options.cssPrefix, Accordion.className);
51
- this.classNames = new CssUtil([Accordion.className, customCss]);
52
-
53
- this.classNames.addClassNames(this.element, 'accordion');
54
-
55
- this.selected = (this.options.selected > 0) ? this.options.selected - 1 : 0 ;
56
- this.start();
57
-
58
- Element.setStyle(this.element, {visibility: 'visible'});
59
- Element.show(this.element);
60
- this.effecting = false;
61
- },
62
-
63
- start: function() {
64
- this.tabs = [];
65
- this.panels = [];
66
- this.panelList = [];
67
-
68
- this.tabId = this.element.id + '_tab';
69
- this.tabLeftId = this.tabId + '_left';
70
- this.tabMiddleId = this.tabId + '_middle';
71
- this.tabRightId = this.tabId + '_right';
72
- this.panelId = this.element.id + '_panel';
73
-
74
- this.build();
75
- },
76
-
77
- build: function() {
78
- Element.cleanWhitespace(this.element);
79
- this.panelList = this.element.childNodes;
80
-
81
- for (var i = 0; i < this.panelList.length; i++) {
82
- if (this.panelList[i].nodeType != 1) {
83
- Element.remove(this.panelList[i]);
84
- i--;
85
- continue;
86
- }
87
- Element.cleanWhitespace(this.panelList[i]);
88
- var navSet = this.panelList[i].childNodes;
89
- this.buildTab(navSet[0], i);
90
- this.buildPanel(navSet[0], i);
91
- }
92
- this.selectTab();
93
- },
94
-
95
-
96
- buildTab: function(tabTitle, i) {
97
- var tab = Builder.node('div', {id:this.tabId + i});
98
- this.classNames.addClassNames(tab, 'tab');
99
- var tabLeft = Builder.node('div', {id:this.tabLeftId + i});
100
- var tabMiddle = Builder.node('div', {id:this.tabMiddleId + i});
101
- tabMiddle.appendChild(tabTitle);
102
- var tabRight = Builder.node('div', {id:this.tabRightId + i});
103
-
104
- tab.appendChild(tabLeft);
105
- tab.appendChild(tabMiddle);
106
- tab.appendChild(tabRight);
107
- Event.observe(tab, 'click', this.selectTab.bindAsEventListener(this));
108
-
109
- this.tabs[i] = tab;
110
- this.setTabInactive(tab);
111
- this.panelList[i].appendChild(tab);
112
- },
113
-
114
- buildPanel: function(panelContent, i) {
115
- var panel = Builder.node('div', {id:this.panelId + i});
116
- this.classNames.addClassNames(panel, 'panel');
117
-
118
- panel.appendChild(panelContent);
119
- Element.hide(panel);
120
- this.panels[i] = panel;
121
- this.panelList[i].appendChild(panel);
122
- },
123
-
124
- selectTab: function(e) {
125
- if (this.effecting) return;
126
- if (!e) {
127
- if (!this.panels[this.selected]) this.selected = 0;
128
- Element.show(this.panels[this.selected]);
129
- this.setTabActive(this.tabs[this.selected]);
130
- return;
131
- }
132
-
133
- var targetElement = Event.element(e);
134
- var targetIndex = this.getTargetIndex(targetElement);
135
- if (targetIndex == this.selected) return;
136
-
137
- var currentPanel = this.panels[this.selected];
138
- var targetPanel = this.panels[targetIndex];
139
- this.setTabInactive(this.tabs[this.selected]);
140
- this.setTabActive(this.tabs[targetIndex]);
141
-
142
- this.effecting = true;
143
- new Effect.Parallel(
144
- [
145
- new Effect.BlindUp(currentPanel, {sync: true}),
146
- new Effect.BlindDown(targetPanel, {sync: true})
147
- ],
148
- {
149
- duration: this.options.duration,
150
- beforeStart: function() { this.effecting = true; }.bind(this),
151
- afterFinish: function() { this.effecting = false; }.bind(this)
152
- }
153
- );
154
-
155
- this.selected = targetIndex;
156
- },
157
-
158
- setTabActive: function(tab) {
159
- var tabChildren = tab.childNodes;
160
-
161
- this.classNames.refreshClassNames(tabChildren[0], 'tabLeftActive');
162
- this.classNames.refreshClassNames(tabChildren[1], 'tabMiddleActive');
163
- this.classNames.refreshClassNames(tabChildren[2], 'tabRightActive');
164
- },
165
-
166
- setTabInactive: function(tab) {
167
- var tabChildren = tab.childNodes;
168
-
169
- this.classNames.refreshClassNames(tabChildren[0], 'tabLeftInactive');
170
- this.classNames.refreshClassNames(tabChildren[1], 'tabMiddleInactive');
171
- this.classNames.refreshClassNames(tabChildren[2], 'tabRightInactive');
172
- },
173
-
174
- getTargetIndex: function(element) {
175
- while(element) {
176
- if (element.id && element.id.indexOf(this.tabId, 0) >= 0) {
177
- var index = element.id.substring(this.tabId.length);
178
- if (!isNaN(index)) {
179
- return index;
180
- }
181
- }
182
- element = element.parentNode;
183
- }
184
- }
185
- }
@@ -1,157 +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
- var AjaxHistory = {
23
- _callback: {},
24
- _alwaysHashGen: null,
25
- _currentIframeHash: '',
26
- _currentLocationHash: '',
27
- _prefix: 'ajax_history_',
28
- _ignoreOnce: false,
29
- add: function(value, options) {
30
- if(!options) options = {};
31
- this._ignoreOnce = options.ignoreOnce;
32
- var currentHash = (options.prefix ? (options.prefix + '_') : this._prefix) + value;
33
- if(this._alwaysHashGen && !options.ignoreAlwaysHash) {
34
- var alwaysHash = this._alwaysHashGen();
35
- currentHash = alwaysHash + '|' + currentHash;
36
- }
37
- AjaxHistoryPageManager.setHash(currentHash);
38
- },
39
- checkIframeHash: function() {
40
- var iframeHash = AjaxHistoryIframeManager.getHash();
41
- if(this._currentIframeHash != iframeHash) {
42
- this._currentIframeHash = iframeHash;
43
- this._currentLocationHash = iframeHash;
44
- AjaxHistoryPageManager.setHash((iframeHash) ? iframeHash : '');
45
- this.doEvent(iframeHash);
46
- } else {
47
- this.checkLocationHash();
48
- }
49
- },
50
- checkHash: function() {
51
- if(UserAgent.isIE()) {
52
- this.checkIframeHash();
53
- } else {
54
- this.checkLocationHash();
55
- }
56
- },
57
- checkLocationHash: function() {
58
- var locationHash = AjaxHistoryPageManager.getHash();
59
- if(this._currentLocationHash != locationHash) {
60
- this._currentLocationHash = locationHash;
61
- if(UserAgent.isIE()) {
62
- AjaxHistoryIframeManager.setHash(locationHash);
63
- } else {
64
- this.doEvent(locationHash);
65
- }
66
- }
67
- },
68
- doEvent: function(hash) {
69
- if(this._ignoreOnce) {
70
- this._ignoreOnce = false;
71
- return;
72
- }
73
- var splitted_hash = $A(hash.split('|'));
74
- for(var each_cb_key in this._callback){
75
- var each_cb = this._callback[each_cb_key];
76
- splitted_hash.each(
77
- function(each_hash) {
78
- if(each_hash.match(new RegExp('^' + each_cb_key))) {
79
- var fixed_id = each_hash.replace(each_cb_key, '');
80
- each_cb.call(null, each_hash.replace(each_cb_key, ''));
81
- }
82
- }
83
- );
84
- }
85
- },
86
- init: function(callback, prefix) {
87
- this.addCallback(callback, prefix)
88
- if(UserAgent.isIE()) {
89
- AjaxHistoryIframeManager.create();
90
- }
91
- var self = this;
92
- var hashHandler = function() {self.checkHash();}
93
- setInterval(hashHandler, 100);
94
- },
95
- addCallback: function(callback, prefix){
96
- var current_prefix = prefix ? (prefix + '_') : this._prefix;
97
- this._callback[current_prefix] = callback;
98
- },
99
- setAlwaysHashGen: function(alwaysHashGen){
100
- this._alwaysHashGen = alwaysHashGen;
101
- }
102
- }
103
-
104
- var AjaxHistoryIframeManager = {
105
- _id : 'ajax_history_frame',
106
- _element: null,
107
- _src: IECover.src,
108
- create: function() {
109
- document.write('<iframe id="' + this._id + '" src="' + this._src + '" style="display: none;"></iframe>');
110
- this._element = $(this._id);
111
- },
112
- getHash: function() {
113
- try{
114
- var iframeDocument = this._element.contentWindow.document;
115
- return unescape(iframeDocument.location.hash.replace(/^#/, ''));
116
- } catch(e) {
117
- return ''
118
- }
119
- },
120
- setHash: function(query) {
121
- var iframeDocument = this._element.contentWindow.document;
122
- iframeDocument.open();
123
- iframeDocument.close();
124
- iframeDocument.location.hash = escape(query);
125
- }
126
- }
127
-
128
- var AjaxHistoryPageManager = {
129
- _delimiter: '#',
130
- _location: 'window.location.href',
131
- _query: '',
132
- getLocation: function() {
133
- return eval(this._location);
134
- },
135
- getHash: function() {
136
- var url_elements = this.getLocation().split(this._delimiter);
137
- return unescape((url_elements.length > 1) ? url_elements[url_elements.length - 1] : this._query);
138
- },
139
- getSpecifiedValue: function(key) {
140
- var result = '';
141
- $A(this.getHash().split('|')).each(
142
- function(hash) {
143
- if(hash.match(new RegExp('^' + key + '_'))) {
144
- result = hash.replace(key + '_', '');
145
- }
146
- }
147
- );
148
- return result;
149
- },
150
- getUrl: function() {
151
- var url_elements = this.getLocation().split(this._delimiter);
152
- return url_elements[0];
153
- },
154
- setHash: function(query) {
155
- window.location.hash = escape(query);
156
- }
157
- }
@@ -1,287 +0,0 @@
1
- // Copyright (c) 2006 spinelz.org (http://script.spinelz.org/)
2
- //
3
- // This code is substantially based on code from script.aculo.us which has the
4
- // following copyright and permission notice
5
- //
6
- // Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
7
- //
8
- // Permission is hereby granted, free of charge, to any person obtaining
9
- // a copy of this software and associated documentation files (the
10
- // "Software"), to deal in the Software without restriction, including
11
- // without limitation the rights to use, copy, modify, merge, publish,
12
- // distribute, sublicense, and/or sell copies of the Software, and to
13
- // permit persons to whom the Software is furnished to do so, subject to
14
- // the following conditions:
15
- //
16
- // The above copyright notice and this permission notice shall be
17
- // included in all copies or substantial portions of the Software.
18
- //
19
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23
- // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24
- // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25
- // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
26
-
27
- var Balloon = Class.create()
28
- Balloon.classNames = {
29
- tooltip: 'balloon_tooltip',
30
- top: 'balloon_top',
31
- topLeft: 'balloon_top_left',
32
- topMiddle: 'balloon_top_middle',
33
- topRight: 'balloon_top_right',
34
- middle: 'balloon_middle',
35
- middleLeft: 'balloon_middle_left',
36
- middleRight: 'balloon_middle_right',
37
- middleLeftRowT: 'balloon_middle_left_row',
38
- middleLeftRowB: 'balloon_middle_left_row',
39
- middleRightRowT: 'balloon_middle_right_row',
40
- middleRightRowB: 'balloon_middle_right_row',
41
- leftArrow: 'balloon_left_arrow',
42
- rightArrow: 'balloon_right_arrow',
43
- leftUpArrow: 'balloon_left_up_arrow',
44
- leftDownArrow: 'balloon_left_down_arrow',
45
- rightUpArrow: 'balloon_right_up_arrow',
46
- rightDownArrow: 'balloon_right_down_arrow',
47
- body: 'balloon_body',
48
- bottom: 'balloon_bottom',
49
- bottomLeft: 'balloon_bottom_left',
50
- bottomMiddle: 'balloon_bottom_middle',
51
- bottomRight: 'balloon_bottom_right'
52
- }
53
- Balloon.allBalloons = [];
54
- Balloon.closeAll = function(){
55
- Balloon.allBalloons.each(function(b){
56
- b.close();
57
- });
58
- }
59
- Balloon.eventSetting = false;
60
- Balloon.prototype = {
61
- initialize : function (target, message){
62
- this.target = $(target);
63
-
64
- this.options = Object.extend({
65
- cssPrefix: 'custom_',
66
- trigger: this.target,
67
- tipId: this.target.id + '_balloon',
68
- events: ['click'],
69
- width: 300,
70
- height: 200
71
- }, arguments[2] || {});
72
-
73
- var customCss = CssUtil.appendPrefix(this.options.cssPrefix, Balloon.classNames);
74
- this.classNames = new CssUtil([Balloon.classNames, customCss]);
75
-
76
- this.tipNode = this._buildTipNode(message);
77
- Element.hide(this.tipNode);
78
- this._setMessage(message);
79
- document.body.appendChild(this.tipNode);
80
- this._setEvent();
81
- Balloon.allBalloons.push(this)
82
- this._setSize();
83
- },
84
-
85
- _setEvent: function() {
86
- var self = this;
87
- this.options.events.each(function(e) {
88
- Event.observe(self.options.trigger, e, self.open.bindAsEventListener(self));
89
- });
90
-
91
- Event.observe(this.tipNode, 'click', this.close.bind(this), true)
92
-
93
- if (!Balloon.eventSetting) {
94
- Event.observe(document, 'click', Balloon.closeAll, true);
95
- Balloon.eventSetting = true;
96
- }
97
- },
98
-
99
- _buildTipNode : function() {
100
- var tipNode = Builder.node('div', {id: this.options.tipId});
101
- this.classNames.addClassNames(tipNode, 'tooltip');
102
- tipNode.appendChild(this._buildTop());
103
- tipNode.appendChild(this._buildMiddle());
104
- tipNode.appendChild(this._buildBottom());
105
- return tipNode;
106
- },
107
-
108
- _setMessage: function(message) {
109
- var type = message.constructor;
110
- if (type == String) {
111
- this.body.innerHTML = message;
112
- } else if (type == Object) {
113
- this.body.appendChild(message);
114
- }
115
- },
116
-
117
- _buildTop: function() {
118
- return this._buildMulti('top', ['topLeft', 'topMiddle', 'topRight'], true);
119
- },
120
-
121
- _buildBottom: function() {
122
- return this._buildMulti('bottom', ['bottomLeft', 'bottomMiddle', 'bottomRight'], true);
123
- },
124
-
125
- _buildMiddle: function() {
126
- this.middle = Builder.node('div');
127
- this.classNames.addClassNames(this.middle, 'middle');
128
- this.middle.appendChild(
129
- this._buildMulti('middleLeft', ['middleLeftRowT', 'leftArrow', 'middleLeftRowB'], true));
130
- this.middle.appendChild(this._buildMulti('body', [], true));
131
- this.middle.appendChild(
132
- this._buildMulti('middleRight', ['middleRightRowT', 'rightArrow', 'middleRightRowB'], true));
133
- return this.middle;
134
- },
135
-
136
- _buildMulti: function(main, subs, hold) {
137
- var topNode = Builder.node('div');
138
- this.classNames.addClassNames(topNode, main);
139
- if (hold) this[main] = topNode;
140
- var self = this;
141
- var node = null;
142
- subs.each(function(s) {
143
- node = Builder.node('div');
144
- self.classNames.addClassNames(node, s);
145
- topNode.appendChild(node);
146
- if (hold) self[s] = node;
147
- });
148
- return topNode;
149
- },
150
-
151
- _setPosition: function() {
152
- var scrollPosition = Position.realOffset(this.tipNode);
153
- var screenWidth = document.documentElement.clientWidth;
154
- var screenHeight = document.documentElement.clientHeight;
155
-
156
- var positionList = Position.cumulativeOffset(this.target);
157
- var dimension = Element.getDimensions(this.target);
158
- var tipNodeLeft = Math.round(positionList[0] + dimension.width);
159
- var tipDimension = Element.getDimensions(this.tipNode);
160
- var tipNodeTop = Math.round(positionList[1] - tipDimension.height / 2);
161
-
162
- var addLR = 'left';
163
- var remLR = 'right';
164
-
165
- if((tmpY = tipNodeTop - scrollPosition[1]) < 0) {
166
- tipNodeTop -= tmpY;
167
- }
168
- if( (tipNodeLeft+tipDimension.width) > (screenWidth+scrollPosition[0]) ) {
169
- tipNodeLeft = Math.round(positionList[0] - tipDimension.width);
170
- addLR = 'right';
171
- remLR = 'left';
172
- }
173
-
174
- var y = positionList[1] - tipNodeTop;
175
- this._setArrow(addLR, y);
176
- this._unsetArrow(remLR);
177
-
178
- Element.setStyle(this.tipNode, {
179
- top: tipNodeTop + 'px',
180
- left: tipNodeLeft + 'px',
181
- zIndex: ZindexManager.getIndex()
182
- });
183
- },
184
-
185
- _setArrow: function(lr, y) {
186
- var headerH = (this.options.height - this.middleH) / 2;
187
- var topH, bottomH, h, ud;
188
- var minH = 10; // for ie
189
- if (lr == 'left') {
190
- h = this.middleH - this.leftArrowH;
191
- } else {
192
- h = this.middleH - this.rightArrowH;
193
- }
194
- if (headerH > y) {
195
- topH = minH;
196
- bottomH = h - topH;
197
- ud = 'up';
198
- } else if ((this.middleH + headerH) < y) {
199
- bottomH = minH;
200
- topH = h - bottomH;
201
- ud = 'down';
202
- } else {
203
- topH = y - headerH;
204
- topH = (topH < minH) ? minH : topH;
205
- bottomH = h - topH;
206
- ud = 'up';
207
- }
208
- if (lr == 'left') {
209
- if (ud == 'up') {
210
- this.classNames.refreshClassNames(this.leftArrow, 'leftUpArrow');
211
- Element.setStyle(this.leftArrow, {height: this.leftArrowH + 'px'});
212
- Element.setStyle(this.middleLeftRowT, {height: topH + 'px'});
213
- Element.setStyle(this.middleLeftRowB, {height: bottomH + 'px'});
214
- } else {
215
- this.classNames.refreshClassNames(this.leftArrow, 'leftDownArrow');
216
- Element.setStyle(this.leftArrow, {height: this.leftArrowH + 'px'});
217
- Element.setStyle(this.middleLeftRowT, {height: topH + 'px'});
218
- Element.setStyle(this.middleLeftRowB, {height: bottomH + 'px'});
219
- }
220
- } else {
221
- if (ud == 'up') {
222
- this.classNames.refreshClassNames(this.rightArrow, 'rightUpArrow');
223
- Element.setStyle(this.rightArrow, {height: this.rightArrowH + 'px'});
224
- Element.setStyle(this.middleRightRowT, {height: topH + 'px'});
225
- Element.setStyle(this.middleRightRowB, {height: bottomH + 'px'});
226
- } else {
227
- this.classNames.refreshClassNames(this.rightArrow, 'rightDownArrow');
228
- Element.setStyle(this.rightArrow, {height: this.rightArrowH + 'px'});
229
- Element.setStyle(this.middleRightRowT, {height: topH + 'px'});
230
- Element.setStyle(this.middleRightRowB, {height: bottomH + 'px'});
231
- }
232
- }
233
- },
234
-
235
- _unsetArrow: function(direction) {
236
- if (direction == 'left') {
237
- var h = (this.middleH - this.leftArrowH) / 2;
238
- this.classNames.refreshClassNames(this.leftArrow, 'middleLeftRowB');
239
- Element.setStyle(this.leftArrow, {height: this.leftArrowH + 'px'});
240
- Element.setStyle(this.middleLeftRowT, {height: h + 'px'});
241
- Element.setStyle(this.middleLeftRowB, {height: h + 'px'});
242
- } else {
243
- var h = (this.middleH - this.rightArrowH) / 2;
244
- this.classNames.refreshClassNames(this.rightArrow, 'middleRightRowB');
245
- Element.setStyle(this.rightArrow, {height: this.rightArrowH + 'px'});
246
- Element.setStyle(this.middleRightRowT, {height: h + 'px'});
247
- Element.setStyle(this.middleRightRowB, {height: h + 'px'});
248
- }
249
- },
250
-
251
- _setSize: function() {
252
- var width = this.options.width;
253
- var height = this.options.height;
254
- Element.setStyle(this.tipNode, {
255
- width: width + 'px',
256
- height: height + 'px'
257
- });
258
-
259
- var topH = parseInt(Element.getStyle(this.top, 'height'));
260
- var bottomH = parseInt(Element.getStyle(this.bottom, 'height'));
261
- var middleH = this.options.height - topH - bottomH;
262
-
263
- var style = {height: middleH + 'px'};
264
- Element.setStyle(this.middle, style);
265
- Element.setStyle(this.middleLeft, style);
266
- Element.setStyle(this.middleRight, style);
267
- Element.setStyle(this.body, style);
268
-
269
- this.leftArrowH = parseInt(Element.getStyle(this.leftArrow, 'height'));
270
- this.rightArrowH = parseInt(Element.getStyle(this.rightArrow, 'height'));
271
- this.middleH = middleH;
272
- },
273
-
274
- open : function() {
275
- if (!Element.visible(this.tipNode)) {
276
- this._setPosition();
277
- Effect.Appear(this.tipNode);
278
- }
279
- },
280
-
281
- close : function(){
282
- if (Element.visible(this.tipNode)) {
283
- this._setPosition();
284
- Effect.Fade(this.tipNode);
285
- }
286
- }
287
- }