hurry 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +55 -0
- data/Rakefile +69 -0
- data/app/assets/audios/twilight-hole.mp3 +0 -0
- data/app/assets/files/arvind resume (1).doc +0 -0
- data/app/assets/files/toma v 0 1.ppt +0 -0
- data/app/assets/images/0d0a413.png +0 -0
- data/app/assets/images/120.jpg +0 -0
- data/app/assets/images/51.jpg +0 -0
- data/app/assets/images/Untitled Document +97 -0
- data/app/assets/images/Untitled Document~ +97 -0
- data/app/assets/images/access.png +0 -0
- data/app/assets/images/adv.png +0 -0
- data/app/assets/images/article.png +0 -0
- data/app/assets/images/audio_icon.jpg +0 -0
- data/app/assets/images/background.gif +0 -0
- data/app/assets/images/banners/111.jpg +0 -0
- data/app/assets/images/banners/90.jpg +0 -0
- data/app/assets/images/banners/userimg.png +0 -0
- data/app/assets/images/blog.png +0 -0
- data/app/assets/images/body.png +0 -0
- data/app/assets/images/cancel.png +0 -0
- data/app/assets/images/cat.png +0 -0
- data/app/assets/images/contributions_userimg2.png +0 -0
- data/app/assets/images/delete.png +0 -0
- data/app/assets/images/edit.png +0 -0
- data/app/assets/images/excel.jpg +0 -0
- data/app/assets/images/file.gif +0 -0
- data/app/assets/images/file.jpeg +0 -0
- data/app/assets/images/folder-closed.gif +0 -0
- data/app/assets/images/folder.gif +0 -0
- data/app/assets/images/group.png +0 -0
- data/app/assets/images/header.png +0 -0
- data/app/assets/images/icons.gif +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/logout.png +0 -0
- data/app/assets/images/media.png +0 -0
- data/app/assets/images/minus.gif +0 -0
- data/app/assets/images/new.png +0 -0
- data/app/assets/images/page_manager.png +0 -0
- data/app/assets/images/pdf.png +0 -0
- data/app/assets/images/personal/ice glass.jpg +0 -0
- data/app/assets/images/plus.gif +0 -0
- data/app/assets/images/ppt.jpg +0 -0
- data/app/assets/images/profileimg.png +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/images/setting.png +0 -0
- data/app/assets/images/status.png +0 -0
- data/app/assets/images/treeview-black-line.gif +0 -0
- data/app/assets/images/treeview-black.gif +0 -0
- data/app/assets/images/treeview-default-line.gif +0 -0
- data/app/assets/images/treeview-default.gif +0 -0
- data/app/assets/images/treeview-famfamfam-line.gif +0 -0
- data/app/assets/images/treeview-famfamfam.gif +0 -0
- data/app/assets/images/treeview-gray-line.gif +0 -0
- data/app/assets/images/treeview-gray.gif +0 -0
- data/app/assets/images/treeview-red-line.gif +0 -0
- data/app/assets/images/treeview-red.gif +0 -0
- data/app/assets/images/ui.dynatree.css +440 -0
- data/app/assets/images/user.png +0 -0
- data/app/assets/images/user1.png +0 -0
- data/app/assets/images/user_manager.png +0 -0
- data/app/assets/images/video_icon.jpg +0 -0
- data/app/assets/images/vline.gif +0 -0
- data/app/assets/images/word.png +0 -0
- data/app/assets/javascripts/application.js +9 -0
- data/app/assets/javascripts/bolt/articles.js.coffee +3 -0
- data/app/assets/javascripts/bolt/groups.js.coffee +3 -0
- data/app/assets/javascripts/bolt/user_groups.js.coffee +3 -0
- data/app/assets/javascripts/bolt/users_groups.js.coffee +3 -0
- data/app/assets/javascripts/imagebubble.js~ +68 -0
- data/app/assets/javascripts/javascript_functions.js +65 -0
- data/app/assets/javascripts/jquery.dynatree.js +3312 -0
- data/app/assets/javascripts/jquery.js +154 -0
- data/app/assets/javascripts/jquery.treeview.js +251 -0
- data/app/assets/javascripts/jquery_new.js +19 -0
- data/app/assets/javascripts/login.js +24 -0
- data/app/assets/javascripts/media.js +64 -0
- data/app/assets/javascripts/media.js.coffee +3 -0
- data/app/assets/javascripts/rails.js +132 -0
- data/app/assets/miscellaneous/1leader.flv +0 -0
- data/app/assets/miscellaneous/users_controller.1.rb +237 -0
- data/app/assets/stylesheets/application.css +8 -0
- data/app/assets/stylesheets/application.css~ +8 -0
- data/app/assets/stylesheets/bolt/articles.css.scss +3 -0
- data/app/assets/stylesheets/bolt/groups.css.scss +3 -0
- data/app/assets/stylesheets/bolt/user_groups.css.scss +3 -0
- data/app/assets/stylesheets/bolt/users_groups.css.scss +3 -0
- data/app/assets/stylesheets/bubble.css +28 -0
- data/app/assets/stylesheets/depot.css +26 -0
- data/app/assets/stylesheets/depot.css~ +34 -0
- data/app/assets/stylesheets/dropdown.css +49 -0
- data/app/assets/stylesheets/imagebubbles.css~ +32 -0
- data/app/assets/stylesheets/jquery.treeview.css +68 -0
- data/app/assets/stylesheets/media.css.scss +3 -0
- data/app/assets/stylesheets/mediamanager.css +10 -0
- data/app/assets/stylesheets/scaffolds.css +56 -0
- data/app/assets/stylesheets/scaffolds.css.scss +56 -0
- data/app/assets/stylesheets/ui.dynatree.css +440 -0
- data/app/assets/stylesheets/users_style.css +80 -0
- data/app/assets/videos/1leader.flv +0 -0
- data/app/controllers/application_controller.rb +7 -0
- data/app/controllers/application_controller.rb~ +3 -0
- data/app/controllers/articles_controller.rb~ +91 -0
- data/app/controllers/bolt/accesses_controller.rb +71 -0
- data/app/controllers/bolt/articles_categories_controller.rb +71 -0
- data/app/controllers/bolt/articles_controller.rb +97 -0
- data/app/controllers/bolt/articles_controller.rb~ +60 -0
- data/app/controllers/bolt/banners_controller.rb +58 -0
- data/app/controllers/bolt/blogs_controller.rb +82 -0
- data/app/controllers/bolt/bolt_controller.rb +234 -0
- data/app/controllers/bolt/bolt_controller.rb~ +201 -0
- data/app/controllers/bolt/categories_controller.rb +72 -0
- data/app/controllers/bolt/dashboard_controller.rb +14 -0
- data/app/controllers/bolt/dashboard_controller.rb~ +14 -0
- data/app/controllers/bolt/groups_controller.rb +100 -0
- data/app/controllers/bolt/groups_controller.rb~ +85 -0
- data/app/controllers/bolt/info_controller.rb +26 -0
- data/app/controllers/bolt/media_controller.rb +120 -0
- data/app/controllers/bolt/page_sections_controller.rb +58 -0
- data/app/controllers/bolt/pages_controller.rb +90 -0
- data/app/controllers/bolt/password_resets_controller.rb +66 -0
- data/app/controllers/bolt/settings_controller.rb +59 -0
- data/app/controllers/bolt/statuses_controller.rb +72 -0
- data/app/controllers/bolt/user_sessions_controller.rb +40 -0
- data/app/controllers/bolt/user_statuses_controller.rb +58 -0
- data/app/controllers/bolt/users_controller.rb +104 -0
- data/app/controllers/bolt/users_controller.rb~ +79 -0
- data/app/controllers/bolt/users_groups_controller.rb +99 -0
- data/app/controllers/bolt/users_groups_controller.rb~ +83 -0
- data/app/controllers/groups_controller.rb~ +83 -0
- data/app/controllers/users_groups_controller.rb~ +83 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/bolt/articles_helper.rb +2 -0
- data/app/helpers/bolt/bolt_helper.rb +208 -0
- data/app/helpers/bolt/bolt_helper.rb~ +208 -0
- data/app/helpers/bolt/config_helper.rb +46 -0
- data/app/helpers/bolt/config_helper.rb~ +46 -0
- data/app/helpers/bolt/groups_helper.rb +2 -0
- data/app/helpers/bolt/user_groups_helper.rb +2 -0
- data/app/helpers/bolt/users_groups_helper.rb +2 -0
- data/app/helpers/media_helper.rb +2 -0
- data/app/mailers/bolt/backbone_notification.rb~ +39 -0
- data/app/mailers/bolt/bolt_notification.rb +39 -0
- data/app/models/access.rb +5 -0
- data/app/models/article.rb +23 -0
- data/app/models/article.rb~ +3 -0
- data/app/models/articles_category.rb +12 -0
- data/app/models/blog.rb +5 -0
- data/app/models/bolt.rb +3 -0
- data/app/models/bolt.rb~ +5 -0
- data/app/models/bolt/group.rb~ +2 -0
- data/app/models/bolt/user.rb +56 -0
- data/app/models/bolt/user.rb~ +62 -0
- data/app/models/bolt/user_group.rb~ +3 -0
- data/app/models/bolt/user_session.rb +8 -0
- data/app/models/bolt/users_group.rb~ +2 -0
- data/app/models/category.rb +7 -0
- data/app/models/group.rb +8 -0
- data/app/models/group.rb~ +7 -0
- data/app/models/media_image.rb +19 -0
- data/app/models/media_images.rb +21 -0
- data/app/models/media_images.rb~ +21 -0
- data/app/models/medium.rb +8 -0
- data/app/models/page.rb +10 -0
- data/app/models/page_section.rb +3 -0
- data/app/models/setting.rb +3 -0
- data/app/models/status.rb +3 -0
- data/app/models/user_status.rb +3 -0
- data/app/models/users_group.rb +14 -0
- data/app/models/users_group.rb~ +6 -0
- data/app/views/bolt/accesses/_form.html.erb +13 -0
- data/app/views/bolt/accesses/_table.html.erb +17 -0
- data/app/views/bolt/accesses/_title.html.erb +9 -0
- data/app/views/bolt/accesses/index.html.erb +44 -0
- data/app/views/bolt/accesses/new.html.erb +18 -0
- data/app/views/bolt/accesses/show.html.erb +17 -0
- data/app/views/bolt/articles/_form.html.erb +113 -0
- data/app/views/bolt/articles/_form.html.erb~ +33 -0
- data/app/views/bolt/articles/_table.html.erb +29 -0
- data/app/views/bolt/articles/_table.html.erb~ +28 -0
- data/app/views/bolt/articles/_title.html.erb +9 -0
- data/app/views/bolt/articles/index.html.erb +37 -0
- data/app/views/bolt/articles/index.html.erb~ +10 -0
- data/app/views/bolt/articles/new.html.erb +16 -0
- data/app/views/bolt/articles/new.html.erb~ +18 -0
- data/app/views/bolt/articles/show.html.erb +17 -0
- data/app/views/bolt/articles/show.html.erb~ +17 -0
- data/app/views/bolt/articles_categories/_form.html.erb +13 -0
- data/app/views/bolt/articles_categories/_table.html.erb +18 -0
- data/app/views/bolt/articles_categories/index.html.erb +10 -0
- data/app/views/bolt/articles_categories/new.html.erb +18 -0
- data/app/views/bolt/articles_categories/show.html.erb +17 -0
- data/app/views/bolt/banners/_form.html.erb +13 -0
- data/app/views/bolt/banners/_table.html.erb +18 -0
- data/app/views/bolt/banners/index.html.erb +10 -0
- data/app/views/bolt/banners/new.html.erb +18 -0
- data/app/views/bolt/banners/show.html.erb +17 -0
- data/app/views/bolt/blogs/_form.html.erb +24 -0
- data/app/views/bolt/blogs/_table.html.erb +22 -0
- data/app/views/bolt/blogs/index.html.erb +33 -0
- data/app/views/bolt/blogs/new.html.erb +18 -0
- data/app/views/bolt/blogs/show.html.erb +17 -0
- data/app/views/bolt/bolt/index.html.erb +0 -0
- data/app/views/bolt/bolt/index.html.erb~ +3 -0
- data/app/views/bolt/bolt_notification/generate_new_password.erb +12 -0
- data/app/views/bolt/bolt_notification/new_user_information.erb +12 -0
- data/app/views/bolt/bolt_notification/password_reset_instructions.erb +11 -0
- data/app/views/bolt/categories/_form.html.erb +9 -0
- data/app/views/bolt/categories/_table.html.erb +17 -0
- data/app/views/bolt/categories/_title.html.erb +8 -0
- data/app/views/bolt/categories/index.html.erb +36 -0
- data/app/views/bolt/categories/new.html.erb +19 -0
- data/app/views/bolt/categories/show.html.erb +17 -0
- data/app/views/bolt/dashboard/index.html.erb +69 -0
- data/app/views/bolt/dashboard/index.html.erb~ +1 -0
- data/app/views/bolt/groups/_form.html.erb +18 -0
- data/app/views/bolt/groups/_form.html.erb~ +21 -0
- data/app/views/bolt/groups/_title.html.erb +5 -0
- data/app/views/bolt/groups/edit.html.erb +6 -0
- data/app/views/bolt/groups/index.html.erb +43 -0
- data/app/views/bolt/groups/index.html.erb~ +23 -0
- data/app/views/bolt/groups/new.html.erb +14 -0
- data/app/views/bolt/groups/new.html.erb~ +5 -0
- data/app/views/bolt/groups/show.html.erb +16 -0
- data/app/views/bolt/info/show.html.erb +43 -0
- data/app/views/bolt/info/show.html.erb~ +5 -0
- data/app/views/bolt/layouts/_left_navigation.html.erb +9 -0
- data/app/views/bolt/layouts/_left_navigation.html.erb~ +16 -0
- data/app/views/bolt/layouts/_right_navigation.html.erb +1 -0
- data/app/views/bolt/layouts/_right_navigation.html.erb~ +1 -0
- data/app/views/bolt/layouts/bolt_auth.html.erb +23 -0
- data/app/views/bolt/layouts/bolt_auth.html.erb~ +23 -0
- data/app/views/bolt/layouts/bolt_main.html.erb +86 -0
- data/app/views/bolt/layouts/bolt_main.html.erb~ +64 -0
- data/app/views/bolt/media/getfolderdatas.html.erb +31 -0
- data/app/views/bolt/media/index.html.erb +195 -0
- data/app/views/bolt/page_sections/_form.html.erb +21 -0
- data/app/views/bolt/page_sections/_table.html.erb +22 -0
- data/app/views/bolt/page_sections/index.html.erb +10 -0
- data/app/views/bolt/page_sections/new.html.erb +18 -0
- data/app/views/bolt/page_sections/show.html.erb +17 -0
- data/app/views/bolt/pages/_form.html.erb +166 -0
- data/app/views/bolt/pages/_form.html.erb~ +41 -0
- data/app/views/bolt/pages/_page_sections_form.html.erb +39 -0
- data/app/views/bolt/pages/_page_sections_form.html.erb~ +3 -0
- data/app/views/bolt/pages/_table.html.erb +29 -0
- data/app/views/bolt/pages/index.html.erb +34 -0
- data/app/views/bolt/pages/new.html.erb +18 -0
- data/app/views/bolt/pages/show.html.erb +18 -0
- data/app/views/bolt/password_resets/edit.html.erb +48 -0
- data/app/views/bolt/settings/_form.html.erb +25 -0
- data/app/views/bolt/settings/_table.html.erb +23 -0
- data/app/views/bolt/settings/index.html.erb +10 -0
- data/app/views/bolt/settings/new.html.erb +18 -0
- data/app/views/bolt/settings/show.html.erb +80 -0
- data/app/views/bolt/statuses/_form.html.erb +14 -0
- data/app/views/bolt/statuses/_table.html.erb +17 -0
- data/app/views/bolt/statuses/_title.html.erb +9 -0
- data/app/views/bolt/statuses/index.html.erb +37 -0
- data/app/views/bolt/statuses/new.html.erb +18 -0
- data/app/views/bolt/statuses/show.html.erb +17 -0
- data/app/views/bolt/user_sessions/new.html.erb +66 -0
- data/app/views/bolt/user_sessions_bk/new.html.erb +69 -0
- data/app/views/bolt/user_statuses/_form.html.erb +9 -0
- data/app/views/bolt/user_statuses/_table.html.erb +16 -0
- data/app/views/bolt/user_statuses/index.html.erb +10 -0
- data/app/views/bolt/user_statuses/new.html.erb +18 -0
- data/app/views/bolt/user_statuses/show.html.erb +17 -0
- data/app/views/bolt/users/_title.html.erb +8 -0
- data/app/views/bolt/users/index.html.erb +60 -0
- data/app/views/bolt/users/index.html.erb~ +35 -0
- data/app/views/bolt/users/new.html.erb +64 -0
- data/app/views/bolt/users/new.html.erb~ +46 -0
- data/app/views/bolt/users/response.json.builder~ +26 -0
- data/app/views/bolt/users/show.html.erb +130 -0
- data/app/views/bolt/users/show.html.erb~ +94 -0
- data/app/views/bolt/users_bk/_form.html.erb +77 -0
- data/app/views/bolt/users_bk/edit.html.erb +6 -0
- data/app/views/bolt/users_bk/index.html.erb +58 -0
- data/app/views/bolt/users_bk/index.html.erb~ +60 -0
- data/app/views/bolt/users_bk/new.html.erb +6 -0
- data/app/views/bolt/users_bk/show.html.erb +100 -0
- data/app/views/bolt/users_groups/_form.html.erb +25 -0
- data/app/views/bolt/users_groups/edit.html.erb +6 -0
- data/app/views/bolt/users_groups/index.html.erb +25 -0
- data/app/views/bolt/users_groups/new.html.erb +5 -0
- data/app/views/bolt/users_groups/show.html.erb +15 -0
- data/app/views/layouts/application.html.erb +18 -0
- data/app/views/layouts/application.html.erb~ +51 -0
- data/app/views/layouts/bolt_auth.html.erb +24 -0
- data/app/views/layouts/bolt_auth.html.erb~ +25 -0
- data/app/views/layouts/bolt_main.html.erb +142 -0
- data/app/views/layouts/bolt_main.html.erb~ +56 -0
- data/app/views/layouts/default_site.html.erb +81 -0
- data/app/views/user_groups/_form.html.erb +21 -0
- data/app/views/user_groups/edit.html.erb +6 -0
- data/app/views/user_groups/index.html.erb +32 -0
- data/app/views/user_groups/new.html.erb +5 -0
- data/app/views/user_groups/show.html.erb +10 -0
- data/config/application.rb +49 -0
- data/config/application.rb~ +48 -0
- data/config/boot.rb +6 -0
- data/config/database.yml +31 -0
- data/config/database.yml~ +25 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +30 -0
- data/config/environments/production.rb +60 -0
- data/config/environments/test.rb +39 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +101 -0
- data/config/routes.rb~ +81 -0
- data/db/migrate/20111028162853_create_bolt_users.rb +49 -0
- data/db/migrate/20111028162853_create_bolt_users.rb~ +49 -0
- data/db/migrate/20120302083233_create_articles.rb~ +15 -0
- data/db/migrate/20120307133203_create_groups.rb +10 -0
- data/db/migrate/20120307133203_create_groups.rb~ +9 -0
- data/db/migrate/20120308113354_create_users_groups.rb +10 -0
- data/db/migrate/20120308113354_create_users_groups.rb~ +10 -0
- data/db/migrate/20120309070442_create_articles.rb +18 -0
- data/db/migrate/20120312063336_create_blogs.rb +15 -0
- data/db/migrate/20120312071401_create_categories.rb +13 -0
- data/db/migrate/20120313051136_create_accesses.rb +13 -0
- data/db/migrate/20120313051206_create_statuses.rb +13 -0
- data/db/migrate/20120313061322_create_media.rb +18 -0
- data/db/migrate/20120313061459_create_media_images.rb +10 -0
- data/db/migrate/20120313085220_create_user_statuses.rb +13 -0
- data/db/migrate/20120314060252_create_articles_categories.rb +14 -0
- data/db/migrate/20120314110540_create_pages.rb +24 -0
- data/db/migrate/20120314110540_create_pages.rb~ +24 -0
- data/db/migrate/20120314110602_create_page_sections.rb +20 -0
- data/db/migrate/20120314110602_create_page_sections.rb~ +20 -0
- data/db/migrate/20120314110922_add_ancestry_to_page.rb +9 -0
- data/db/migrate/20120315071805_change_mediaimages_column.rb +8 -0
- data/db/migrate/20120319132523_create_settings.rb +18 -0
- data/db/schema.rb +169 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/tasks/tasks.rake +31 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/bolt/images/backbone.png +0 -0
- data/public/bolt/images/header.png +0 -0
- data/public/bolt/images/icons/add.png +0 -0
- data/public/bolt/images/icons/ajax-spinner.gif +0 -0
- data/public/bolt/images/icons/delete.png +0 -0
- data/public/bolt/images/icons/icons.gif +0 -0
- data/public/bolt/images/icons/loading.gif +0 -0
- data/public/bolt/images/icons/spinner-sm.gif +0 -0
- data/public/bolt/images/icons/spinner.png +0 -0
- data/public/bolt/images/icons/table.png +0 -0
- data/public/bolt/images/icons/vline.gif +0 -0
- data/public/bolt/images/login/bottom.png +0 -0
- data/public/bolt/images/login/top.png +0 -0
- data/public/bolt/images/nav.png +0 -0
- data/public/bolt/images/rightNav.png +0 -0
- data/public/bolt/images/rightNavButton.png +0 -0
- data/public/bolt/images/visitSiteNav.png +0 -0
- data/public/bolt/imagesx/backbone.png +0 -0
- data/public/bolt/imagesx/header.png +0 -0
- data/public/bolt/imagesx/icons/add.png +0 -0
- data/public/bolt/imagesx/icons/ajax-spinner.gif +0 -0
- data/public/bolt/imagesx/icons/delete.png +0 -0
- data/public/bolt/imagesx/icons/icons.gif +0 -0
- data/public/bolt/imagesx/icons/loading.gif +0 -0
- data/public/bolt/imagesx/icons/spinner-sm.gif +0 -0
- data/public/bolt/imagesx/icons/spinner.png +0 -0
- data/public/bolt/imagesx/icons/table.png +0 -0
- data/public/bolt/imagesx/icons/vline.gif +0 -0
- data/public/bolt/imagesx/login/bottom.png +0 -0
- data/public/bolt/imagesx/login/top.png +0 -0
- data/public/bolt/imagesx/nav.png +0 -0
- data/public/bolt/imagesx/rightNav.png +0 -0
- data/public/bolt/imagesx/rightNavButton.png +0 -0
- data/public/bolt/imagesx/visitSiteNav.png +0 -0
- data/public/bolt/javascripts/backbone.js +25 -0
- data/public/bolt/javascripts/custom.js +2 -0
- data/public/bolt/javascripts/jquery.js +154 -0
- data/public/bolt/javascripts/login.js +24 -0
- data/public/bolt/javascripts/rails.js +132 -0
- data/public/bolt/stylesheets/custom.css +82 -0
- data/public/bolt/stylesheets/custom.css~ +82 -0
- data/public/bolt/stylesheets/elements.css +316 -0
- data/public/bolt/stylesheets/elements.css~ +307 -0
- data/public/bolt/stylesheets/login.css +137 -0
- data/public/bolt/stylesheets/login.css~ +137 -0
- data/public/bolt/stylesheets/screen.css +224 -0
- data/public/bolt/stylesheets/screen.css~ +224 -0
- data/public/favicon.ico +0 -0
- data/public/images/article.png +0 -0
- data/public/images/backbone.png +0 -0
- data/public/images/cancel.png +0 -0
- data/public/images/cat.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/edit.png +0 -0
- data/public/images/file.gif +0 -0
- data/public/images/folder-closed.gif +0 -0
- data/public/images/folder.gif +0 -0
- data/public/images/header.png +0 -0
- data/public/images/icons.gif +0 -0
- data/public/images/icons/add.png +0 -0
- data/public/images/icons/ajax-spinner.gif +0 -0
- data/public/images/icons/delete.png +0 -0
- data/public/images/icons/icons.gif +0 -0
- data/public/images/icons/loading.gif +0 -0
- data/public/images/icons/spinner-sm.gif +0 -0
- data/public/images/icons/spinner.png +0 -0
- data/public/images/icons/table.png +0 -0
- data/public/images/icons/vline.gif +0 -0
- data/public/images/ii.jpg +0 -0
- data/public/images/loading.gif +0 -0
- data/public/images/login/bottom.png +0 -0
- data/public/images/login/top.png +0 -0
- data/public/images/logo.png +0 -0
- data/public/images/logout.png +0 -0
- data/public/images/media.png +0 -0
- data/public/images/minus.gif +0 -0
- data/public/images/nav.png +0 -0
- data/public/images/new.png +0 -0
- data/public/images/plus.gif +0 -0
- data/public/images/profileimg.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/rightNav.png +0 -0
- data/public/images/rightNavButton.png +0 -0
- data/public/images/treeview-black-line.gif +0 -0
- data/public/images/treeview-black.gif +0 -0
- data/public/images/treeview-default-line.gif +0 -0
- data/public/images/treeview-default.gif +0 -0
- data/public/images/treeview-famfamfam-line.gif +0 -0
- data/public/images/treeview-famfamfam.gif +0 -0
- data/public/images/treeview-gray-line.gif +0 -0
- data/public/images/treeview-gray.gif +0 -0
- data/public/images/treeview-red-line.gif +0 -0
- data/public/images/treeview-red.gif +0 -0
- data/public/images/ui.dynatree.css +440 -0
- data/public/images/user.png +0 -0
- data/public/images/user1.png +0 -0
- data/public/images/visitSiteNav.png +0 -0
- data/public/images/vline.gif +0 -0
- data/public/javascripts/backbone.js +25 -0
- data/public/javascripts/custom.js +2 -0
- data/public/javascripts/jquery.js +154 -0
- data/public/javascripts/login.js +24 -0
- data/public/javascripts/rails.js +132 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/public/jqueryui/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/jqueryui/css/ui-lightness/jquery-ui-1.8.18.custom.css +336 -0
- data/public/jqueryui/development-bundle/AUTHORS.txt +30 -0
- data/public/jqueryui/development-bundle/GPL-LICENSE.txt +278 -0
- data/public/jqueryui/development-bundle/MIT-LICENSE.txt +25 -0
- data/public/jqueryui/development-bundle/demos/demos.css +334 -0
- data/public/jqueryui/development-bundle/demos/dialog/animated.html +56 -0
- data/public/jqueryui/development-bundle/demos/dialog/default.html +54 -0
- data/public/jqueryui/development-bundle/demos/dialog/index.html +23 -0
- data/public/jqueryui/development-bundle/demos/dialog/modal-confirmation.html +69 -0
- data/public/jqueryui/development-bundle/demos/dialog/modal-form.html +167 -0
- data/public/jqueryui/development-bundle/demos/dialog/modal-message.html +71 -0
- data/public/jqueryui/development-bundle/demos/dialog/modal.html +60 -0
- data/public/jqueryui/development-bundle/demos/draggable/constrain-movement.html +69 -0
- data/public/jqueryui/development-bundle/demos/draggable/cursor-style.html +49 -0
- data/public/jqueryui/development-bundle/demos/draggable/default.html +39 -0
- data/public/jqueryui/development-bundle/demos/draggable/delay-start.html +45 -0
- data/public/jqueryui/development-bundle/demos/draggable/events.html +77 -0
- data/public/jqueryui/development-bundle/demos/draggable/handle.html +50 -0
- data/public/jqueryui/development-bundle/demos/draggable/index.html +28 -0
- data/public/jqueryui/development-bundle/demos/draggable/revert.html +44 -0
- data/public/jqueryui/development-bundle/demos/draggable/scroll.html +51 -0
- data/public/jqueryui/development-bundle/demos/draggable/snap-to.html +68 -0
- data/public/jqueryui/development-bundle/demos/draggable/sortable.html +57 -0
- data/public/jqueryui/development-bundle/demos/draggable/visual-feedback.html +77 -0
- data/public/jqueryui/development-bundle/demos/droppable/accepted-elements.html +60 -0
- data/public/jqueryui/development-bundle/demos/droppable/default.html +53 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/droppable/index.html +24 -0
- data/public/jqueryui/development-bundle/demos/droppable/photo-manager.html +184 -0
- data/public/jqueryui/development-bundle/demos/droppable/propagation.html +80 -0
- data/public/jqueryui/development-bundle/demos/droppable/revert.html +61 -0
- data/public/jqueryui/development-bundle/demos/droppable/shopping-cart.html +101 -0
- data/public/jqueryui/development-bundle/demos/droppable/visual-feedback.html +78 -0
- data/public/jqueryui/development-bundle/demos/images/calendar.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/demo-config-on.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/demo-spindown-open.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/icon-docs-info.gif +0 -0
- data/public/jqueryui/development-bundle/demos/images/pbar-ani.gif +0 -0
- data/public/jqueryui/development-bundle/demos/index.html +328 -0
- data/public/jqueryui/development-bundle/demos/position/cycler.html +122 -0
- data/public/jqueryui/development-bundle/demos/position/default.html +153 -0
- data/public/jqueryui/development-bundle/demos/position/images/earth.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/position/images/flight.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/position/images/rocket.jpg +0 -0
- data/public/jqueryui/development-bundle/demos/position/index.html +19 -0
- data/public/jqueryui/development-bundle/demos/resizable/animate.html +43 -0
- data/public/jqueryui/development-bundle/demos/resizable/aspect-ratio.html +42 -0
- data/public/jqueryui/development-bundle/demos/resizable/constrain-area.html +47 -0
- data/public/jqueryui/development-bundle/demos/resizable/default.html +40 -0
- data/public/jqueryui/development-bundle/demos/resizable/delay-start.html +52 -0
- data/public/jqueryui/development-bundle/demos/resizable/helper.html +43 -0
- data/public/jqueryui/development-bundle/demos/resizable/index.html +28 -0
- data/public/jqueryui/development-bundle/demos/resizable/max-min.html +45 -0
- data/public/jqueryui/development-bundle/demos/resizable/snap-to-grid.html +42 -0
- data/public/jqueryui/development-bundle/demos/resizable/synchronous-resize.html +49 -0
- data/public/jqueryui/development-bundle/demos/resizable/textarea.html +41 -0
- data/public/jqueryui/development-bundle/demos/resizable/visual-feedback.html +43 -0
- data/public/jqueryui/development-bundle/demos/selectable/default.html +50 -0
- data/public/jqueryui/development-bundle/demos/selectable/display-grid.html +55 -0
- data/public/jqueryui/development-bundle/demos/selectable/index.html +20 -0
- data/public/jqueryui/development-bundle/demos/selectable/serialize.html +61 -0
- data/public/jqueryui/development-bundle/demos/sortable/connect-lists-through-tabs.html +78 -0
- data/public/jqueryui/development-bundle/demos/sortable/connect-lists.html +58 -0
- data/public/jqueryui/development-bundle/demos/sortable/default.html +51 -0
- data/public/jqueryui/development-bundle/demos/sortable/delay-start.html +67 -0
- data/public/jqueryui/development-bundle/demos/sortable/display-grid.html +54 -0
- data/public/jqueryui/development-bundle/demos/sortable/empty-lists.html +69 -0
- data/public/jqueryui/development-bundle/demos/sortable/index.html +26 -0
- data/public/jqueryui/development-bundle/demos/sortable/items.html +70 -0
- data/public/jqueryui/development-bundle/demos/sortable/placeholder.html +56 -0
- data/public/jqueryui/development-bundle/demos/sortable/portlets.html +96 -0
- data/public/jqueryui/development-bundle/docs/dialog.html +1698 -0
- data/public/jqueryui/development-bundle/docs/draggable.html +1577 -0
- data/public/jqueryui/development-bundle/docs/droppable.html +829 -0
- data/public/jqueryui/development-bundle/docs/position.html +245 -0
- data/public/jqueryui/development-bundle/docs/resizable.html +1201 -0
- data/public/jqueryui/development-bundle/docs/selectable.html +848 -0
- data/public/jqueryui/development-bundle/docs/sortable.html +1953 -0
- data/public/jqueryui/development-bundle/external/jquery.bgiframe-2.1.2.js +39 -0
- data/public/jqueryui/development-bundle/external/jquery.cookie.js +89 -0
- data/public/jqueryui/development-bundle/external/jquery.metadata.js +122 -0
- data/public/jqueryui/development-bundle/external/qunit.css +225 -0
- data/public/jqueryui/development-bundle/external/qunit.js +1448 -0
- data/public/jqueryui/development-bundle/jquery-1.7.1.js +9266 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.all.css +11 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.base.css +4 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.core.css +38 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.dialog.css +21 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.resizable.css +20 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.selectable.css +10 -0
- data/public/jqueryui/development-bundle/themes/base/jquery.ui.theme.css +247 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery-ui-1.8.18.custom.css +336 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.all.css +11 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.base.css +4 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.core.css +38 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.dialog.css +21 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.resizable.css +20 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.selectable.css +10 -0
- data/public/jqueryui/development-bundle/themes/ui-lightness/jquery.ui.theme.css +249 -0
- data/public/jqueryui/development-bundle/ui/jquery-ui-1.8.18.custom.js +5206 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.core.js +319 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.dialog.js +878 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.draggable.js +825 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.droppable.js +296 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.mouse.js +162 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.position.js +298 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.resizable.js +808 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.selectable.js +267 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.sortable.js +1081 -0
- data/public/jqueryui/development-bundle/ui/jquery.ui.widget.js +272 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.core.min.js +9 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.dialog.min.js +18 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.draggable.min.js +14 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.droppable.min.js +15 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.mouse.min.js +12 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.position.min.js +9 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.resizable.min.js +14 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.selectable.min.js +14 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.sortable.min.js +14 -0
- data/public/jqueryui/development-bundle/ui/minified/jquery.ui.widget.min.js +9 -0
- data/public/jqueryui/development-bundle/version.txt +1 -0
- data/public/jqueryui/js/jquery-1.7.1.min.js +4 -0
- data/public/jqueryui/js/jquery-ui-1.8.18.custom.min.js +119 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/custom.css +91 -0
- data/public/stylesheets/custom.css~ +82 -0
- data/public/stylesheets/elements.css +315 -0
- data/public/stylesheets/elements.css~ +307 -0
- data/public/stylesheets/login.css +137 -0
- data/public/stylesheets/login.css~ +137 -0
- data/public/stylesheets/screen.css +224 -0
- data/public/stylesheets/screen.css~ +224 -0
- data/script/rails +6 -0
- data/test/fixtures/bolt/groups.yml +7 -0
- data/test/fixtures/bolt/users_groups.yml +9 -0
- data/test/fixtures/media.yml +13 -0
- data/test/fixtures/media_images.yml +9 -0
- data/test/functional/bolt/groups_controller_test.rb +49 -0
- data/test/functional/bolt/users_groups_controller_test.rb +49 -0
- data/test/functional/media_controller_test.rb +49 -0
- data/test/performance/browsing_test.rb +12 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/bolt/group_test.rb +7 -0
- data/test/unit/bolt/users_group_test.rb +7 -0
- data/test/unit/helpers/bolt/groups_helper_test.rb +4 -0
- data/test/unit/helpers/bolt/users_groups_helper_test.rb +4 -0
- data/test/unit/helpers/media_helper_test.rb +4 -0
- data/test/unit/media_images_test.rb +7 -0
- data/test/unit/medium_test.rb +7 -0
- metadata +716 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
|
2
|
+
* Licensed under the MIT License (LICENSE.txt).
|
|
3
|
+
*
|
|
4
|
+
* Version 2.1.2
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
(function($){
|
|
8
|
+
|
|
9
|
+
$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
|
|
10
|
+
s = $.extend({
|
|
11
|
+
top : 'auto', // auto == .currentStyle.borderTopWidth
|
|
12
|
+
left : 'auto', // auto == .currentStyle.borderLeftWidth
|
|
13
|
+
width : 'auto', // auto == offsetWidth
|
|
14
|
+
height : 'auto', // auto == offsetHeight
|
|
15
|
+
opacity : true,
|
|
16
|
+
src : 'javascript:false;'
|
|
17
|
+
}, s);
|
|
18
|
+
var html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
|
|
19
|
+
'style="display:block;position:absolute;z-index:-1;'+
|
|
20
|
+
(s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
|
|
21
|
+
'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
|
|
22
|
+
'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+
|
|
23
|
+
'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+
|
|
24
|
+
'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+
|
|
25
|
+
'"/>';
|
|
26
|
+
return this.each(function() {
|
|
27
|
+
if ( $(this).children('iframe.bgiframe').length === 0 )
|
|
28
|
+
this.insertBefore( document.createElement(html), this.firstChild );
|
|
29
|
+
});
|
|
30
|
+
} : function() { return this; });
|
|
31
|
+
|
|
32
|
+
// old alias
|
|
33
|
+
$.fn.bgIframe = $.fn.bgiframe;
|
|
34
|
+
|
|
35
|
+
function prop(n) {
|
|
36
|
+
return n && n.constructor === Number ? n + 'px' : n;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
})(jQuery);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*jslint browser: true */ /*global jQuery: true */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* jQuery Cookie plugin
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
|
|
7
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
8
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
9
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// TODO JsDoc
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a cookie with the given key and value and other optional parameters.
|
|
17
|
+
*
|
|
18
|
+
* @example $.cookie('the_cookie', 'the_value');
|
|
19
|
+
* @desc Set the value of a cookie.
|
|
20
|
+
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
|
21
|
+
* @desc Create a cookie with all available options.
|
|
22
|
+
* @example $.cookie('the_cookie', 'the_value');
|
|
23
|
+
* @desc Create a session cookie.
|
|
24
|
+
* @example $.cookie('the_cookie', null);
|
|
25
|
+
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
|
26
|
+
* used when the cookie was set.
|
|
27
|
+
*
|
|
28
|
+
* @param String key The key of the cookie.
|
|
29
|
+
* @param String value The value of the cookie.
|
|
30
|
+
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
|
31
|
+
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
|
32
|
+
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
|
33
|
+
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
|
34
|
+
* when the the browser exits.
|
|
35
|
+
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
|
36
|
+
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
|
37
|
+
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
|
38
|
+
* require a secure protocol (like HTTPS).
|
|
39
|
+
* @type undefined
|
|
40
|
+
*
|
|
41
|
+
* @name $.cookie
|
|
42
|
+
* @cat Plugins/Cookie
|
|
43
|
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get the value of a cookie with the given key.
|
|
48
|
+
*
|
|
49
|
+
* @example $.cookie('the_cookie');
|
|
50
|
+
* @desc Get the value of a cookie.
|
|
51
|
+
*
|
|
52
|
+
* @param String key The key of the cookie.
|
|
53
|
+
* @return The value of the cookie.
|
|
54
|
+
* @type String
|
|
55
|
+
*
|
|
56
|
+
* @name $.cookie
|
|
57
|
+
* @cat Plugins/Cookie
|
|
58
|
+
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
|
59
|
+
*/
|
|
60
|
+
jQuery.cookie = function (key, value, options) {
|
|
61
|
+
|
|
62
|
+
// key and value given, set cookie...
|
|
63
|
+
if (arguments.length > 1 && (value === null || typeof value !== "object")) {
|
|
64
|
+
options = jQuery.extend({}, options);
|
|
65
|
+
|
|
66
|
+
if (value === null) {
|
|
67
|
+
options.expires = -1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (typeof options.expires === 'number') {
|
|
71
|
+
var days = options.expires, t = options.expires = new Date();
|
|
72
|
+
t.setDate(t.getDate() + days);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return (document.cookie = [
|
|
76
|
+
encodeURIComponent(key), '=',
|
|
77
|
+
options.raw ? String(value) : encodeURIComponent(String(value)),
|
|
78
|
+
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
|
79
|
+
options.path ? '; path=' + options.path : '',
|
|
80
|
+
options.domain ? '; domain=' + options.domain : '',
|
|
81
|
+
options.secure ? '; secure' : ''
|
|
82
|
+
].join(''));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// key and possibly options given, get cookie...
|
|
86
|
+
options = value || {};
|
|
87
|
+
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
|
|
88
|
+
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
|
|
89
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Metadata - jQuery plugin for parsing metadata from elements
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
|
|
5
|
+
*
|
|
6
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
8
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
9
|
+
*
|
|
10
|
+
* Revision: $Id: jquery.metadata.js 4187 2007-12-16 17:15:27Z joern.zaefferer $
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Sets the type of metadata to use. Metadata is encoded in JSON, and each property
|
|
16
|
+
* in the JSON will become a property of the element itself.
|
|
17
|
+
*
|
|
18
|
+
* There are three supported types of metadata storage:
|
|
19
|
+
*
|
|
20
|
+
* attr: Inside an attribute. The name parameter indicates *which* attribute.
|
|
21
|
+
*
|
|
22
|
+
* class: Inside the class attribute, wrapped in curly braces: { }
|
|
23
|
+
*
|
|
24
|
+
* elem: Inside a child element (e.g. a script tag). The
|
|
25
|
+
* name parameter indicates *which* element.
|
|
26
|
+
*
|
|
27
|
+
* The metadata for an element is loaded the first time the element is accessed via jQuery.
|
|
28
|
+
*
|
|
29
|
+
* As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
|
|
30
|
+
* matched by expr, then redefine the metadata type and run another $(expr) for other elements.
|
|
31
|
+
*
|
|
32
|
+
* @name $.metadata.setType
|
|
33
|
+
*
|
|
34
|
+
* @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
|
|
35
|
+
* @before $.metadata.setType("class")
|
|
36
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
|
37
|
+
* @desc Reads metadata from the class attribute
|
|
38
|
+
*
|
|
39
|
+
* @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
|
|
40
|
+
* @before $.metadata.setType("attr", "data")
|
|
41
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
|
42
|
+
* @desc Reads metadata from a "data" attribute
|
|
43
|
+
*
|
|
44
|
+
* @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
|
|
45
|
+
* @before $.metadata.setType("elem", "script")
|
|
46
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
|
47
|
+
* @desc Reads metadata from a nested script element
|
|
48
|
+
*
|
|
49
|
+
* @param String type The encoding type
|
|
50
|
+
* @param String name The name of the attribute to be used to get metadata (optional)
|
|
51
|
+
* @cat Plugins/Metadata
|
|
52
|
+
* @descr Sets the type of encoding to be used when loading metadata for the first time
|
|
53
|
+
* @type undefined
|
|
54
|
+
* @see metadata()
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
(function($) {
|
|
58
|
+
|
|
59
|
+
$.extend({
|
|
60
|
+
metadata : {
|
|
61
|
+
defaults : {
|
|
62
|
+
type: 'class',
|
|
63
|
+
name: 'metadata',
|
|
64
|
+
cre: /({.*})/,
|
|
65
|
+
single: 'metadata'
|
|
66
|
+
},
|
|
67
|
+
setType: function( type, name ){
|
|
68
|
+
this.defaults.type = type;
|
|
69
|
+
this.defaults.name = name;
|
|
70
|
+
},
|
|
71
|
+
get: function( elem, opts ){
|
|
72
|
+
var settings = $.extend({},this.defaults,opts);
|
|
73
|
+
// check for empty string in single property
|
|
74
|
+
if ( !settings.single.length ) settings.single = 'metadata';
|
|
75
|
+
|
|
76
|
+
var data = $.data(elem, settings.single);
|
|
77
|
+
// returned cached data if it already exists
|
|
78
|
+
if ( data ) return data;
|
|
79
|
+
|
|
80
|
+
data = "{}";
|
|
81
|
+
|
|
82
|
+
if ( settings.type == "class" ) {
|
|
83
|
+
var m = settings.cre.exec( elem.className );
|
|
84
|
+
if ( m )
|
|
85
|
+
data = m[1];
|
|
86
|
+
} else if ( settings.type == "elem" ) {
|
|
87
|
+
if( !elem.getElementsByTagName )
|
|
88
|
+
return undefined;
|
|
89
|
+
var e = elem.getElementsByTagName(settings.name);
|
|
90
|
+
if ( e.length )
|
|
91
|
+
data = $.trim(e[0].innerHTML);
|
|
92
|
+
} else if ( elem.getAttribute != undefined ) {
|
|
93
|
+
var attr = elem.getAttribute( settings.name );
|
|
94
|
+
if ( attr )
|
|
95
|
+
data = attr;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if ( data.indexOf( '{' ) <0 )
|
|
99
|
+
data = "{" + data + "}";
|
|
100
|
+
|
|
101
|
+
data = eval("(" + data + ")");
|
|
102
|
+
|
|
103
|
+
$.data( elem, settings.single, data );
|
|
104
|
+
return data;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Returns the metadata object for the first member of the jQuery object.
|
|
111
|
+
*
|
|
112
|
+
* @name metadata
|
|
113
|
+
* @descr Returns element's metadata object
|
|
114
|
+
* @param Object opts An object contianing settings to override the defaults
|
|
115
|
+
* @type jQuery
|
|
116
|
+
* @cat Plugins/Metadata
|
|
117
|
+
*/
|
|
118
|
+
$.fn.metadata = function( opts ){
|
|
119
|
+
return $.metadata.get( this[0], opts );
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
})(jQuery);
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QUnit - A JavaScript Unit Testing Framework
|
|
3
|
+
*
|
|
4
|
+
* http://docs.jquery.com/QUnit
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2011 John Resig, Jörn Zaefferer
|
|
7
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
|
8
|
+
* or GPL (GPL-LICENSE.txt) licenses.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** Font Family and Sizes */
|
|
12
|
+
|
|
13
|
+
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
|
14
|
+
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
|
18
|
+
#qunit-tests { font-size: smaller; }
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/** Resets */
|
|
22
|
+
|
|
23
|
+
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
/** Header */
|
|
30
|
+
|
|
31
|
+
#qunit-header {
|
|
32
|
+
padding: 0.5em 0 0.5em 1em;
|
|
33
|
+
|
|
34
|
+
color: #8699a4;
|
|
35
|
+
background-color: #0d3349;
|
|
36
|
+
|
|
37
|
+
font-size: 1.5em;
|
|
38
|
+
line-height: 1em;
|
|
39
|
+
font-weight: normal;
|
|
40
|
+
|
|
41
|
+
border-radius: 15px 15px 0 0;
|
|
42
|
+
-moz-border-radius: 15px 15px 0 0;
|
|
43
|
+
-webkit-border-top-right-radius: 15px;
|
|
44
|
+
-webkit-border-top-left-radius: 15px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#qunit-header a {
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
color: #c2ccd1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#qunit-header a:hover,
|
|
53
|
+
#qunit-header a:focus {
|
|
54
|
+
color: #fff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#qunit-banner {
|
|
58
|
+
height: 5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#qunit-testrunner-toolbar {
|
|
62
|
+
padding: 0.5em 0 0.5em 2em;
|
|
63
|
+
color: #5E740B;
|
|
64
|
+
background-color: #eee;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#qunit-userAgent {
|
|
68
|
+
padding: 0.5em 0 0.5em 2.5em;
|
|
69
|
+
background-color: #2b81af;
|
|
70
|
+
color: #fff;
|
|
71
|
+
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/** Tests: Pass/Fail */
|
|
76
|
+
|
|
77
|
+
#qunit-tests {
|
|
78
|
+
list-style-position: inside;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#qunit-tests li {
|
|
82
|
+
padding: 0.4em 0.5em 0.4em 2.5em;
|
|
83
|
+
border-bottom: 1px solid #fff;
|
|
84
|
+
list-style-position: inside;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#qunit-tests li strong {
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#qunit-tests li a {
|
|
96
|
+
padding: 0.5em;
|
|
97
|
+
color: #c2ccd1;
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
}
|
|
100
|
+
#qunit-tests li a:hover,
|
|
101
|
+
#qunit-tests li a:focus {
|
|
102
|
+
color: #000;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#qunit-tests ol {
|
|
106
|
+
margin-top: 0.5em;
|
|
107
|
+
padding: 0.5em;
|
|
108
|
+
|
|
109
|
+
background-color: #fff;
|
|
110
|
+
|
|
111
|
+
border-radius: 15px;
|
|
112
|
+
-moz-border-radius: 15px;
|
|
113
|
+
-webkit-border-radius: 15px;
|
|
114
|
+
|
|
115
|
+
box-shadow: inset 0px 2px 13px #999;
|
|
116
|
+
-moz-box-shadow: inset 0px 2px 13px #999;
|
|
117
|
+
-webkit-box-shadow: inset 0px 2px 13px #999;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#qunit-tests table {
|
|
121
|
+
border-collapse: collapse;
|
|
122
|
+
margin-top: .2em;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
#qunit-tests th {
|
|
126
|
+
text-align: right;
|
|
127
|
+
vertical-align: top;
|
|
128
|
+
padding: 0 .5em 0 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#qunit-tests td {
|
|
132
|
+
vertical-align: top;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
#qunit-tests pre {
|
|
136
|
+
margin: 0;
|
|
137
|
+
white-space: pre-wrap;
|
|
138
|
+
word-wrap: break-word;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
#qunit-tests del {
|
|
142
|
+
background-color: #e0f2be;
|
|
143
|
+
color: #374e0c;
|
|
144
|
+
text-decoration: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
#qunit-tests ins {
|
|
148
|
+
background-color: #ffcaca;
|
|
149
|
+
color: #500;
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/*** Test Counts */
|
|
154
|
+
|
|
155
|
+
#qunit-tests b.counts { color: black; }
|
|
156
|
+
#qunit-tests b.passed { color: #5E740B; }
|
|
157
|
+
#qunit-tests b.failed { color: #710909; }
|
|
158
|
+
|
|
159
|
+
#qunit-tests li li {
|
|
160
|
+
margin: 0.5em;
|
|
161
|
+
padding: 0.4em 0.5em 0.4em 0.5em;
|
|
162
|
+
background-color: #fff;
|
|
163
|
+
border-bottom: none;
|
|
164
|
+
list-style-position: inside;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/*** Passing Styles */
|
|
168
|
+
|
|
169
|
+
#qunit-tests li li.pass {
|
|
170
|
+
color: #5E740B;
|
|
171
|
+
background-color: #fff;
|
|
172
|
+
border-left: 26px solid #C6E746;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
|
176
|
+
#qunit-tests .pass .test-name { color: #366097; }
|
|
177
|
+
|
|
178
|
+
#qunit-tests .pass .test-actual,
|
|
179
|
+
#qunit-tests .pass .test-expected { color: #999999; }
|
|
180
|
+
|
|
181
|
+
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
|
182
|
+
|
|
183
|
+
/*** Failing Styles */
|
|
184
|
+
|
|
185
|
+
#qunit-tests li li.fail {
|
|
186
|
+
color: #710909;
|
|
187
|
+
background-color: #fff;
|
|
188
|
+
border-left: 26px solid #EE5757;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
#qunit-tests > li:last-child {
|
|
192
|
+
border-radius: 0 0 15px 15px;
|
|
193
|
+
-moz-border-radius: 0 0 15px 15px;
|
|
194
|
+
-webkit-border-bottom-right-radius: 15px;
|
|
195
|
+
-webkit-border-bottom-left-radius: 15px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
|
|
199
|
+
#qunit-tests .fail .test-name,
|
|
200
|
+
#qunit-tests .fail .module-name { color: #000000; }
|
|
201
|
+
|
|
202
|
+
#qunit-tests .fail .test-actual { color: #EE5757; }
|
|
203
|
+
#qunit-tests .fail .test-expected { color: green; }
|
|
204
|
+
|
|
205
|
+
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
/** Result */
|
|
209
|
+
|
|
210
|
+
#qunit-testresult {
|
|
211
|
+
padding: 0.5em 0.5em 0.5em 2.5em;
|
|
212
|
+
|
|
213
|
+
color: #2b81af;
|
|
214
|
+
background-color: #D2E0E6;
|
|
215
|
+
|
|
216
|
+
border-bottom: 1px solid white;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Fixture */
|
|
220
|
+
|
|
221
|
+
#qunit-fixture {
|
|
222
|
+
position: absolute;
|
|
223
|
+
top: -10000px;
|
|
224
|
+
left: -10000px;
|
|
225
|
+
}
|