hurry 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (651) hide show
  1. data/Gemfile +55 -0
  2. data/Rakefile +69 -0
  3. data/app/assets/audios/twilight-hole.mp3 +0 -0
  4. data/app/assets/files/arvind resume (1).doc +0 -0
  5. data/app/assets/files/toma v 0 1.ppt +0 -0
  6. data/app/assets/images/0d0a413.png +0 -0
  7. data/app/assets/images/120.jpg +0 -0
  8. data/app/assets/images/51.jpg +0 -0
  9. data/app/assets/images/Untitled Document +97 -0
  10. data/app/assets/images/Untitled Document~ +97 -0
  11. data/app/assets/images/access.png +0 -0
  12. data/app/assets/images/adv.png +0 -0
  13. data/app/assets/images/article.png +0 -0
  14. data/app/assets/images/audio_icon.jpg +0 -0
  15. data/app/assets/images/background.gif +0 -0
  16. data/app/assets/images/banners/111.jpg +0 -0
  17. data/app/assets/images/banners/90.jpg +0 -0
  18. data/app/assets/images/banners/userimg.png +0 -0
  19. data/app/assets/images/blog.png +0 -0
  20. data/app/assets/images/body.png +0 -0
  21. data/app/assets/images/cancel.png +0 -0
  22. data/app/assets/images/cat.png +0 -0
  23. data/app/assets/images/contributions_userimg2.png +0 -0
  24. data/app/assets/images/delete.png +0 -0
  25. data/app/assets/images/edit.png +0 -0
  26. data/app/assets/images/excel.jpg +0 -0
  27. data/app/assets/images/file.gif +0 -0
  28. data/app/assets/images/file.jpeg +0 -0
  29. data/app/assets/images/folder-closed.gif +0 -0
  30. data/app/assets/images/folder.gif +0 -0
  31. data/app/assets/images/group.png +0 -0
  32. data/app/assets/images/header.png +0 -0
  33. data/app/assets/images/icons.gif +0 -0
  34. data/app/assets/images/loading.gif +0 -0
  35. data/app/assets/images/logo.png +0 -0
  36. data/app/assets/images/logout.png +0 -0
  37. data/app/assets/images/media.png +0 -0
  38. data/app/assets/images/minus.gif +0 -0
  39. data/app/assets/images/new.png +0 -0
  40. data/app/assets/images/page_manager.png +0 -0
  41. data/app/assets/images/pdf.png +0 -0
  42. data/app/assets/images/personal/ice glass.jpg +0 -0
  43. data/app/assets/images/plus.gif +0 -0
  44. data/app/assets/images/ppt.jpg +0 -0
  45. data/app/assets/images/profileimg.png +0 -0
  46. data/app/assets/images/rails.png +0 -0
  47. data/app/assets/images/setting.png +0 -0
  48. data/app/assets/images/status.png +0 -0
  49. data/app/assets/images/treeview-black-line.gif +0 -0
  50. data/app/assets/images/treeview-black.gif +0 -0
  51. data/app/assets/images/treeview-default-line.gif +0 -0
  52. data/app/assets/images/treeview-default.gif +0 -0
  53. data/app/assets/images/treeview-famfamfam-line.gif +0 -0
  54. data/app/assets/images/treeview-famfamfam.gif +0 -0
  55. data/app/assets/images/treeview-gray-line.gif +0 -0
  56. data/app/assets/images/treeview-gray.gif +0 -0
  57. data/app/assets/images/treeview-red-line.gif +0 -0
  58. data/app/assets/images/treeview-red.gif +0 -0
  59. data/app/assets/images/ui.dynatree.css +440 -0
  60. data/app/assets/images/user.png +0 -0
  61. data/app/assets/images/user1.png +0 -0
  62. data/app/assets/images/user_manager.png +0 -0
  63. data/app/assets/images/video_icon.jpg +0 -0
  64. data/app/assets/images/vline.gif +0 -0
  65. data/app/assets/images/word.png +0 -0
  66. data/app/assets/javascripts/application.js +9 -0
  67. data/app/assets/javascripts/bolt/articles.js.coffee +3 -0
  68. data/app/assets/javascripts/bolt/groups.js.coffee +3 -0
  69. data/app/assets/javascripts/bolt/user_groups.js.coffee +3 -0
  70. data/app/assets/javascripts/bolt/users_groups.js.coffee +3 -0
  71. data/app/assets/javascripts/imagebubble.js~ +68 -0
  72. data/app/assets/javascripts/javascript_functions.js +65 -0
  73. data/app/assets/javascripts/jquery.dynatree.js +3312 -0
  74. data/app/assets/javascripts/jquery.js +154 -0
  75. data/app/assets/javascripts/jquery.treeview.js +251 -0
  76. data/app/assets/javascripts/jquery_new.js +19 -0
  77. data/app/assets/javascripts/login.js +24 -0
  78. data/app/assets/javascripts/media.js +64 -0
  79. data/app/assets/javascripts/media.js.coffee +3 -0
  80. data/app/assets/javascripts/rails.js +132 -0
  81. data/app/assets/miscellaneous/1leader.flv +0 -0
  82. data/app/assets/miscellaneous/users_controller.1.rb +237 -0
  83. data/app/assets/stylesheets/application.css +8 -0
  84. data/app/assets/stylesheets/application.css~ +8 -0
  85. data/app/assets/stylesheets/bolt/articles.css.scss +3 -0
  86. data/app/assets/stylesheets/bolt/groups.css.scss +3 -0
  87. data/app/assets/stylesheets/bolt/user_groups.css.scss +3 -0
  88. data/app/assets/stylesheets/bolt/users_groups.css.scss +3 -0
  89. data/app/assets/stylesheets/bubble.css +28 -0
  90. data/app/assets/stylesheets/depot.css +26 -0
  91. data/app/assets/stylesheets/depot.css~ +34 -0
  92. data/app/assets/stylesheets/dropdown.css +49 -0
  93. data/app/assets/stylesheets/imagebubbles.css~ +32 -0
  94. data/app/assets/stylesheets/jquery.treeview.css +68 -0
  95. data/app/assets/stylesheets/media.css.scss +3 -0
  96. data/app/assets/stylesheets/mediamanager.css +10 -0
  97. data/app/assets/stylesheets/scaffolds.css +56 -0
  98. data/app/assets/stylesheets/scaffolds.css.scss +56 -0
  99. data/app/assets/stylesheets/ui.dynatree.css +440 -0
  100. data/app/assets/stylesheets/users_style.css +80 -0
  101. data/app/assets/videos/1leader.flv +0 -0
  102. data/app/controllers/application_controller.rb +7 -0
  103. data/app/controllers/application_controller.rb~ +3 -0
  104. data/app/controllers/articles_controller.rb~ +91 -0
  105. data/app/controllers/bolt/accesses_controller.rb +71 -0
  106. data/app/controllers/bolt/articles_categories_controller.rb +71 -0
  107. data/app/controllers/bolt/articles_controller.rb +97 -0
  108. data/app/controllers/bolt/articles_controller.rb~ +60 -0
  109. data/app/controllers/bolt/banners_controller.rb +58 -0
  110. data/app/controllers/bolt/blogs_controller.rb +82 -0
  111. data/app/controllers/bolt/bolt_controller.rb +234 -0
  112. data/app/controllers/bolt/bolt_controller.rb~ +201 -0
  113. data/app/controllers/bolt/categories_controller.rb +72 -0
  114. data/app/controllers/bolt/dashboard_controller.rb +14 -0
  115. data/app/controllers/bolt/dashboard_controller.rb~ +14 -0
  116. data/app/controllers/bolt/groups_controller.rb +100 -0
  117. data/app/controllers/bolt/groups_controller.rb~ +85 -0
  118. data/app/controllers/bolt/info_controller.rb +26 -0
  119. data/app/controllers/bolt/media_controller.rb +120 -0
  120. data/app/controllers/bolt/page_sections_controller.rb +58 -0
  121. data/app/controllers/bolt/pages_controller.rb +90 -0
  122. data/app/controllers/bolt/password_resets_controller.rb +66 -0
  123. data/app/controllers/bolt/settings_controller.rb +59 -0
  124. data/app/controllers/bolt/statuses_controller.rb +72 -0
  125. data/app/controllers/bolt/user_sessions_controller.rb +40 -0
  126. data/app/controllers/bolt/user_statuses_controller.rb +58 -0
  127. data/app/controllers/bolt/users_controller.rb +104 -0
  128. data/app/controllers/bolt/users_controller.rb~ +79 -0
  129. data/app/controllers/bolt/users_groups_controller.rb +99 -0
  130. data/app/controllers/bolt/users_groups_controller.rb~ +83 -0
  131. data/app/controllers/groups_controller.rb~ +83 -0
  132. data/app/controllers/users_groups_controller.rb~ +83 -0
  133. data/app/helpers/application_helper.rb +2 -0
  134. data/app/helpers/bolt/articles_helper.rb +2 -0
  135. data/app/helpers/bolt/bolt_helper.rb +208 -0
  136. data/app/helpers/bolt/bolt_helper.rb~ +208 -0
  137. data/app/helpers/bolt/config_helper.rb +46 -0
  138. data/app/helpers/bolt/config_helper.rb~ +46 -0
  139. data/app/helpers/bolt/groups_helper.rb +2 -0
  140. data/app/helpers/bolt/user_groups_helper.rb +2 -0
  141. data/app/helpers/bolt/users_groups_helper.rb +2 -0
  142. data/app/helpers/media_helper.rb +2 -0
  143. data/app/mailers/bolt/backbone_notification.rb~ +39 -0
  144. data/app/mailers/bolt/bolt_notification.rb +39 -0
  145. data/app/models/access.rb +5 -0
  146. data/app/models/article.rb +23 -0
  147. data/app/models/article.rb~ +3 -0
  148. data/app/models/articles_category.rb +12 -0
  149. data/app/models/blog.rb +5 -0
  150. data/app/models/bolt.rb +3 -0
  151. data/app/models/bolt.rb~ +5 -0
  152. data/app/models/bolt/group.rb~ +2 -0
  153. data/app/models/bolt/user.rb +56 -0
  154. data/app/models/bolt/user.rb~ +62 -0
  155. data/app/models/bolt/user_group.rb~ +3 -0
  156. data/app/models/bolt/user_session.rb +8 -0
  157. data/app/models/bolt/users_group.rb~ +2 -0
  158. data/app/models/category.rb +7 -0
  159. data/app/models/group.rb +8 -0
  160. data/app/models/group.rb~ +7 -0
  161. data/app/models/media_image.rb +19 -0
  162. data/app/models/media_images.rb +21 -0
  163. data/app/models/media_images.rb~ +21 -0
  164. data/app/models/medium.rb +8 -0
  165. data/app/models/page.rb +10 -0
  166. data/app/models/page_section.rb +3 -0
  167. data/app/models/setting.rb +3 -0
  168. data/app/models/status.rb +3 -0
  169. data/app/models/user_status.rb +3 -0
  170. data/app/models/users_group.rb +14 -0
  171. data/app/models/users_group.rb~ +6 -0
  172. data/app/views/bolt/accesses/_form.html.erb +13 -0
  173. data/app/views/bolt/accesses/_table.html.erb +17 -0
  174. data/app/views/bolt/accesses/_title.html.erb +9 -0
  175. data/app/views/bolt/accesses/index.html.erb +44 -0
  176. data/app/views/bolt/accesses/new.html.erb +18 -0
  177. data/app/views/bolt/accesses/show.html.erb +17 -0
  178. data/app/views/bolt/articles/_form.html.erb +113 -0
  179. data/app/views/bolt/articles/_form.html.erb~ +33 -0
  180. data/app/views/bolt/articles/_table.html.erb +29 -0
  181. data/app/views/bolt/articles/_table.html.erb~ +28 -0
  182. data/app/views/bolt/articles/_title.html.erb +9 -0
  183. data/app/views/bolt/articles/index.html.erb +37 -0
  184. data/app/views/bolt/articles/index.html.erb~ +10 -0
  185. data/app/views/bolt/articles/new.html.erb +16 -0
  186. data/app/views/bolt/articles/new.html.erb~ +18 -0
  187. data/app/views/bolt/articles/show.html.erb +17 -0
  188. data/app/views/bolt/articles/show.html.erb~ +17 -0
  189. data/app/views/bolt/articles_categories/_form.html.erb +13 -0
  190. data/app/views/bolt/articles_categories/_table.html.erb +18 -0
  191. data/app/views/bolt/articles_categories/index.html.erb +10 -0
  192. data/app/views/bolt/articles_categories/new.html.erb +18 -0
  193. data/app/views/bolt/articles_categories/show.html.erb +17 -0
  194. data/app/views/bolt/banners/_form.html.erb +13 -0
  195. data/app/views/bolt/banners/_table.html.erb +18 -0
  196. data/app/views/bolt/banners/index.html.erb +10 -0
  197. data/app/views/bolt/banners/new.html.erb +18 -0
  198. data/app/views/bolt/banners/show.html.erb +17 -0
  199. data/app/views/bolt/blogs/_form.html.erb +24 -0
  200. data/app/views/bolt/blogs/_table.html.erb +22 -0
  201. data/app/views/bolt/blogs/index.html.erb +33 -0
  202. data/app/views/bolt/blogs/new.html.erb +18 -0
  203. data/app/views/bolt/blogs/show.html.erb +17 -0
  204. data/app/views/bolt/bolt/index.html.erb +0 -0
  205. data/app/views/bolt/bolt/index.html.erb~ +3 -0
  206. data/app/views/bolt/bolt_notification/generate_new_password.erb +12 -0
  207. data/app/views/bolt/bolt_notification/new_user_information.erb +12 -0
  208. data/app/views/bolt/bolt_notification/password_reset_instructions.erb +11 -0
  209. data/app/views/bolt/categories/_form.html.erb +9 -0
  210. data/app/views/bolt/categories/_table.html.erb +17 -0
  211. data/app/views/bolt/categories/_title.html.erb +8 -0
  212. data/app/views/bolt/categories/index.html.erb +36 -0
  213. data/app/views/bolt/categories/new.html.erb +19 -0
  214. data/app/views/bolt/categories/show.html.erb +17 -0
  215. data/app/views/bolt/dashboard/index.html.erb +69 -0
  216. data/app/views/bolt/dashboard/index.html.erb~ +1 -0
  217. data/app/views/bolt/groups/_form.html.erb +18 -0
  218. data/app/views/bolt/groups/_form.html.erb~ +21 -0
  219. data/app/views/bolt/groups/_title.html.erb +5 -0
  220. data/app/views/bolt/groups/edit.html.erb +6 -0
  221. data/app/views/bolt/groups/index.html.erb +43 -0
  222. data/app/views/bolt/groups/index.html.erb~ +23 -0
  223. data/app/views/bolt/groups/new.html.erb +14 -0
  224. data/app/views/bolt/groups/new.html.erb~ +5 -0
  225. data/app/views/bolt/groups/show.html.erb +16 -0
  226. data/app/views/bolt/info/show.html.erb +43 -0
  227. data/app/views/bolt/info/show.html.erb~ +5 -0
  228. data/app/views/bolt/layouts/_left_navigation.html.erb +9 -0
  229. data/app/views/bolt/layouts/_left_navigation.html.erb~ +16 -0
  230. data/app/views/bolt/layouts/_right_navigation.html.erb +1 -0
  231. data/app/views/bolt/layouts/_right_navigation.html.erb~ +1 -0
  232. data/app/views/bolt/layouts/bolt_auth.html.erb +23 -0
  233. data/app/views/bolt/layouts/bolt_auth.html.erb~ +23 -0
  234. data/app/views/bolt/layouts/bolt_main.html.erb +86 -0
  235. data/app/views/bolt/layouts/bolt_main.html.erb~ +64 -0
  236. data/app/views/bolt/media/getfolderdatas.html.erb +31 -0
  237. data/app/views/bolt/media/index.html.erb +195 -0
  238. data/app/views/bolt/page_sections/_form.html.erb +21 -0
  239. data/app/views/bolt/page_sections/_table.html.erb +22 -0
  240. data/app/views/bolt/page_sections/index.html.erb +10 -0
  241. data/app/views/bolt/page_sections/new.html.erb +18 -0
  242. data/app/views/bolt/page_sections/show.html.erb +17 -0
  243. data/app/views/bolt/pages/_form.html.erb +166 -0
  244. data/app/views/bolt/pages/_form.html.erb~ +41 -0
  245. data/app/views/bolt/pages/_page_sections_form.html.erb +39 -0
  246. data/app/views/bolt/pages/_page_sections_form.html.erb~ +3 -0
  247. data/app/views/bolt/pages/_table.html.erb +29 -0
  248. data/app/views/bolt/pages/index.html.erb +34 -0
  249. data/app/views/bolt/pages/new.html.erb +18 -0
  250. data/app/views/bolt/pages/show.html.erb +18 -0
  251. data/app/views/bolt/password_resets/edit.html.erb +48 -0
  252. data/app/views/bolt/settings/_form.html.erb +25 -0
  253. data/app/views/bolt/settings/_table.html.erb +23 -0
  254. data/app/views/bolt/settings/index.html.erb +10 -0
  255. data/app/views/bolt/settings/new.html.erb +18 -0
  256. data/app/views/bolt/settings/show.html.erb +80 -0
  257. data/app/views/bolt/statuses/_form.html.erb +14 -0
  258. data/app/views/bolt/statuses/_table.html.erb +17 -0
  259. data/app/views/bolt/statuses/_title.html.erb +9 -0
  260. data/app/views/bolt/statuses/index.html.erb +37 -0
  261. data/app/views/bolt/statuses/new.html.erb +18 -0
  262. data/app/views/bolt/statuses/show.html.erb +17 -0
  263. data/app/views/bolt/user_sessions/new.html.erb +66 -0
  264. data/app/views/bolt/user_sessions_bk/new.html.erb +69 -0
  265. data/app/views/bolt/user_statuses/_form.html.erb +9 -0
  266. data/app/views/bolt/user_statuses/_table.html.erb +16 -0
  267. data/app/views/bolt/user_statuses/index.html.erb +10 -0
  268. data/app/views/bolt/user_statuses/new.html.erb +18 -0
  269. data/app/views/bolt/user_statuses/show.html.erb +17 -0
  270. data/app/views/bolt/users/_title.html.erb +8 -0
  271. data/app/views/bolt/users/index.html.erb +60 -0
  272. data/app/views/bolt/users/index.html.erb~ +35 -0
  273. data/app/views/bolt/users/new.html.erb +64 -0
  274. data/app/views/bolt/users/new.html.erb~ +46 -0
  275. data/app/views/bolt/users/response.json.builder~ +26 -0
  276. data/app/views/bolt/users/show.html.erb +130 -0
  277. data/app/views/bolt/users/show.html.erb~ +94 -0
  278. data/app/views/bolt/users_bk/_form.html.erb +77 -0
  279. data/app/views/bolt/users_bk/edit.html.erb +6 -0
  280. data/app/views/bolt/users_bk/index.html.erb +58 -0
  281. data/app/views/bolt/users_bk/index.html.erb~ +60 -0
  282. data/app/views/bolt/users_bk/new.html.erb +6 -0
  283. data/app/views/bolt/users_bk/show.html.erb +100 -0
  284. data/app/views/bolt/users_groups/_form.html.erb +25 -0
  285. data/app/views/bolt/users_groups/edit.html.erb +6 -0
  286. data/app/views/bolt/users_groups/index.html.erb +25 -0
  287. data/app/views/bolt/users_groups/new.html.erb +5 -0
  288. data/app/views/bolt/users_groups/show.html.erb +15 -0
  289. data/app/views/layouts/application.html.erb +18 -0
  290. data/app/views/layouts/application.html.erb~ +51 -0
  291. data/app/views/layouts/bolt_auth.html.erb +24 -0
  292. data/app/views/layouts/bolt_auth.html.erb~ +25 -0
  293. data/app/views/layouts/bolt_main.html.erb +142 -0
  294. data/app/views/layouts/bolt_main.html.erb~ +56 -0
  295. data/app/views/layouts/default_site.html.erb +81 -0
  296. data/app/views/user_groups/_form.html.erb +21 -0
  297. data/app/views/user_groups/edit.html.erb +6 -0
  298. data/app/views/user_groups/index.html.erb +32 -0
  299. data/app/views/user_groups/new.html.erb +5 -0
  300. data/app/views/user_groups/show.html.erb +10 -0
  301. data/config/application.rb +49 -0
  302. data/config/application.rb~ +48 -0
  303. data/config/boot.rb +6 -0
  304. data/config/database.yml +31 -0
  305. data/config/database.yml~ +25 -0
  306. data/config/environment.rb +5 -0
  307. data/config/environments/development.rb +30 -0
  308. data/config/environments/production.rb +60 -0
  309. data/config/environments/test.rb +39 -0
  310. data/config/initializers/backtrace_silencers.rb +7 -0
  311. data/config/initializers/inflections.rb +10 -0
  312. data/config/initializers/mime_types.rb +5 -0
  313. data/config/initializers/secret_token.rb +7 -0
  314. data/config/initializers/session_store.rb +8 -0
  315. data/config/initializers/wrap_parameters.rb +14 -0
  316. data/config/locales/en.yml +5 -0
  317. data/config/routes.rb +101 -0
  318. data/config/routes.rb~ +81 -0
  319. data/db/migrate/20111028162853_create_bolt_users.rb +49 -0
  320. data/db/migrate/20111028162853_create_bolt_users.rb~ +49 -0
  321. data/db/migrate/20120302083233_create_articles.rb~ +15 -0
  322. data/db/migrate/20120307133203_create_groups.rb +10 -0
  323. data/db/migrate/20120307133203_create_groups.rb~ +9 -0
  324. data/db/migrate/20120308113354_create_users_groups.rb +10 -0
  325. data/db/migrate/20120308113354_create_users_groups.rb~ +10 -0
  326. data/db/migrate/20120309070442_create_articles.rb +18 -0
  327. data/db/migrate/20120312063336_create_blogs.rb +15 -0
  328. data/db/migrate/20120312071401_create_categories.rb +13 -0
  329. data/db/migrate/20120313051136_create_accesses.rb +13 -0
  330. data/db/migrate/20120313051206_create_statuses.rb +13 -0
  331. data/db/migrate/20120313061322_create_media.rb +18 -0
  332. data/db/migrate/20120313061459_create_media_images.rb +10 -0
  333. data/db/migrate/20120313085220_create_user_statuses.rb +13 -0
  334. data/db/migrate/20120314060252_create_articles_categories.rb +14 -0
  335. data/db/migrate/20120314110540_create_pages.rb +24 -0
  336. data/db/migrate/20120314110540_create_pages.rb~ +24 -0
  337. data/db/migrate/20120314110602_create_page_sections.rb +20 -0
  338. data/db/migrate/20120314110602_create_page_sections.rb~ +20 -0
  339. data/db/migrate/20120314110922_add_ancestry_to_page.rb +9 -0
  340. data/db/migrate/20120315071805_change_mediaimages_column.rb +8 -0
  341. data/db/migrate/20120319132523_create_settings.rb +18 -0
  342. data/db/schema.rb +169 -0
  343. data/db/seeds.rb +7 -0
  344. data/doc/README_FOR_APP +2 -0
  345. data/lib/tasks/tasks.rake +31 -0
  346. data/public/404.html +26 -0
  347. data/public/422.html +26 -0
  348. data/public/500.html +26 -0
  349. data/public/bolt/images/backbone.png +0 -0
  350. data/public/bolt/images/header.png +0 -0
  351. data/public/bolt/images/icons/add.png +0 -0
  352. data/public/bolt/images/icons/ajax-spinner.gif +0 -0
  353. data/public/bolt/images/icons/delete.png +0 -0
  354. data/public/bolt/images/icons/icons.gif +0 -0
  355. data/public/bolt/images/icons/loading.gif +0 -0
  356. data/public/bolt/images/icons/spinner-sm.gif +0 -0
  357. data/public/bolt/images/icons/spinner.png +0 -0
  358. data/public/bolt/images/icons/table.png +0 -0
  359. data/public/bolt/images/icons/vline.gif +0 -0
  360. data/public/bolt/images/login/bottom.png +0 -0
  361. data/public/bolt/images/login/top.png +0 -0
  362. data/public/bolt/images/nav.png +0 -0
  363. data/public/bolt/images/rightNav.png +0 -0
  364. data/public/bolt/images/rightNavButton.png +0 -0
  365. data/public/bolt/images/visitSiteNav.png +0 -0
  366. data/public/bolt/imagesx/backbone.png +0 -0
  367. data/public/bolt/imagesx/header.png +0 -0
  368. data/public/bolt/imagesx/icons/add.png +0 -0
  369. data/public/bolt/imagesx/icons/ajax-spinner.gif +0 -0
  370. data/public/bolt/imagesx/icons/delete.png +0 -0
  371. data/public/bolt/imagesx/icons/icons.gif +0 -0
  372. data/public/bolt/imagesx/icons/loading.gif +0 -0
  373. data/public/bolt/imagesx/icons/spinner-sm.gif +0 -0
  374. data/public/bolt/imagesx/icons/spinner.png +0 -0
  375. data/public/bolt/imagesx/icons/table.png +0 -0
  376. data/public/bolt/imagesx/icons/vline.gif +0 -0
  377. data/public/bolt/imagesx/login/bottom.png +0 -0
  378. data/public/bolt/imagesx/login/top.png +0 -0
  379. data/public/bolt/imagesx/nav.png +0 -0
  380. data/public/bolt/imagesx/rightNav.png +0 -0
  381. data/public/bolt/imagesx/rightNavButton.png +0 -0
  382. data/public/bolt/imagesx/visitSiteNav.png +0 -0
  383. data/public/bolt/javascripts/backbone.js +25 -0
  384. data/public/bolt/javascripts/custom.js +2 -0
  385. data/public/bolt/javascripts/jquery.js +154 -0
  386. data/public/bolt/javascripts/login.js +24 -0
  387. data/public/bolt/javascripts/rails.js +132 -0
  388. data/public/bolt/stylesheets/custom.css +82 -0
  389. data/public/bolt/stylesheets/custom.css~ +82 -0
  390. data/public/bolt/stylesheets/elements.css +316 -0
  391. data/public/bolt/stylesheets/elements.css~ +307 -0
  392. data/public/bolt/stylesheets/login.css +137 -0
  393. data/public/bolt/stylesheets/login.css~ +137 -0
  394. data/public/bolt/stylesheets/screen.css +224 -0
  395. data/public/bolt/stylesheets/screen.css~ +224 -0
  396. data/public/favicon.ico +0 -0
  397. data/public/images/article.png +0 -0
  398. data/public/images/backbone.png +0 -0
  399. data/public/images/cancel.png +0 -0
  400. data/public/images/cat.png +0 -0
  401. data/public/images/delete.png +0 -0
  402. data/public/images/edit.png +0 -0
  403. data/public/images/file.gif +0 -0
  404. data/public/images/folder-closed.gif +0 -0
  405. data/public/images/folder.gif +0 -0
  406. data/public/images/header.png +0 -0
  407. data/public/images/icons.gif +0 -0
  408. data/public/images/icons/add.png +0 -0
  409. data/public/images/icons/ajax-spinner.gif +0 -0
  410. data/public/images/icons/delete.png +0 -0
  411. data/public/images/icons/icons.gif +0 -0
  412. data/public/images/icons/loading.gif +0 -0
  413. data/public/images/icons/spinner-sm.gif +0 -0
  414. data/public/images/icons/spinner.png +0 -0
  415. data/public/images/icons/table.png +0 -0
  416. data/public/images/icons/vline.gif +0 -0
  417. data/public/images/ii.jpg +0 -0
  418. data/public/images/loading.gif +0 -0
  419. data/public/images/login/bottom.png +0 -0
  420. data/public/images/login/top.png +0 -0
  421. data/public/images/logo.png +0 -0
  422. data/public/images/logout.png +0 -0
  423. data/public/images/media.png +0 -0
  424. data/public/images/minus.gif +0 -0
  425. data/public/images/nav.png +0 -0
  426. data/public/images/new.png +0 -0
  427. data/public/images/plus.gif +0 -0
  428. data/public/images/profileimg.png +0 -0
  429. data/public/images/rails.png +0 -0
  430. data/public/images/rightNav.png +0 -0
  431. data/public/images/rightNavButton.png +0 -0
  432. data/public/images/treeview-black-line.gif +0 -0
  433. data/public/images/treeview-black.gif +0 -0
  434. data/public/images/treeview-default-line.gif +0 -0
  435. data/public/images/treeview-default.gif +0 -0
  436. data/public/images/treeview-famfamfam-line.gif +0 -0
  437. data/public/images/treeview-famfamfam.gif +0 -0
  438. data/public/images/treeview-gray-line.gif +0 -0
  439. data/public/images/treeview-gray.gif +0 -0
  440. data/public/images/treeview-red-line.gif +0 -0
  441. data/public/images/treeview-red.gif +0 -0
  442. data/public/images/ui.dynatree.css +440 -0
  443. data/public/images/user.png +0 -0
  444. data/public/images/user1.png +0 -0
  445. data/public/images/visitSiteNav.png +0 -0
  446. data/public/images/vline.gif +0 -0
  447. data/public/javascripts/backbone.js +25 -0
  448. data/public/javascripts/custom.js +2 -0
  449. data/public/javascripts/jquery.js +154 -0
  450. data/public/javascripts/login.js +24 -0
  451. data/public/javascripts/rails.js +132 -0
  452. data/public/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  453. data/public/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  454. data/public/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  455. data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  456. data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  457. data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  458. data/public/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  459. data/public/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  460. data/public/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  461. data/public/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  462. data/public/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  463. data/public/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  464. data/public/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  465. data/public/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  466. data/public/jqueryui/css/ui-lightness/jquery-ui-1.8.18.custom.css +336 -0
  467. data/public/jqueryui/development-bundle/AUTHORS.txt +30 -0
  468. data/public/jqueryui/development-bundle/GPL-LICENSE.txt +278 -0
  469. data/public/jqueryui/development-bundle/MIT-LICENSE.txt +25 -0
  470. data/public/jqueryui/development-bundle/demos/demos.css +334 -0
  471. data/public/jqueryui/development-bundle/demos/dialog/animated.html +56 -0
  472. data/public/jqueryui/development-bundle/demos/dialog/default.html +54 -0
  473. data/public/jqueryui/development-bundle/demos/dialog/index.html +23 -0
  474. data/public/jqueryui/development-bundle/demos/dialog/modal-confirmation.html +69 -0
  475. data/public/jqueryui/development-bundle/demos/dialog/modal-form.html +167 -0
  476. data/public/jqueryui/development-bundle/demos/dialog/modal-message.html +71 -0
  477. data/public/jqueryui/development-bundle/demos/dialog/modal.html +60 -0
  478. data/public/jqueryui/development-bundle/demos/draggable/constrain-movement.html +69 -0
  479. data/public/jqueryui/development-bundle/demos/draggable/cursor-style.html +49 -0
  480. data/public/jqueryui/development-bundle/demos/draggable/default.html +39 -0
  481. data/public/jqueryui/development-bundle/demos/draggable/delay-start.html +45 -0
  482. data/public/jqueryui/development-bundle/demos/draggable/events.html +77 -0
  483. data/public/jqueryui/development-bundle/demos/draggable/handle.html +50 -0
  484. data/public/jqueryui/development-bundle/demos/draggable/index.html +28 -0
  485. data/public/jqueryui/development-bundle/demos/draggable/revert.html +44 -0
  486. data/public/jqueryui/development-bundle/demos/draggable/scroll.html +51 -0
  487. data/public/jqueryui/development-bundle/demos/draggable/snap-to.html +68 -0
  488. data/public/jqueryui/development-bundle/demos/draggable/sortable.html +57 -0
  489. data/public/jqueryui/development-bundle/demos/draggable/visual-feedback.html +77 -0
  490. data/public/jqueryui/development-bundle/demos/droppable/accepted-elements.html +60 -0
  491. data/public/jqueryui/development-bundle/demos/droppable/default.html +53 -0
  492. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  493. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  494. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  495. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  496. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  497. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  498. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  499. data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  500. data/public/jqueryui/development-bundle/demos/droppable/index.html +24 -0
  501. data/public/jqueryui/development-bundle/demos/droppable/photo-manager.html +184 -0
  502. data/public/jqueryui/development-bundle/demos/droppable/propagation.html +80 -0
  503. data/public/jqueryui/development-bundle/demos/droppable/revert.html +61 -0
  504. data/public/jqueryui/development-bundle/demos/droppable/shopping-cart.html +101 -0
  505. data/public/jqueryui/development-bundle/demos/droppable/visual-feedback.html +78 -0
  506. data/public/jqueryui/development-bundle/demos/images/calendar.gif +0 -0
  507. data/public/jqueryui/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  508. data/public/jqueryui/development-bundle/demos/images/demo-config-on.gif +0 -0
  509. data/public/jqueryui/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  510. data/public/jqueryui/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  511. data/public/jqueryui/development-bundle/demos/images/icon-docs-info.gif +0 -0
  512. data/public/jqueryui/development-bundle/demos/images/pbar-ani.gif +0 -0
  513. data/public/jqueryui/development-bundle/demos/index.html +328 -0
  514. data/public/jqueryui/development-bundle/demos/position/cycler.html +122 -0
  515. data/public/jqueryui/development-bundle/demos/position/default.html +153 -0
  516. data/public/jqueryui/development-bundle/demos/position/images/earth.jpg +0 -0
  517. data/public/jqueryui/development-bundle/demos/position/images/flight.jpg +0 -0
  518. data/public/jqueryui/development-bundle/demos/position/images/rocket.jpg +0 -0
  519. data/public/jqueryui/development-bundle/demos/position/index.html +19 -0
  520. data/public/jqueryui/development-bundle/demos/resizable/animate.html +43 -0
  521. data/public/jqueryui/development-bundle/demos/resizable/aspect-ratio.html +42 -0
  522. data/public/jqueryui/development-bundle/demos/resizable/constrain-area.html +47 -0
  523. data/public/jqueryui/development-bundle/demos/resizable/default.html +40 -0
  524. data/public/jqueryui/development-bundle/demos/resizable/delay-start.html +52 -0
  525. data/public/jqueryui/development-bundle/demos/resizable/helper.html +43 -0
  526. data/public/jqueryui/development-bundle/demos/resizable/index.html +28 -0
  527. data/public/jqueryui/development-bundle/demos/resizable/max-min.html +45 -0
  528. data/public/jqueryui/development-bundle/demos/resizable/snap-to-grid.html +42 -0
  529. data/public/jqueryui/development-bundle/demos/resizable/synchronous-resize.html +49 -0
  530. data/public/jqueryui/development-bundle/demos/resizable/textarea.html +41 -0
  531. data/public/jqueryui/development-bundle/demos/resizable/visual-feedback.html +43 -0
  532. data/public/jqueryui/development-bundle/demos/selectable/default.html +50 -0
  533. data/public/jqueryui/development-bundle/demos/selectable/display-grid.html +55 -0
  534. data/public/jqueryui/development-bundle/demos/selectable/index.html +20 -0
  535. data/public/jqueryui/development-bundle/demos/selectable/serialize.html +61 -0
  536. data/public/jqueryui/development-bundle/demos/sortable/connect-lists-through-tabs.html +78 -0
  537. data/public/jqueryui/development-bundle/demos/sortable/connect-lists.html +58 -0
  538. data/public/jqueryui/development-bundle/demos/sortable/default.html +51 -0
  539. data/public/jqueryui/development-bundle/demos/sortable/delay-start.html +67 -0
  540. data/public/jqueryui/development-bundle/demos/sortable/display-grid.html +54 -0
  541. data/public/jqueryui/development-bundle/demos/sortable/empty-lists.html +69 -0
  542. data/public/jqueryui/development-bundle/demos/sortable/index.html +26 -0
  543. data/public/jqueryui/development-bundle/demos/sortable/items.html +70 -0
  544. data/public/jqueryui/development-bundle/demos/sortable/placeholder.html +56 -0
  545. data/public/jqueryui/development-bundle/demos/sortable/portlets.html +96 -0
  546. data/public/jqueryui/development-bundle/docs/dialog.html +1698 -0
  547. data/public/jqueryui/development-bundle/docs/draggable.html +1577 -0
  548. data/public/jqueryui/development-bundle/docs/droppable.html +829 -0
  549. data/public/jqueryui/development-bundle/docs/position.html +245 -0
  550. data/public/jqueryui/development-bundle/docs/resizable.html +1201 -0
  551. data/public/jqueryui/development-bundle/docs/selectable.html +848 -0
  552. data/public/jqueryui/development-bundle/docs/sortable.html +1953 -0
  553. data/public/jqueryui/development-bundle/external/jquery.bgiframe-2.1.2.js +39 -0
  554. data/public/jqueryui/development-bundle/external/jquery.cookie.js +89 -0
  555. data/public/jqueryui/development-bundle/external/jquery.metadata.js +122 -0
  556. data/public/jqueryui/development-bundle/external/qunit.css +225 -0
  557. data/public/jqueryui/development-bundle/external/qunit.js +1448 -0
  558. data/public/jqueryui/development-bundle/jquery-1.7.1.js +9266 -0
  559. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  560. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  561. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  562. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  563. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  564. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  565. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  566. data/public/jqueryui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  567. data/public/jqueryui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  568. data/public/jqueryui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  569. data/public/jqueryui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  570. data/public/jqueryui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  571. data/public/jqueryui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  572. data/public/jqueryui/development-bundle/themes/base/jquery.ui.all.css +11 -0
  573. data/public/jqueryui/development-bundle/themes/base/jquery.ui.base.css +4 -0
  574. data/public/jqueryui/development-bundle/themes/base/jquery.ui.core.css +38 -0
  575. data/public/jqueryui/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
  576. data/public/jqueryui/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
  577. data/public/jqueryui/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
  578. data/public/jqueryui/development-bundle/themes/base/jquery.ui.theme.css +247 -0
  579. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  580. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  581. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  582. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  583. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  584. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  585. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  586. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  587. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  588. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  589. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  590. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  591. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  592. data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  593. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery-ui-1.8.18.custom.css +336 -0
  594. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.all.css +11 -0
  595. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.base.css +4 -0
  596. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.core.css +38 -0
  597. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.dialog.css +21 -0
  598. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.resizable.css +20 -0
  599. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.selectable.css +10 -0
  600. data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.theme.css +249 -0
  601. data/public/jqueryui/development-bundle/ui/jquery-ui-1.8.18.custom.js +5206 -0
  602. data/public/jqueryui/development-bundle/ui/jquery.ui.core.js +319 -0
  603. data/public/jqueryui/development-bundle/ui/jquery.ui.dialog.js +878 -0
  604. data/public/jqueryui/development-bundle/ui/jquery.ui.draggable.js +825 -0
  605. data/public/jqueryui/development-bundle/ui/jquery.ui.droppable.js +296 -0
  606. data/public/jqueryui/development-bundle/ui/jquery.ui.mouse.js +162 -0
  607. data/public/jqueryui/development-bundle/ui/jquery.ui.position.js +298 -0
  608. data/public/jqueryui/development-bundle/ui/jquery.ui.resizable.js +808 -0
  609. data/public/jqueryui/development-bundle/ui/jquery.ui.selectable.js +267 -0
  610. data/public/jqueryui/development-bundle/ui/jquery.ui.sortable.js +1081 -0
  611. data/public/jqueryui/development-bundle/ui/jquery.ui.widget.js +272 -0
  612. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.core.min.js +9 -0
  613. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.dialog.min.js +18 -0
  614. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.draggable.min.js +14 -0
  615. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.droppable.min.js +15 -0
  616. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.mouse.min.js +12 -0
  617. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.position.min.js +9 -0
  618. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.resizable.min.js +14 -0
  619. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.selectable.min.js +14 -0
  620. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.sortable.min.js +14 -0
  621. data/public/jqueryui/development-bundle/ui/minified/jquery.ui.widget.min.js +9 -0
  622. data/public/jqueryui/development-bundle/version.txt +1 -0
  623. data/public/jqueryui/js/jquery-1.7.1.min.js +4 -0
  624. data/public/jqueryui/js/jquery-ui-1.8.18.custom.min.js +119 -0
  625. data/public/robots.txt +5 -0
  626. data/public/stylesheets/custom.css +91 -0
  627. data/public/stylesheets/custom.css~ +82 -0
  628. data/public/stylesheets/elements.css +315 -0
  629. data/public/stylesheets/elements.css~ +307 -0
  630. data/public/stylesheets/login.css +137 -0
  631. data/public/stylesheets/login.css~ +137 -0
  632. data/public/stylesheets/screen.css +224 -0
  633. data/public/stylesheets/screen.css~ +224 -0
  634. data/script/rails +6 -0
  635. data/test/fixtures/bolt/groups.yml +7 -0
  636. data/test/fixtures/bolt/users_groups.yml +9 -0
  637. data/test/fixtures/media.yml +13 -0
  638. data/test/fixtures/media_images.yml +9 -0
  639. data/test/functional/bolt/groups_controller_test.rb +49 -0
  640. data/test/functional/bolt/users_groups_controller_test.rb +49 -0
  641. data/test/functional/media_controller_test.rb +49 -0
  642. data/test/performance/browsing_test.rb +12 -0
  643. data/test/test_helper.rb +13 -0
  644. data/test/unit/bolt/group_test.rb +7 -0
  645. data/test/unit/bolt/users_group_test.rb +7 -0
  646. data/test/unit/helpers/bolt/groups_helper_test.rb +4 -0
  647. data/test/unit/helpers/bolt/users_groups_helper_test.rb +4 -0
  648. data/test/unit/helpers/media_helper_test.rb +4 -0
  649. data/test/unit/media_images_test.rb +7 -0
  650. data/test/unit/medium_test.rb +7 -0
  651. metadata +716 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>jQuery UI Sortable Demos</title>
6
+ <link rel="stylesheet" href="../demos.css">
7
+ </head>
8
+ <body>
9
+
10
+ <div class="demos-nav">
11
+ <h4>Examples</h4>
12
+ <ul>
13
+ <li class="demo-config-on"><a href="default.html">Default functionality</a></li>
14
+ <li><a href="placeholder.html">Drop placeholder</a></li>
15
+ <li><a href="connect-lists.html">Connect lists</a></li>
16
+ <li><a href="connect-lists-through-tabs.html">Connect lists through tabs</a></li>
17
+ <li><a href="empty-lists.html">Handle empty lists</a></li>
18
+ <li><a href="items.html">Include / exclude items</a></li>
19
+ <li><a href="delay-start.html">Delay start</a></li>
20
+ <li><a href="display-grid.html">Display as grid</a></li>
21
+ <li><a href="portlets.html">Portlets</a></li>
22
+ </ul>
23
+ </div>
24
+
25
+ </body>
26
+ </html>
@@ -0,0 +1,70 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>jQuery UI Sortable - Include / exclude items</title>
6
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7
+ <script src="../../jquery-1.7.1.js"></script>
8
+ <script src="../../ui/jquery.ui.core.js"></script>
9
+ <script src="../../ui/jquery.ui.widget.js"></script>
10
+ <script src="../../ui/jquery.ui.mouse.js"></script>
11
+ <script src="../../ui/jquery.ui.sortable.js"></script>
12
+ <link rel="stylesheet" href="../demos.css">
13
+ <style>
14
+ #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; zoom: 1; }
15
+ #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 3px; width: 90%; }
16
+ </style>
17
+ <script>
18
+ $(function() {
19
+ $( "#sortable1" ).sortable({
20
+ items: "li:not(.ui-state-disabled)"
21
+ });
22
+
23
+ $( "#sortable2" ).sortable({
24
+ cancel: ".ui-state-disabled"
25
+ });
26
+
27
+ $( "#sortable1 li, #sortable2 li" ).disableSelection();
28
+ });
29
+ </script>
30
+ </head>
31
+ <body>
32
+ <div class="demo">
33
+
34
+ <h3 class="docs">Specify which items are sortable:</h3>
35
+
36
+ <ul id="sortable1">
37
+ <li class="ui-state-default">Item 1</li>
38
+ <li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
39
+ <li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
40
+ <li class="ui-state-default">Item 4</li>
41
+ </ul>
42
+
43
+ <h3 class="docs">Cancel sorting (but keep as drop targets):</h3>
44
+
45
+ <ul id="sortable2">
46
+ <li class="ui-state-default">Item 1</li>
47
+ <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
48
+ <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
49
+ <li class="ui-state-default">Item 4</li>
50
+ </ul>
51
+
52
+ </div><!-- End demo -->
53
+
54
+
55
+
56
+ <div class="demo-description">
57
+ <p>
58
+ Specify which items are eligible to sort by passing a jQuery selector into
59
+ the <code>items</code> option. Items excluded from this option are not
60
+ sortable, nor are they valid targets for sortable items.
61
+ </p>
62
+ <p>
63
+ To only prevent sorting on certain items, pass a jQuery selector into the
64
+ <code>cancel</code> option. Cancelled items remain valid sort targets for
65
+ others.
66
+ </p>
67
+ </div><!-- End demo-description -->
68
+
69
+ </body>
70
+ </html>
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>jQuery UI Sortable - Drop placeholder</title>
6
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7
+ <script src="../../jquery-1.7.1.js"></script>
8
+ <script src="../../ui/jquery.ui.core.js"></script>
9
+ <script src="../../ui/jquery.ui.widget.js"></script>
10
+ <script src="../../ui/jquery.ui.mouse.js"></script>
11
+ <script src="../../ui/jquery.ui.sortable.js"></script>
12
+ <link rel="stylesheet" href="../demos.css">
13
+ <style>
14
+ #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
15
+ #sortable li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; height: 1.5em; }
16
+ html>body #sortable li { height: 1.5em; line-height: 1.2em; }
17
+ .ui-state-highlight { height: 1.5em; line-height: 1.2em; }
18
+ </style>
19
+ <script>
20
+ $(function() {
21
+ $( "#sortable" ).sortable({
22
+ placeholder: "ui-state-highlight"
23
+ });
24
+ $( "#sortable" ).disableSelection();
25
+ });
26
+ </script>
27
+ </head>
28
+ <body>
29
+ <div class="demo">
30
+
31
+ <ul id="sortable">
32
+ <li class="ui-state-default">Item 1</li>
33
+ <li class="ui-state-default">Item 2</li>
34
+ <li class="ui-state-default">Item 3</li>
35
+ <li class="ui-state-default">Item 4</li>
36
+ <li class="ui-state-default">Item 5</li>
37
+ <li class="ui-state-default">Item 6</li>
38
+ <li class="ui-state-default">Item 7</li>
39
+ </ul>
40
+
41
+ </div><!-- End demo -->
42
+
43
+
44
+
45
+ <div class="demo-description">
46
+ <p>
47
+ When dragging a sortable item to a new location, other items will make room
48
+ for the that item by shifting to allow white space between them. Pass a
49
+ class into the <code>placeholder</code> option to style that space to
50
+ be visible. Use the boolean <code>forcePlaceholderSize</code> option
51
+ to set dimensions on the placeholder.
52
+ </p>
53
+ </div><!-- End demo-description -->
54
+
55
+ </body>
56
+ </html>
@@ -0,0 +1,96 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>jQuery UI Sortable - Portlets</title>
6
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7
+ <script src="../../jquery-1.7.1.js"></script>
8
+ <script src="../../ui/jquery.ui.core.js"></script>
9
+ <script src="../../ui/jquery.ui.widget.js"></script>
10
+ <script src="../../ui/jquery.ui.mouse.js"></script>
11
+ <script src="../../ui/jquery.ui.sortable.js"></script>
12
+ <link rel="stylesheet" href="../demos.css">
13
+ <style>
14
+ .column { width: 170px; float: left; padding-bottom: 100px; }
15
+ .portlet { margin: 0 1em 1em 0; }
16
+ .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; }
17
+ .portlet-header .ui-icon { float: right; }
18
+ .portlet-content { padding: 0.4em; }
19
+ .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; }
20
+ .ui-sortable-placeholder * { visibility: hidden; }
21
+ </style>
22
+ <script>
23
+ $(function() {
24
+ $( ".column" ).sortable({
25
+ connectWith: ".column"
26
+ });
27
+
28
+ $( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
29
+ .find( ".portlet-header" )
30
+ .addClass( "ui-widget-header ui-corner-all" )
31
+ .prepend( "<span class='ui-icon ui-icon-minusthick'></span>")
32
+ .end()
33
+ .find( ".portlet-content" );
34
+
35
+ $( ".portlet-header .ui-icon" ).click(function() {
36
+ $( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
37
+ $( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
38
+ });
39
+
40
+ $( ".column" ).disableSelection();
41
+ });
42
+ </script>
43
+ </head>
44
+ <body>
45
+ <div class="demo">
46
+
47
+ <div class="column">
48
+
49
+ <div class="portlet">
50
+ <div class="portlet-header">Feeds</div>
51
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
52
+ </div>
53
+
54
+ <div class="portlet">
55
+ <div class="portlet-header">News</div>
56
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
57
+ </div>
58
+
59
+ </div>
60
+
61
+ <div class="column">
62
+
63
+ <div class="portlet">
64
+ <div class="portlet-header">Shopping</div>
65
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
66
+ </div>
67
+
68
+ </div>
69
+
70
+ <div class="column">
71
+
72
+ <div class="portlet">
73
+ <div class="portlet-header">Links</div>
74
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
75
+ </div>
76
+
77
+ <div class="portlet">
78
+ <div class="portlet-header">Images</div>
79
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
80
+ </div>
81
+
82
+ </div>
83
+
84
+ </div><!-- End demo -->
85
+
86
+
87
+
88
+ <div class="demo-description">
89
+ <p>
90
+ Enable portlets (styled divs) as sortables and use the <code>connectWith</code>
91
+ option to allow sorting between columns.
92
+ </p>
93
+ </div><!-- End demo-description -->
94
+
95
+ </body>
96
+ </html>
@@ -0,0 +1,1698 @@
1
+
2
+ <ul class="UIAPIPlugin-toc">
3
+ <li><a href="#overview">Overview</a></li>
4
+ <li><a href="#options">Options</a></li>
5
+ <li><a href="#events">Events</a></li>
6
+ <li><a href="#methods">Methods</a></li>
7
+ <li><a href="#theming">Theming</a></li>
8
+ </ul>
9
+ <div class="UIAPIPlugin">
10
+ <h1>jQuery UI Dialog</h1>
11
+ <div id="overview">
12
+ <h2 class="top-header">Overview</h2>
13
+ <div id="overview-main">
14
+ <p>A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.</p>
15
+ <p>If the content length exceeds the maximum height, a scrollbar will automatically appear.</p>
16
+ <p>A bottom button bar and semi-transparent modal overlay layer are common options that can be added.</p>
17
+ <p>A call to <code>$(foo).dialog()</code> will initialize a dialog instance and will auto-open the dialog by default. If you want to reuse a dialog, the easiest way is to disable the "auto-open" option with: <code>$(foo).dialog({ autoOpen: false })</code> and open it with <code>$(foo).dialog('open')</code>. To close it, use <code>$(foo).dialog('close')</code>. A more in-depth explanation with a full demo is available on <a href="http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/" class="external text" title="http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/">the Nemikor blog</a>.</p>
18
+ </div>
19
+ <div id="overview-dependencies">
20
+ <h3>Dependencies</h3>
21
+ <ul>
22
+ <li>UI Core</li>
23
+ <li>UI Position</li>
24
+ <li>UI Widget</li>
25
+ <li>UI Mouse (Optional; only needed if using UI Draggable or UI Resizable)</li>
26
+ <li>UI Draggable (Optional)</li>
27
+ <li>UI Resizable (Optional)</li>
28
+ </ul>
29
+ </div>
30
+ <div id="overview-example">
31
+ <h3>Example</h3>
32
+ <div id="overview-example" class="example">
33
+ <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
34
+ <p><div id="demo" class="tabs-container" rel="300">
35
+ A simple jQuery UI Dialog.<br />
36
+ </p>
37
+ <pre>$(&quot;#dialog&quot;).dialog();
38
+ </pre>
39
+ <p></div><div id="source" class="tabs-container">
40
+ </p>
41
+ <pre>&lt;!DOCTYPE html&gt;
42
+ &lt;html&gt;
43
+ &lt;head&gt;
44
+ &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
45
+ &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt;
46
+ &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
47
+
48
+ &lt;script&gt;
49
+ $(document).ready(function() {
50
+ $(&quot;#dialog&quot;).dialog();
51
+ });
52
+ &lt;/script&gt;
53
+ &lt;/head&gt;
54
+ &lt;body style="font-size:62.5%;"&gt;
55
+
56
+ &lt;div id=&quot;dialog&quot; title=&quot;Dialog Title&quot;&gt;I'm in a dialog&lt;/div&gt;
57
+
58
+ &lt;/body&gt;
59
+ &lt;/html&gt;
60
+ </pre>
61
+ <p></div>
62
+ </p><p></div>
63
+ </div>
64
+ </div>
65
+ <div id="options">
66
+ <h2 class="top-header">Options</h2>
67
+ <ul class="options-list">
68
+
69
+ <li class="option" id="option-disabled">
70
+ <div class="option-header">
71
+ <h3 class="option-name"><a href="#option-disabled">disabled</a></h3>
72
+ <dl>
73
+ <dt class="option-type-label">Type:</dt>
74
+ <dd class="option-type">Boolean</dd>
75
+
76
+ <dt class="option-default-label">Default:</dt>
77
+ <dd class="option-default">false</dd>
78
+
79
+ </dl>
80
+ </div>
81
+ <div class="option-description">
82
+ <p>Disables (true) or enables (false) the dialog. Can be set when initialising (first creating) the dialog.</p>
83
+ </div>
84
+ <div class="option-examples">
85
+ <h4>Code examples</h4>
86
+ <dl class="option-examples-list">
87
+
88
+ <dt>
89
+ Initialize a dialog with the <code>disabled</code> option specified.
90
+ </dt>
91
+ <dd>
92
+ <pre><code>$( ".selector" ).dialog({ disabled: true });</code></pre>
93
+ </dd>
94
+
95
+
96
+ <dt>
97
+ Get or set the <code>disabled</code> option, after init.
98
+ </dt>
99
+ <dd>
100
+ <pre><code>//getter
101
+ var disabled = $( ".selector" ).dialog( "option", "disabled" );
102
+ //setter
103
+ $( ".selector" ).dialog( "option", "disabled", true );</code></pre>
104
+ </dd>
105
+
106
+ </dl>
107
+ </div>
108
+ </li>
109
+
110
+
111
+ <li class="option" id="option-autoOpen">
112
+ <div class="option-header">
113
+ <h3 class="option-name"><a href="#option-autoOpen">autoOpen</a></h3>
114
+ <dl>
115
+ <dt class="option-type-label">Type:</dt>
116
+ <dd class="option-type">Boolean</dd>
117
+
118
+ <dt class="option-default-label">Default:</dt>
119
+ <dd class="option-default">true</dd>
120
+
121
+ </dl>
122
+ </div>
123
+ <div class="option-description">
124
+ <p>When <i>autoOpen</i> is <i>true</i> the dialog will open automatically when <i>dialog</i> is called. If <i>false</i> it will stay hidden until <i>.dialog("open")</i> is called on it.</p>
125
+ </div>
126
+ <div class="option-examples">
127
+ <h4>Code examples</h4>
128
+ <dl class="option-examples-list">
129
+
130
+ <dt>
131
+ Initialize a dialog with the <code>autoOpen</code> option specified.
132
+ </dt>
133
+ <dd>
134
+ <pre><code>$( ".selector" ).dialog({ autoOpen: false });</code></pre>
135
+ </dd>
136
+
137
+
138
+ <dt>
139
+ Get or set the <code>autoOpen</code> option, after init.
140
+ </dt>
141
+ <dd>
142
+ <pre><code>//getter
143
+ var autoOpen = $( ".selector" ).dialog( "option", "autoOpen" );
144
+ //setter
145
+ $( ".selector" ).dialog( "option", "autoOpen", false );</code></pre>
146
+ </dd>
147
+
148
+ </dl>
149
+ </div>
150
+ </li>
151
+
152
+
153
+ <li class="option" id="option-buttons">
154
+ <div class="option-header">
155
+ <h3 class="option-name"><a href="#option-buttons">buttons</a></h3>
156
+ <dl>
157
+ <dt class="option-type-label">Type:</dt>
158
+ <dd class="option-type">Object</dd>
159
+
160
+ <dt class="option-default-label">Default:</dt>
161
+ <dd class="option-default">{ }</dd>
162
+
163
+ </dl>
164
+ </div>
165
+ <div class="option-description">
166
+ <p>Specifies which buttons should be displayed on the dialog. The property key is the text of the button. The value is the callback function for when the button is clicked. The context of the callback is the dialog element; if you need access to the button, it is available as the target of the event object.
167
+ </p>
168
+ </div>
169
+ <div class="option-examples">
170
+ <h4>Code examples</h4>
171
+ <dl class="option-examples-list">
172
+
173
+ <dt>
174
+ Initialize a dialog with the <code>buttons</code> option specified.
175
+ </dt>
176
+ <dd>
177
+ <pre><code>$( ".selector" ).dialog({ buttons: { &quot;Ok&quot;: function() { $(this).dialog(&quot;close&quot;); } } });</code></pre>
178
+ </dd>
179
+
180
+
181
+ <dt>
182
+ Get or set the <code>buttons</code> option, after init.
183
+ </dt>
184
+ <dd>
185
+ <pre><code>//getter
186
+ var buttons = $( ".selector" ).dialog( "option", "buttons" );
187
+ //setter
188
+ $( ".selector" ).dialog( "option", "buttons", { &quot;Ok&quot;: function() { $(this).dialog(&quot;close&quot;); } } );</code></pre>
189
+ </dd>
190
+
191
+ </dl>
192
+ </div>
193
+ </li>
194
+
195
+
196
+ <li class="option" id="option-buttons">
197
+ <div class="option-header">
198
+ <h3 class="option-name"><a href="#option-buttons">buttons</a></h3>
199
+ <dl>
200
+ <dt class="option-type-label">Type:</dt>
201
+ <dd class="option-type">Array</dd>
202
+
203
+ <dt class="option-default-label">Default:</dt>
204
+ <dd class="option-default">[ ]</dd>
205
+
206
+ </dl>
207
+ </div>
208
+ <div class="option-description">
209
+ <p>Specifies which buttons should be displayed on the dialog. Each element of the array must be an Object defining the properties to set on the button.
210
+ </p>
211
+ </div>
212
+ <div class="option-examples">
213
+ <h4>Code examples</h4>
214
+ <dl class="option-examples-list">
215
+
216
+ <dt>
217
+ Initialize a dialog with the <code>buttons</code> option specified.
218
+ </dt>
219
+ <dd>
220
+ <pre><code>$( ".selector" ).dialog({ buttons: [
221
+ {
222
+ text: &quot;Ok&quot;,
223
+ click: function() { $(this).dialog(&quot;close&quot;); }
224
+ }
225
+ ] });</code></pre>
226
+ </dd>
227
+
228
+
229
+ <dt>
230
+ Get or set the <code>buttons</code> option, after init.
231
+ </dt>
232
+ <dd>
233
+ <pre><code>//getter
234
+ var buttons = $( ".selector" ).dialog( "option", "buttons" );
235
+ //setter
236
+ $( ".selector" ).dialog( "option", "buttons", [
237
+ {
238
+ text: &quot;Ok&quot;,
239
+ click: function() { $(this).dialog(&quot;close&quot;); }
240
+ }
241
+ ] );</code></pre>
242
+ </dd>
243
+
244
+ </dl>
245
+ </div>
246
+ </li>
247
+
248
+
249
+ <li class="option" id="option-closeOnEscape">
250
+ <div class="option-header">
251
+ <h3 class="option-name"><a href="#option-closeOnEscape">closeOnEscape</a></h3>
252
+ <dl>
253
+ <dt class="option-type-label">Type:</dt>
254
+ <dd class="option-type">Boolean</dd>
255
+
256
+ <dt class="option-default-label">Default:</dt>
257
+ <dd class="option-default">true</dd>
258
+
259
+ </dl>
260
+ </div>
261
+ <div class="option-description">
262
+ <p>Specifies whether the dialog should close when it has focus and the user presses the esacpe (ESC) key.</p>
263
+ </div>
264
+ <div class="option-examples">
265
+ <h4>Code examples</h4>
266
+ <dl class="option-examples-list">
267
+
268
+ <dt>
269
+ Initialize a dialog with the <code>closeOnEscape</code> option specified.
270
+ </dt>
271
+ <dd>
272
+ <pre><code>$( ".selector" ).dialog({ closeOnEscape: false });</code></pre>
273
+ </dd>
274
+
275
+
276
+ <dt>
277
+ Get or set the <code>closeOnEscape</code> option, after init.
278
+ </dt>
279
+ <dd>
280
+ <pre><code>//getter
281
+ var closeOnEscape = $( ".selector" ).dialog( "option", "closeOnEscape" );
282
+ //setter
283
+ $( ".selector" ).dialog( "option", "closeOnEscape", false );</code></pre>
284
+ </dd>
285
+
286
+ </dl>
287
+ </div>
288
+ </li>
289
+
290
+
291
+ <li class="option" id="option-closeText">
292
+ <div class="option-header">
293
+ <h3 class="option-name"><a href="#option-closeText">closeText</a></h3>
294
+ <dl>
295
+ <dt class="option-type-label">Type:</dt>
296
+ <dd class="option-type">String</dd>
297
+
298
+ <dt class="option-default-label">Default:</dt>
299
+ <dd class="option-default">'close'</dd>
300
+
301
+ </dl>
302
+ </div>
303
+ <div class="option-description">
304
+ <p>Specifies the text for the close button. Note that the close text is visibly hidden when using a standard theme.</p>
305
+ </div>
306
+ <div class="option-examples">
307
+ <h4>Code examples</h4>
308
+ <dl class="option-examples-list">
309
+
310
+ <dt>
311
+ Initialize a dialog with the <code>closeText</code> option specified.
312
+ </dt>
313
+ <dd>
314
+ <pre><code>$( ".selector" ).dialog({ closeText: 'hide' });</code></pre>
315
+ </dd>
316
+
317
+
318
+ <dt>
319
+ Get or set the <code>closeText</code> option, after init.
320
+ </dt>
321
+ <dd>
322
+ <pre><code>//getter
323
+ var closeText = $( ".selector" ).dialog( "option", "closeText" );
324
+ //setter
325
+ $( ".selector" ).dialog( "option", "closeText", 'hide' );</code></pre>
326
+ </dd>
327
+
328
+ </dl>
329
+ </div>
330
+ </li>
331
+
332
+
333
+ <li class="option" id="option-dialogClass">
334
+ <div class="option-header">
335
+ <h3 class="option-name"><a href="#option-dialogClass">dialogClass</a></h3>
336
+ <dl>
337
+ <dt class="option-type-label">Type:</dt>
338
+ <dd class="option-type">String</dd>
339
+
340
+ <dt class="option-default-label">Default:</dt>
341
+ <dd class="option-default">''</dd>
342
+
343
+ </dl>
344
+ </div>
345
+ <div class="option-description">
346
+ <p>The specified class name(s) will be added to the dialog, for additional theming.</p>
347
+ </div>
348
+ <div class="option-examples">
349
+ <h4>Code examples</h4>
350
+ <dl class="option-examples-list">
351
+
352
+ <dt>
353
+ Initialize a dialog with the <code>dialogClass</code> option specified.
354
+ </dt>
355
+ <dd>
356
+ <pre><code>$( ".selector" ).dialog({ dialogClass: 'alert' });</code></pre>
357
+ </dd>
358
+
359
+
360
+ <dt>
361
+ Get or set the <code>dialogClass</code> option, after init.
362
+ </dt>
363
+ <dd>
364
+ <pre><code>//getter
365
+ var dialogClass = $( ".selector" ).dialog( "option", "dialogClass" );
366
+ //setter
367
+ $( ".selector" ).dialog( "option", "dialogClass", 'alert' );</code></pre>
368
+ </dd>
369
+
370
+ </dl>
371
+ </div>
372
+ </li>
373
+
374
+
375
+ <li class="option" id="option-draggable">
376
+ <div class="option-header">
377
+ <h3 class="option-name"><a href="#option-draggable">draggable</a></h3>
378
+ <dl>
379
+ <dt class="option-type-label">Type:</dt>
380
+ <dd class="option-type">Boolean</dd>
381
+
382
+ <dt class="option-default-label">Default:</dt>
383
+ <dd class="option-default">true</dd>
384
+
385
+ </dl>
386
+ </div>
387
+ <div class="option-description">
388
+ <p>If set to true, the dialog will be draggable will be draggable by the titlebar.</p>
389
+ </div>
390
+ <div class="option-examples">
391
+ <h4>Code examples</h4>
392
+ <dl class="option-examples-list">
393
+
394
+ <dt>
395
+ Initialize a dialog with the <code>draggable</code> option specified.
396
+ </dt>
397
+ <dd>
398
+ <pre><code>$( ".selector" ).dialog({ draggable: false });</code></pre>
399
+ </dd>
400
+
401
+
402
+ <dt>
403
+ Get or set the <code>draggable</code> option, after init.
404
+ </dt>
405
+ <dd>
406
+ <pre><code>//getter
407
+ var draggable = $( ".selector" ).dialog( "option", "draggable" );
408
+ //setter
409
+ $( ".selector" ).dialog( "option", "draggable", false );</code></pre>
410
+ </dd>
411
+
412
+ </dl>
413
+ </div>
414
+ </li>
415
+
416
+
417
+ <li class="option" id="option-height">
418
+ <div class="option-header">
419
+ <h3 class="option-name"><a href="#option-height">height</a></h3>
420
+ <dl>
421
+ <dt class="option-type-label">Type:</dt>
422
+ <dd class="option-type">Number</dd>
423
+
424
+ <dt class="option-default-label">Default:</dt>
425
+ <dd class="option-default">'auto'</dd>
426
+
427
+ </dl>
428
+ </div>
429
+ <div class="option-description">
430
+ <p>The height of the dialog, in pixels. Specifying 'auto' is also supported to make the dialog adjust based on its content.</p>
431
+ </div>
432
+ <div class="option-examples">
433
+ <h4>Code examples</h4>
434
+ <dl class="option-examples-list">
435
+
436
+ <dt>
437
+ Initialize a dialog with the <code>height</code> option specified.
438
+ </dt>
439
+ <dd>
440
+ <pre><code>$( ".selector" ).dialog({ height: 530 });</code></pre>
441
+ </dd>
442
+
443
+
444
+ <dt>
445
+ Get or set the <code>height</code> option, after init.
446
+ </dt>
447
+ <dd>
448
+ <pre><code>//getter
449
+ var height = $( ".selector" ).dialog( "option", "height" );
450
+ //setter
451
+ $( ".selector" ).dialog( "option", "height", 530 );</code></pre>
452
+ </dd>
453
+
454
+ </dl>
455
+ </div>
456
+ </li>
457
+
458
+
459
+ <li class="option" id="option-hide">
460
+ <div class="option-header">
461
+ <h3 class="option-name"><a href="#option-hide">hide</a></h3>
462
+ <dl>
463
+ <dt class="option-type-label">Type:</dt>
464
+ <dd class="option-type">String, Object</dd>
465
+
466
+ <dt class="option-default-label">Default:</dt>
467
+ <dd class="option-default">null</dd>
468
+
469
+ </dl>
470
+ </div>
471
+ <div class="option-description">
472
+ <p>The effect to be used when the dialog is closed.</p>
473
+ </div>
474
+ <div class="option-examples">
475
+ <h4>Code examples</h4>
476
+ <dl class="option-examples-list">
477
+
478
+ <dt>
479
+ Initialize a dialog with the <code>hide</code> option specified.
480
+ </dt>
481
+ <dd>
482
+ <pre><code>$( ".selector" ).dialog({ hide: 'slide' });</code></pre>
483
+ </dd>
484
+
485
+
486
+ <dt>
487
+ Get or set the <code>hide</code> option, after init.
488
+ </dt>
489
+ <dd>
490
+ <pre><code>//getter
491
+ var hide = $( ".selector" ).dialog( "option", "hide" );
492
+ //setter
493
+ $( ".selector" ).dialog( "option", "hide", 'slide' );</code></pre>
494
+ </dd>
495
+
496
+ </dl>
497
+ </div>
498
+ </li>
499
+
500
+
501
+ <li class="option" id="option-maxHeight">
502
+ <div class="option-header">
503
+ <h3 class="option-name"><a href="#option-maxHeight">maxHeight</a></h3>
504
+ <dl>
505
+ <dt class="option-type-label">Type:</dt>
506
+ <dd class="option-type">Number</dd>
507
+
508
+ <dt class="option-default-label">Default:</dt>
509
+ <dd class="option-default">false</dd>
510
+
511
+ </dl>
512
+ </div>
513
+ <div class="option-description">
514
+ <p>The maximum height to which the dialog can be resized, in pixels.</p>
515
+ </div>
516
+ <div class="option-examples">
517
+ <h4>Code examples</h4>
518
+ <dl class="option-examples-list">
519
+
520
+ <dt>
521
+ Initialize a dialog with the <code>maxHeight</code> option specified.
522
+ </dt>
523
+ <dd>
524
+ <pre><code>$( ".selector" ).dialog({ maxHeight: 400 });</code></pre>
525
+ </dd>
526
+
527
+
528
+ <dt>
529
+ Get or set the <code>maxHeight</code> option, after init.
530
+ </dt>
531
+ <dd>
532
+ <pre><code>//getter
533
+ var maxHeight = $( ".selector" ).dialog( "option", "maxHeight" );
534
+ //setter
535
+ $( ".selector" ).dialog( "option", "maxHeight", 400 );</code></pre>
536
+ </dd>
537
+
538
+ </dl>
539
+ </div>
540
+ </li>
541
+
542
+
543
+ <li class="option" id="option-maxWidth">
544
+ <div class="option-header">
545
+ <h3 class="option-name"><a href="#option-maxWidth">maxWidth</a></h3>
546
+ <dl>
547
+ <dt class="option-type-label">Type:</dt>
548
+ <dd class="option-type">Number</dd>
549
+
550
+ <dt class="option-default-label">Default:</dt>
551
+ <dd class="option-default">false</dd>
552
+
553
+ </dl>
554
+ </div>
555
+ <div class="option-description">
556
+ <p>The maximum width to which the dialog can be resized, in pixels.</p>
557
+ </div>
558
+ <div class="option-examples">
559
+ <h4>Code examples</h4>
560
+ <dl class="option-examples-list">
561
+
562
+ <dt>
563
+ Initialize a dialog with the <code>maxWidth</code> option specified.
564
+ </dt>
565
+ <dd>
566
+ <pre><code>$( ".selector" ).dialog({ maxWidth: 600 });</code></pre>
567
+ </dd>
568
+
569
+
570
+ <dt>
571
+ Get or set the <code>maxWidth</code> option, after init.
572
+ </dt>
573
+ <dd>
574
+ <pre><code>//getter
575
+ var maxWidth = $( ".selector" ).dialog( "option", "maxWidth" );
576
+ //setter
577
+ $( ".selector" ).dialog( "option", "maxWidth", 600 );</code></pre>
578
+ </dd>
579
+
580
+ </dl>
581
+ </div>
582
+ </li>
583
+
584
+
585
+ <li class="option" id="option-minHeight">
586
+ <div class="option-header">
587
+ <h3 class="option-name"><a href="#option-minHeight">minHeight</a></h3>
588
+ <dl>
589
+ <dt class="option-type-label">Type:</dt>
590
+ <dd class="option-type">Number</dd>
591
+
592
+ <dt class="option-default-label">Default:</dt>
593
+ <dd class="option-default">150</dd>
594
+
595
+ </dl>
596
+ </div>
597
+ <div class="option-description">
598
+ <p>The minimum height to which the dialog can be resized, in pixels.</p>
599
+ </div>
600
+ <div class="option-examples">
601
+ <h4>Code examples</h4>
602
+ <dl class="option-examples-list">
603
+
604
+ <dt>
605
+ Initialize a dialog with the <code>minHeight</code> option specified.
606
+ </dt>
607
+ <dd>
608
+ <pre><code>$( ".selector" ).dialog({ minHeight: 300 });</code></pre>
609
+ </dd>
610
+
611
+
612
+ <dt>
613
+ Get or set the <code>minHeight</code> option, after init.
614
+ </dt>
615
+ <dd>
616
+ <pre><code>//getter
617
+ var minHeight = $( ".selector" ).dialog( "option", "minHeight" );
618
+ //setter
619
+ $( ".selector" ).dialog( "option", "minHeight", 300 );</code></pre>
620
+ </dd>
621
+
622
+ </dl>
623
+ </div>
624
+ </li>
625
+
626
+
627
+ <li class="option" id="option-minWidth">
628
+ <div class="option-header">
629
+ <h3 class="option-name"><a href="#option-minWidth">minWidth</a></h3>
630
+ <dl>
631
+ <dt class="option-type-label">Type:</dt>
632
+ <dd class="option-type">Number</dd>
633
+
634
+ <dt class="option-default-label">Default:</dt>
635
+ <dd class="option-default">150</dd>
636
+
637
+ </dl>
638
+ </div>
639
+ <div class="option-description">
640
+ <p>The minimum width to which the dialog can be resized, in pixels.</p>
641
+ </div>
642
+ <div class="option-examples">
643
+ <h4>Code examples</h4>
644
+ <dl class="option-examples-list">
645
+
646
+ <dt>
647
+ Initialize a dialog with the <code>minWidth</code> option specified.
648
+ </dt>
649
+ <dd>
650
+ <pre><code>$( ".selector" ).dialog({ minWidth: 400 });</code></pre>
651
+ </dd>
652
+
653
+
654
+ <dt>
655
+ Get or set the <code>minWidth</code> option, after init.
656
+ </dt>
657
+ <dd>
658
+ <pre><code>//getter
659
+ var minWidth = $( ".selector" ).dialog( "option", "minWidth" );
660
+ //setter
661
+ $( ".selector" ).dialog( "option", "minWidth", 400 );</code></pre>
662
+ </dd>
663
+
664
+ </dl>
665
+ </div>
666
+ </li>
667
+
668
+
669
+ <li class="option" id="option-modal">
670
+ <div class="option-header">
671
+ <h3 class="option-name"><a href="#option-modal">modal</a></h3>
672
+ <dl>
673
+ <dt class="option-type-label">Type:</dt>
674
+ <dd class="option-type">Boolean</dd>
675
+
676
+ <dt class="option-default-label">Default:</dt>
677
+ <dd class="option-default">false</dd>
678
+
679
+ </dl>
680
+ </div>
681
+ <div class="option-description">
682
+ <p>If set to true, the dialog will have modal behavior; other items on the page will be disabled (i.e. cannot be interacted with). Modal dialogs create an overlay below the dialog but above other page elements.</p>
683
+ </div>
684
+ <div class="option-examples">
685
+ <h4>Code examples</h4>
686
+ <dl class="option-examples-list">
687
+
688
+ <dt>
689
+ Initialize a dialog with the <code>modal</code> option specified.
690
+ </dt>
691
+ <dd>
692
+ <pre><code>$( ".selector" ).dialog({ modal: true });</code></pre>
693
+ </dd>
694
+
695
+
696
+ <dt>
697
+ Get or set the <code>modal</code> option, after init.
698
+ </dt>
699
+ <dd>
700
+ <pre><code>//getter
701
+ var modal = $( ".selector" ).dialog( "option", "modal" );
702
+ //setter
703
+ $( ".selector" ).dialog( "option", "modal", true );</code></pre>
704
+ </dd>
705
+
706
+ </dl>
707
+ </div>
708
+ </li>
709
+
710
+
711
+ <li class="option" id="option-position">
712
+ <div class="option-header">
713
+ <h3 class="option-name"><a href="#option-position">position</a></h3>
714
+ <dl>
715
+ <dt class="option-type-label">Type:</dt>
716
+ <dd class="option-type">String, Array</dd>
717
+
718
+ <dt class="option-default-label">Default:</dt>
719
+ <dd class="option-default">'center'</dd>
720
+
721
+ </dl>
722
+ </div>
723
+ <div class="option-description">
724
+ <p>Specifies where the dialog should be displayed. Possible values: <br />1) a single string representing position within viewport: 'center', 'left', 'right', 'top', 'bottom'. <br />2) an array containing an <em>x,y</em> coordinate pair in pixel offset from left, top corner of viewport (e.g. [350,100]) <br />3) an array containing <em>x,y</em> position string values (e.g. ['right','top'] for top right corner).</p>
725
+ </div>
726
+ <div class="option-examples">
727
+ <h4>Code examples</h4>
728
+ <dl class="option-examples-list">
729
+
730
+ <dt>
731
+ Initialize a dialog with the <code>position</code> option specified.
732
+ </dt>
733
+ <dd>
734
+ <pre><code>$( ".selector" ).dialog({ position: 'top' });</code></pre>
735
+ </dd>
736
+
737
+
738
+ <dt>
739
+ Get or set the <code>position</code> option, after init.
740
+ </dt>
741
+ <dd>
742
+ <pre><code>//getter
743
+ var position = $( ".selector" ).dialog( "option", "position" );
744
+ //setter
745
+ $( ".selector" ).dialog( "option", "position", 'top' );</code></pre>
746
+ </dd>
747
+
748
+ </dl>
749
+ </div>
750
+ </li>
751
+
752
+
753
+ <li class="option" id="option-resizable">
754
+ <div class="option-header">
755
+ <h3 class="option-name"><a href="#option-resizable">resizable</a></h3>
756
+ <dl>
757
+ <dt class="option-type-label">Type:</dt>
758
+ <dd class="option-type">Boolean</dd>
759
+
760
+ <dt class="option-default-label">Default:</dt>
761
+ <dd class="option-default">true</dd>
762
+
763
+ </dl>
764
+ </div>
765
+ <div class="option-description">
766
+ <p>If set to true, the dialog will be resizable.</p>
767
+ </div>
768
+ <div class="option-examples">
769
+ <h4>Code examples</h4>
770
+ <dl class="option-examples-list">
771
+
772
+ <dt>
773
+ Initialize a dialog with the <code>resizable</code> option specified.
774
+ </dt>
775
+ <dd>
776
+ <pre><code>$( ".selector" ).dialog({ resizable: false });</code></pre>
777
+ </dd>
778
+
779
+
780
+ <dt>
781
+ Get or set the <code>resizable</code> option, after init.
782
+ </dt>
783
+ <dd>
784
+ <pre><code>//getter
785
+ var resizable = $( ".selector" ).dialog( "option", "resizable" );
786
+ //setter
787
+ $( ".selector" ).dialog( "option", "resizable", false );</code></pre>
788
+ </dd>
789
+
790
+ </dl>
791
+ </div>
792
+ </li>
793
+
794
+
795
+ <li class="option" id="option-show">
796
+ <div class="option-header">
797
+ <h3 class="option-name"><a href="#option-show">show</a></h3>
798
+ <dl>
799
+ <dt class="option-type-label">Type:</dt>
800
+ <dd class="option-type">String, Object</dd>
801
+
802
+ <dt class="option-default-label">Default:</dt>
803
+ <dd class="option-default">null</dd>
804
+
805
+ </dl>
806
+ </div>
807
+ <div class="option-description">
808
+ <p>The effect to be used when the dialog is opened.</p>
809
+ </div>
810
+ <div class="option-examples">
811
+ <h4>Code examples</h4>
812
+ <dl class="option-examples-list">
813
+
814
+ <dt>
815
+ Initialize a dialog with the <code>show</code> option specified.
816
+ </dt>
817
+ <dd>
818
+ <pre><code>$( ".selector" ).dialog({ show: 'slide' });</code></pre>
819
+ </dd>
820
+
821
+
822
+ <dt>
823
+ Get or set the <code>show</code> option, after init.
824
+ </dt>
825
+ <dd>
826
+ <pre><code>//getter
827
+ var show = $( ".selector" ).dialog( "option", "show" );
828
+ //setter
829
+ $( ".selector" ).dialog( "option", "show", 'slide' );</code></pre>
830
+ </dd>
831
+
832
+ </dl>
833
+ </div>
834
+ </li>
835
+
836
+
837
+ <li class="option" id="option-stack">
838
+ <div class="option-header">
839
+ <h3 class="option-name"><a href="#option-stack">stack</a></h3>
840
+ <dl>
841
+ <dt class="option-type-label">Type:</dt>
842
+ <dd class="option-type">Boolean</dd>
843
+
844
+ <dt class="option-default-label">Default:</dt>
845
+ <dd class="option-default">true</dd>
846
+
847
+ </dl>
848
+ </div>
849
+ <div class="option-description">
850
+ <p>Specifies whether the dialog will stack on top of other dialogs. This will cause the dialog to move to the front of other dialogs when it gains focus.</p>
851
+ </div>
852
+ <div class="option-examples">
853
+ <h4>Code examples</h4>
854
+ <dl class="option-examples-list">
855
+
856
+ <dt>
857
+ Initialize a dialog with the <code>stack</code> option specified.
858
+ </dt>
859
+ <dd>
860
+ <pre><code>$( ".selector" ).dialog({ stack: false });</code></pre>
861
+ </dd>
862
+
863
+
864
+ <dt>
865
+ Get or set the <code>stack</code> option, after init.
866
+ </dt>
867
+ <dd>
868
+ <pre><code>//getter
869
+ var stack = $( ".selector" ).dialog( "option", "stack" );
870
+ //setter
871
+ $( ".selector" ).dialog( "option", "stack", false );</code></pre>
872
+ </dd>
873
+
874
+ </dl>
875
+ </div>
876
+ </li>
877
+
878
+
879
+ <li class="option" id="option-title">
880
+ <div class="option-header">
881
+ <h3 class="option-name"><a href="#option-title">title</a></h3>
882
+ <dl>
883
+ <dt class="option-type-label">Type:</dt>
884
+ <dd class="option-type">String</dd>
885
+
886
+ <dt class="option-default-label">Default:</dt>
887
+ <dd class="option-default">''</dd>
888
+
889
+ </dl>
890
+ </div>
891
+ <div class="option-description">
892
+ <p>Specifies the title of the dialog. Any valid HTML may be set as the title. The title can also be specified by the title attribute on the dialog source element.</p>
893
+ </div>
894
+ <div class="option-examples">
895
+ <h4>Code examples</h4>
896
+ <dl class="option-examples-list">
897
+
898
+ <dt>
899
+ Initialize a dialog with the <code>title</code> option specified.
900
+ </dt>
901
+ <dd>
902
+ <pre><code>$( ".selector" ).dialog({ title: 'Dialog Title' });</code></pre>
903
+ </dd>
904
+
905
+
906
+ <dt>
907
+ Get or set the <code>title</code> option, after init.
908
+ </dt>
909
+ <dd>
910
+ <pre><code>//getter
911
+ var title = $( ".selector" ).dialog( "option", "title" );
912
+ //setter
913
+ $( ".selector" ).dialog( "option", "title", 'Dialog Title' );</code></pre>
914
+ </dd>
915
+
916
+ </dl>
917
+ </div>
918
+ </li>
919
+
920
+
921
+ <li class="option" id="option-width">
922
+ <div class="option-header">
923
+ <h3 class="option-name"><a href="#option-width">width</a></h3>
924
+ <dl>
925
+ <dt class="option-type-label">Type:</dt>
926
+ <dd class="option-type">Number</dd>
927
+
928
+ <dt class="option-default-label">Default:</dt>
929
+ <dd class="option-default">300</dd>
930
+
931
+ </dl>
932
+ </div>
933
+ <div class="option-description">
934
+ <p>The width of the dialog, in pixels.</p>
935
+ </div>
936
+ <div class="option-examples">
937
+ <h4>Code examples</h4>
938
+ <dl class="option-examples-list">
939
+
940
+ <dt>
941
+ Initialize a dialog with the <code>width</code> option specified.
942
+ </dt>
943
+ <dd>
944
+ <pre><code>$( ".selector" ).dialog({ width: 460 });</code></pre>
945
+ </dd>
946
+
947
+
948
+ <dt>
949
+ Get or set the <code>width</code> option, after init.
950
+ </dt>
951
+ <dd>
952
+ <pre><code>//getter
953
+ var width = $( ".selector" ).dialog( "option", "width" );
954
+ //setter
955
+ $( ".selector" ).dialog( "option", "width", 460 );</code></pre>
956
+ </dd>
957
+
958
+ </dl>
959
+ </div>
960
+ </li>
961
+
962
+
963
+ <li class="option" id="option-zIndex">
964
+ <div class="option-header">
965
+ <h3 class="option-name"><a href="#option-zIndex">zIndex</a></h3>
966
+ <dl>
967
+ <dt class="option-type-label">Type:</dt>
968
+ <dd class="option-type">Integer</dd>
969
+
970
+ <dt class="option-default-label">Default:</dt>
971
+ <dd class="option-default">1000</dd>
972
+
973
+ </dl>
974
+ </div>
975
+ <div class="option-description">
976
+ <p>The starting z-index for the dialog.</p>
977
+ </div>
978
+ <div class="option-examples">
979
+ <h4>Code examples</h4>
980
+ <dl class="option-examples-list">
981
+
982
+ <dt>
983
+ Initialize a dialog with the <code>zIndex</code> option specified.
984
+ </dt>
985
+ <dd>
986
+ <pre><code>$( ".selector" ).dialog({ zIndex: 3999 });</code></pre>
987
+ </dd>
988
+
989
+
990
+ <dt>
991
+ Get or set the <code>zIndex</code> option, after init.
992
+ </dt>
993
+ <dd>
994
+ <pre><code>//getter
995
+ var zIndex = $( ".selector" ).dialog( "option", "zIndex" );
996
+ //setter
997
+ $( ".selector" ).dialog( "option", "zIndex", 3999 );</code></pre>
998
+ </dd>
999
+
1000
+ </dl>
1001
+ </div>
1002
+ </li>
1003
+
1004
+ </ul>
1005
+ </div>
1006
+ <div id="events">
1007
+ <h2 class="top-header">Events</h2>
1008
+ <ul class="events-list">
1009
+
1010
+ <li class="event" id="event-create">
1011
+ <div class="event-header">
1012
+ <h3 class="event-name"><a href="#event-create">create</a></h3>
1013
+ <dl>
1014
+ <dt class="event-type-label">Type:</dt>
1015
+ <dd class="event-type">dialogcreate</dd>
1016
+ </dl>
1017
+ </div>
1018
+ <div class="event-description">
1019
+ <p>This event is triggered when dialog is created.</p>
1020
+ </div>
1021
+ <div class="event-examples">
1022
+ <h4>Code examples</h4>
1023
+ <dl class="event-examples-list">
1024
+
1025
+ <dt>
1026
+ Supply a callback function to handle the <code>create</code> event as an init option.
1027
+ </dt>
1028
+ <dd>
1029
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1030
+ create: function(event, ui) { ... }
1031
+ });</code></pre>
1032
+ </dd>
1033
+
1034
+
1035
+ <dt>
1036
+ Bind to the <code>create</code> event by type: <code>dialogcreate</code>.
1037
+ </dt>
1038
+ <dd>
1039
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogcreate&quot;, function(event, ui) {
1040
+ ...
1041
+ });</code></pre>
1042
+ </dd>
1043
+
1044
+ </dl>
1045
+ </div>
1046
+ </li>
1047
+
1048
+
1049
+ <li class="event" id="event-beforeClose">
1050
+ <div class="event-header">
1051
+ <h3 class="event-name"><a href="#event-beforeClose">beforeClose</a></h3>
1052
+ <dl>
1053
+ <dt class="event-type-label">Type:</dt>
1054
+ <dd class="event-type">dialogbeforeclose</dd>
1055
+ </dl>
1056
+ </div>
1057
+ <div class="event-description">
1058
+ <p>This event is triggered when a dialog attempts to close. If the beforeClose event handler (callback function) returns false, the close will be prevented.</p>
1059
+ </div>
1060
+ <div class="event-examples">
1061
+ <h4>Code examples</h4>
1062
+ <dl class="event-examples-list">
1063
+
1064
+ <dt>
1065
+ Supply a callback function to handle the <code>beforeClose</code> event as an init option.
1066
+ </dt>
1067
+ <dd>
1068
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1069
+ beforeClose: function(event, ui) { ... }
1070
+ });</code></pre>
1071
+ </dd>
1072
+
1073
+
1074
+ <dt>
1075
+ Bind to the <code>beforeClose</code> event by type: <code>dialogbeforeclose</code>.
1076
+ </dt>
1077
+ <dd>
1078
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogbeforeclose&quot;, function(event, ui) {
1079
+ ...
1080
+ });</code></pre>
1081
+ </dd>
1082
+
1083
+ </dl>
1084
+ </div>
1085
+ </li>
1086
+
1087
+
1088
+ <li class="event" id="event-open">
1089
+ <div class="event-header">
1090
+ <h3 class="event-name"><a href="#event-open">open</a></h3>
1091
+ <dl>
1092
+ <dt class="event-type-label">Type:</dt>
1093
+ <dd class="event-type">dialogopen</dd>
1094
+ </dl>
1095
+ </div>
1096
+ <div class="event-description">
1097
+ <p>This event is triggered when dialog is opened.</p>
1098
+ </div>
1099
+ <div class="event-examples">
1100
+ <h4>Code examples</h4>
1101
+ <dl class="event-examples-list">
1102
+
1103
+ <dt>
1104
+ Supply a callback function to handle the <code>open</code> event as an init option.
1105
+ </dt>
1106
+ <dd>
1107
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1108
+ open: function(event, ui) { ... }
1109
+ });</code></pre>
1110
+ </dd>
1111
+
1112
+
1113
+ <dt>
1114
+ Bind to the <code>open</code> event by type: <code>dialogopen</code>.
1115
+ </dt>
1116
+ <dd>
1117
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogopen&quot;, function(event, ui) {
1118
+ ...
1119
+ });</code></pre>
1120
+ </dd>
1121
+
1122
+ </dl>
1123
+ </div>
1124
+ </li>
1125
+
1126
+
1127
+ <li class="event" id="event-focus">
1128
+ <div class="event-header">
1129
+ <h3 class="event-name"><a href="#event-focus">focus</a></h3>
1130
+ <dl>
1131
+ <dt class="event-type-label">Type:</dt>
1132
+ <dd class="event-type">dialogfocus</dd>
1133
+ </dl>
1134
+ </div>
1135
+ <div class="event-description">
1136
+ <p>This event is triggered when the dialog gains focus.</p>
1137
+ </div>
1138
+ <div class="event-examples">
1139
+ <h4>Code examples</h4>
1140
+ <dl class="event-examples-list">
1141
+
1142
+ <dt>
1143
+ Supply a callback function to handle the <code>focus</code> event as an init option.
1144
+ </dt>
1145
+ <dd>
1146
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1147
+ focus: function(event, ui) { ... }
1148
+ });</code></pre>
1149
+ </dd>
1150
+
1151
+
1152
+ <dt>
1153
+ Bind to the <code>focus</code> event by type: <code>dialogfocus</code>.
1154
+ </dt>
1155
+ <dd>
1156
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogfocus&quot;, function(event, ui) {
1157
+ ...
1158
+ });</code></pre>
1159
+ </dd>
1160
+
1161
+ </dl>
1162
+ </div>
1163
+ </li>
1164
+
1165
+
1166
+ <li class="event" id="event-dragStart">
1167
+ <div class="event-header">
1168
+ <h3 class="event-name"><a href="#event-dragStart">dragStart</a></h3>
1169
+ <dl>
1170
+ <dt class="event-type-label">Type:</dt>
1171
+ <dd class="event-type">dialogdragstart</dd>
1172
+ </dl>
1173
+ </div>
1174
+ <div class="event-description">
1175
+ <p>This event is triggered at the beginning of the dialog being dragged.</p>
1176
+ </div>
1177
+ <div class="event-examples">
1178
+ <h4>Code examples</h4>
1179
+ <dl class="event-examples-list">
1180
+
1181
+ <dt>
1182
+ Supply a callback function to handle the <code>dragStart</code> event as an init option.
1183
+ </dt>
1184
+ <dd>
1185
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1186
+ dragStart: function(event, ui) { ... }
1187
+ });</code></pre>
1188
+ </dd>
1189
+
1190
+
1191
+ <dt>
1192
+ Bind to the <code>dragStart</code> event by type: <code>dialogdragstart</code>.
1193
+ </dt>
1194
+ <dd>
1195
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogdragstart&quot;, function(event, ui) {
1196
+ ...
1197
+ });</code></pre>
1198
+ </dd>
1199
+
1200
+ </dl>
1201
+ </div>
1202
+ </li>
1203
+
1204
+
1205
+ <li class="event" id="event-drag">
1206
+ <div class="event-header">
1207
+ <h3 class="event-name"><a href="#event-drag">drag</a></h3>
1208
+ <dl>
1209
+ <dt class="event-type-label">Type:</dt>
1210
+ <dd class="event-type">dialogdrag</dd>
1211
+ </dl>
1212
+ </div>
1213
+ <div class="event-description">
1214
+ <p>This event is triggered when the dialog is dragged.</p>
1215
+ </div>
1216
+ <div class="event-examples">
1217
+ <h4>Code examples</h4>
1218
+ <dl class="event-examples-list">
1219
+
1220
+ <dt>
1221
+ Supply a callback function to handle the <code>drag</code> event as an init option.
1222
+ </dt>
1223
+ <dd>
1224
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1225
+ drag: function(event, ui) { ... }
1226
+ });</code></pre>
1227
+ </dd>
1228
+
1229
+
1230
+ <dt>
1231
+ Bind to the <code>drag</code> event by type: <code>dialogdrag</code>.
1232
+ </dt>
1233
+ <dd>
1234
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogdrag&quot;, function(event, ui) {
1235
+ ...
1236
+ });</code></pre>
1237
+ </dd>
1238
+
1239
+ </dl>
1240
+ </div>
1241
+ </li>
1242
+
1243
+
1244
+ <li class="event" id="event-dragStop">
1245
+ <div class="event-header">
1246
+ <h3 class="event-name"><a href="#event-dragStop">dragStop</a></h3>
1247
+ <dl>
1248
+ <dt class="event-type-label">Type:</dt>
1249
+ <dd class="event-type">dialogdragstop</dd>
1250
+ </dl>
1251
+ </div>
1252
+ <div class="event-description">
1253
+ <p>This event is triggered after the dialog has been dragged.</p>
1254
+ </div>
1255
+ <div class="event-examples">
1256
+ <h4>Code examples</h4>
1257
+ <dl class="event-examples-list">
1258
+
1259
+ <dt>
1260
+ Supply a callback function to handle the <code>dragStop</code> event as an init option.
1261
+ </dt>
1262
+ <dd>
1263
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1264
+ dragStop: function(event, ui) { ... }
1265
+ });</code></pre>
1266
+ </dd>
1267
+
1268
+
1269
+ <dt>
1270
+ Bind to the <code>dragStop</code> event by type: <code>dialogdragstop</code>.
1271
+ </dt>
1272
+ <dd>
1273
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogdragstop&quot;, function(event, ui) {
1274
+ ...
1275
+ });</code></pre>
1276
+ </dd>
1277
+
1278
+ </dl>
1279
+ </div>
1280
+ </li>
1281
+
1282
+
1283
+ <li class="event" id="event-resizeStart">
1284
+ <div class="event-header">
1285
+ <h3 class="event-name"><a href="#event-resizeStart">resizeStart</a></h3>
1286
+ <dl>
1287
+ <dt class="event-type-label">Type:</dt>
1288
+ <dd class="event-type">dialogresizestart</dd>
1289
+ </dl>
1290
+ </div>
1291
+ <div class="event-description">
1292
+ <p>This event is triggered at the beginning of the dialog being resized.</p>
1293
+ </div>
1294
+ <div class="event-examples">
1295
+ <h4>Code examples</h4>
1296
+ <dl class="event-examples-list">
1297
+
1298
+ <dt>
1299
+ Supply a callback function to handle the <code>resizeStart</code> event as an init option.
1300
+ </dt>
1301
+ <dd>
1302
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1303
+ resizeStart: function(event, ui) { ... }
1304
+ });</code></pre>
1305
+ </dd>
1306
+
1307
+
1308
+ <dt>
1309
+ Bind to the <code>resizeStart</code> event by type: <code>dialogresizestart</code>.
1310
+ </dt>
1311
+ <dd>
1312
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogresizestart&quot;, function(event, ui) {
1313
+ ...
1314
+ });</code></pre>
1315
+ </dd>
1316
+
1317
+ </dl>
1318
+ </div>
1319
+ </li>
1320
+
1321
+
1322
+ <li class="event" id="event-resize">
1323
+ <div class="event-header">
1324
+ <h3 class="event-name"><a href="#event-resize">resize</a></h3>
1325
+ <dl>
1326
+ <dt class="event-type-label">Type:</dt>
1327
+ <dd class="event-type">dialogresize</dd>
1328
+ </dl>
1329
+ </div>
1330
+ <div class="event-description">
1331
+ <p>This event is triggered when the dialog is resized. <a href="http://www.jsfiddle.net/Jp7TM/18/" class="external text" title="http://www.jsfiddle.net/Jp7TM/18/">demo</a></p>
1332
+ </div>
1333
+ <div class="event-examples">
1334
+ <h4>Code examples</h4>
1335
+ <dl class="event-examples-list">
1336
+
1337
+ <dt>
1338
+ Supply a callback function to handle the <code>resize</code> event as an init option.
1339
+ </dt>
1340
+ <dd>
1341
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1342
+ resize: function(event, ui) { ... }
1343
+ });</code></pre>
1344
+ </dd>
1345
+
1346
+
1347
+ <dt>
1348
+ Bind to the <code>resize</code> event by type: <code>dialogresize</code>.
1349
+ </dt>
1350
+ <dd>
1351
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogresize&quot;, function(event, ui) {
1352
+ ...
1353
+ });</code></pre>
1354
+ </dd>
1355
+
1356
+ </dl>
1357
+ </div>
1358
+ </li>
1359
+
1360
+
1361
+ <li class="event" id="event-resizeStop">
1362
+ <div class="event-header">
1363
+ <h3 class="event-name"><a href="#event-resizeStop">resizeStop</a></h3>
1364
+ <dl>
1365
+ <dt class="event-type-label">Type:</dt>
1366
+ <dd class="event-type">dialogresizestop</dd>
1367
+ </dl>
1368
+ </div>
1369
+ <div class="event-description">
1370
+ <p>This event is triggered after the dialog has been resized.</p>
1371
+ </div>
1372
+ <div class="event-examples">
1373
+ <h4>Code examples</h4>
1374
+ <dl class="event-examples-list">
1375
+
1376
+ <dt>
1377
+ Supply a callback function to handle the <code>resizeStop</code> event as an init option.
1378
+ </dt>
1379
+ <dd>
1380
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1381
+ resizeStop: function(event, ui) { ... }
1382
+ });</code></pre>
1383
+ </dd>
1384
+
1385
+
1386
+ <dt>
1387
+ Bind to the <code>resizeStop</code> event by type: <code>dialogresizestop</code>.
1388
+ </dt>
1389
+ <dd>
1390
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogresizestop&quot;, function(event, ui) {
1391
+ ...
1392
+ });</code></pre>
1393
+ </dd>
1394
+
1395
+ </dl>
1396
+ </div>
1397
+ </li>
1398
+
1399
+
1400
+ <li class="event" id="event-close">
1401
+ <div class="event-header">
1402
+ <h3 class="event-name"><a href="#event-close">close</a></h3>
1403
+ <dl>
1404
+ <dt class="event-type-label">Type:</dt>
1405
+ <dd class="event-type">dialogclose</dd>
1406
+ </dl>
1407
+ </div>
1408
+ <div class="event-description">
1409
+ <p>This event is triggered when the dialog is closed.</p>
1410
+ </div>
1411
+ <div class="event-examples">
1412
+ <h4>Code examples</h4>
1413
+ <dl class="event-examples-list">
1414
+
1415
+ <dt>
1416
+ Supply a callback function to handle the <code>close</code> event as an init option.
1417
+ </dt>
1418
+ <dd>
1419
+ <pre><code>$( &quot;.selector&quot; ).dialog({
1420
+ close: function(event, ui) { ... }
1421
+ });</code></pre>
1422
+ </dd>
1423
+
1424
+
1425
+ <dt>
1426
+ Bind to the <code>close</code> event by type: <code>dialogclose</code>.
1427
+ </dt>
1428
+ <dd>
1429
+ <pre><code>$( &quot;.selector&quot; ).bind( &quot;dialogclose&quot;, function(event, ui) {
1430
+ ...
1431
+ });</code></pre>
1432
+ </dd>
1433
+
1434
+ </dl>
1435
+ </div>
1436
+ </li>
1437
+
1438
+ </ul>
1439
+ </div>
1440
+ <div id="methods">
1441
+ <h2 class="top-header">Methods</h2>
1442
+ <ul class="methods-list">
1443
+
1444
+ <li class="method" id="method-destroy">
1445
+ <div class="method-header">
1446
+ <h3 class="method-name"><a href="#method-destroy">destroy</a></h3>
1447
+ <dl>
1448
+ <dt class="method-signature-label">Signature:</dt>
1449
+ <dd class="method-signature">.dialog( "destroy"
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ )</dd>
1458
+ </dl>
1459
+ </div>
1460
+ <div class="method-description">
1461
+ <p>Remove the dialog functionality completely. This will return the element back to its pre-init state.</p>
1462
+ </div>
1463
+ </li>
1464
+
1465
+
1466
+ <li class="method" id="method-disable">
1467
+ <div class="method-header">
1468
+ <h3 class="method-name"><a href="#method-disable">disable</a></h3>
1469
+ <dl>
1470
+ <dt class="method-signature-label">Signature:</dt>
1471
+ <dd class="method-signature">.dialog( "disable"
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+ )</dd>
1480
+ </dl>
1481
+ </div>
1482
+ <div class="method-description">
1483
+ <p>Disable the dialog.</p>
1484
+ </div>
1485
+ </li>
1486
+
1487
+
1488
+ <li class="method" id="method-enable">
1489
+ <div class="method-header">
1490
+ <h3 class="method-name"><a href="#method-enable">enable</a></h3>
1491
+ <dl>
1492
+ <dt class="method-signature-label">Signature:</dt>
1493
+ <dd class="method-signature">.dialog( "enable"
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+ )</dd>
1502
+ </dl>
1503
+ </div>
1504
+ <div class="method-description">
1505
+ <p>Enable the dialog.</p>
1506
+ </div>
1507
+ </li>
1508
+
1509
+
1510
+ <li class="method" id="method-option">
1511
+ <div class="method-header">
1512
+ <h3 class="method-name"><a href="#method-option">option</a></h3>
1513
+ <dl>
1514
+ <dt class="method-signature-label">Signature:</dt>
1515
+ <dd class="method-signature">.dialog( "option"
1516
+
1517
+ , optionName
1518
+
1519
+ , <span class="optional">[</span>value<span class="optional">] </span>
1520
+
1521
+
1522
+
1523
+ )</dd>
1524
+ </dl>
1525
+ </div>
1526
+ <div class="method-description">
1527
+ <p>Get or set any dialog option. If no value is specified, will act as a getter.</p>
1528
+ </div>
1529
+ </li>
1530
+
1531
+
1532
+ <li class="method" id="method-option">
1533
+ <div class="method-header">
1534
+ <h3 class="method-name"><a href="#method-option">option</a></h3>
1535
+ <dl>
1536
+ <dt class="method-signature-label">Signature:</dt>
1537
+ <dd class="method-signature">.dialog( "option"
1538
+
1539
+ , options
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+ )</dd>
1546
+ </dl>
1547
+ </div>
1548
+ <div class="method-description">
1549
+ <p>Set multiple dialog options at once by providing an options object.</p>
1550
+ </div>
1551
+ </li>
1552
+
1553
+
1554
+ <li class="method" id="method-widget">
1555
+ <div class="method-header">
1556
+ <h3 class="method-name"><a href="#method-widget">widget</a></h3>
1557
+ <dl>
1558
+ <dt class="method-signature-label">Signature:</dt>
1559
+ <dd class="method-signature">.dialog( "widget"
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+ )</dd>
1568
+ </dl>
1569
+ </div>
1570
+ <div class="method-description">
1571
+ <p>Returns the .ui-dialog element.</p>
1572
+ </div>
1573
+ </li>
1574
+
1575
+
1576
+ <li class="method" id="method-close">
1577
+ <div class="method-header">
1578
+ <h3 class="method-name"><a href="#method-close">close</a></h3>
1579
+ <dl>
1580
+ <dt class="method-signature-label">Signature:</dt>
1581
+ <dd class="method-signature">.dialog( "close"
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+ )</dd>
1590
+ </dl>
1591
+ </div>
1592
+ <div class="method-description">
1593
+ <p>Close the dialog.</p>
1594
+ </div>
1595
+ </li>
1596
+
1597
+
1598
+ <li class="method" id="method-isOpen">
1599
+ <div class="method-header">
1600
+ <h3 class="method-name"><a href="#method-isOpen">isOpen</a></h3>
1601
+ <dl>
1602
+ <dt class="method-signature-label">Signature:</dt>
1603
+ <dd class="method-signature">.dialog( "isOpen"
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+ )</dd>
1612
+ </dl>
1613
+ </div>
1614
+ <div class="method-description">
1615
+ <p>Returns true if the dialog is currently open.</p>
1616
+ </div>
1617
+ </li>
1618
+
1619
+
1620
+ <li class="method" id="method-moveToTop">
1621
+ <div class="method-header">
1622
+ <h3 class="method-name"><a href="#method-moveToTop">moveToTop</a></h3>
1623
+ <dl>
1624
+ <dt class="method-signature-label">Signature:</dt>
1625
+ <dd class="method-signature">.dialog( "moveToTop"
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+ )</dd>
1634
+ </dl>
1635
+ </div>
1636
+ <div class="method-description">
1637
+ <p>Move the dialog to the top of the dialogs stack.</p>
1638
+ </div>
1639
+ </li>
1640
+
1641
+
1642
+ <li class="method" id="method-open">
1643
+ <div class="method-header">
1644
+ <h3 class="method-name"><a href="#method-open">open</a></h3>
1645
+ <dl>
1646
+ <dt class="method-signature-label">Signature:</dt>
1647
+ <dd class="method-signature">.dialog( "open"
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+ )</dd>
1656
+ </dl>
1657
+ </div>
1658
+ <div class="method-description">
1659
+ <p>Open the dialog.</p>
1660
+ </div>
1661
+ </li>
1662
+
1663
+ </ul>
1664
+ </div>
1665
+ <div id="theming">
1666
+ <h2 class="top-header">Theming</h2>
1667
+ <p>The jQuery UI Dialog plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain.
1668
+ </p>
1669
+ <p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.dialog.css stylesheet that can be modified. These classes are highlighed in bold below.
1670
+ </p>
1671
+
1672
+ <h3>Sample markup with jQuery UI CSS Framework classes</h3>
1673
+ &lt;div class=&quot;<strong>ui-dialog</strong> ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable&quot;&gt;<br />
1674
+ &nbsp;&nbsp;&nbsp;&lt;div class=&quot;<strong>ui-dialog-titlebar</strong> ui-widget-header ui-corner-all ui-helper-clearfix&quot;&gt;<br />
1675
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span id=&quot;<strong>ui-dialog-title-dialog</strong>&quot; class=&quot;ui-dialog-title&quot;&gt;Dialog title&lt;/span&gt;<br />
1676
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a class=&quot;<strong>ui-dialog-titlebar-close</strong> ui-corner-all&quot; href=&quot;#&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-closethick&quot;&gt;close&lt;/span&gt;&lt;/a&gt;<br />
1677
+ &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />
1678
+ &nbsp;&nbsp;&nbsp;&lt;div style=&quot;height: 200px; min-height: 109px; width: auto;&quot; class=&quot;<strong>ui-dialog-content</strong> ui-widget-content&quot; id=&quot;dialog&quot;&gt;<br />
1679
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;Dialog content goes here.&lt;/p&gt;<br />
1680
+ &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />
1681
+ &lt;/div&gt;<br />
1682
+ <p class="theme-note">
1683
+ <strong>
1684
+ Note: This is a sample of markup generated by the dialog plugin, not markup you should use to create a dialog. The only markup needed for that is &lt;div&gt;&lt;/div&gt;.
1685
+ </strong>
1686
+ </p>
1687
+
1688
+ </div>
1689
+ </div>
1690
+
1691
+ </p><!--
1692
+ Pre-expand include size: 66595 bytes
1693
+ Post-expand include size: 113129 bytes
1694
+ Template argument size: 62062 bytes
1695
+ Maximum: 2097152 bytes
1696
+ -->
1697
+
1698
+ <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3775-1!1!0!!en!2 and timestamp 20120220184654 -->