social_stream 0.4.6 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -8
- data/README.rdoc +8 -20
- data/lib/generators/social_stream/USAGE +0 -3
- data/lib/generators/social_stream/install_generator.rb +1 -55
- data/lib/social_stream.rb +4 -62
- data/lib/social_stream/version.rb +1 -1
- data/social_stream.gemspec +1 -36
- data/spec/controllers/frontpage_controller_spec.rb +0 -5
- data/spec/support/migrations.rb +18 -19
- metadata +25 -979
- data/app/controllers/activities_controller.rb +0 -19
- data/app/controllers/api_controller.rb +0 -36
- data/app/controllers/authentications_controller.rb +0 -17
- data/app/controllers/comments_controller.rb +0 -12
- data/app/controllers/contacts_controller.rb +0 -43
- data/app/controllers/conversations_controller.rb +0 -102
- data/app/controllers/frontpage_controller.rb +0 -23
- data/app/controllers/groups_controller.rb +0 -35
- data/app/controllers/home_controller.rb +0 -3
- data/app/controllers/likes_controller.rb +0 -41
- data/app/controllers/messages_controller.rb +0 -87
- data/app/controllers/notifications_controller.rb +0 -72
- data/app/controllers/omniauth_callbacks_controller.rb +0 -17
- data/app/controllers/permissions_controller.rb +0 -15
- data/app/controllers/posts_controller.rb +0 -11
- data/app/controllers/profiles_controller.rb +0 -9
- data/app/controllers/relation/customs_controller.rb +0 -16
- data/app/controllers/spheres_controller.rb +0 -12
- data/app/controllers/subjects_controller.rb +0 -7
- data/app/controllers/tags_controller.rb +0 -15
- data/app/controllers/users_controller.rb +0 -30
- data/app/helpers/activities_helper.rb +0 -21
- data/app/helpers/contacts_helper.rb +0 -26
- data/app/helpers/groups_helper.rb +0 -3
- data/app/helpers/location_helper.rb +0 -48
- data/app/helpers/notifications_helper.rb +0 -23
- data/app/helpers/permissions_helper.rb +0 -16
- data/app/helpers/profiles_helper.rb +0 -31
- data/app/helpers/subjects_helper.rb +0 -6
- data/app/helpers/toolbar_helper.rb +0 -83
- data/app/helpers/users_helper.rb +0 -4
- data/app/models/ability.rb +0 -2
- data/app/models/activity.rb +0 -198
- data/app/models/activity_object.rb +0 -31
- data/app/models/activity_object_activity.rb +0 -14
- data/app/models/activity_verb.rb +0 -22
- data/app/models/actor.rb +0 -431
- data/app/models/authentication.rb +0 -3
- data/app/models/comment.rb +0 -3
- data/app/models/contact.rb +0 -121
- data/app/models/group.rb +0 -49
- data/app/models/like.rb +0 -49
- data/app/models/permission.rb +0 -180
- data/app/models/post.rb +0 -3
- data/app/models/profile.rb +0 -53
- data/app/models/relation.rb +0 -83
- data/app/models/relation/custom.rb +0 -122
- data/app/models/relation/public.rb +0 -42
- data/app/models/relation_permission.rb +0 -4
- data/app/models/sphere.rb +0 -9
- data/app/models/tie.rb +0 -332
- data/app/models/tie_activity.rb +0 -42
- data/app/models/user.rb +0 -125
- data/app/views/activities/_activity.html.erb +0 -5
- data/app/views/activities/_child.html.erb +0 -18
- data/app/views/activities/_comments.html.erb +0 -3
- data/app/views/activities/_index.html.erb +0 -22
- data/app/views/activities/_jquery.html.erb +0 -100
- data/app/views/activities/_new.html.erb +0 -30
- data/app/views/activities/_options.html.erb +0 -12
- data/app/views/activities/_root.html.erb +0 -37
- data/app/views/activities/_walls.html.erb +0 -34
- data/app/views/activities/index.js.erb +0 -1
- data/app/views/activity_objects/_activity_object.html.erb +0 -1
- data/app/views/actors/_actor.html.erb +0 -0
- data/app/views/api/activity_atom_feed.atom.builder +0 -40
- data/app/views/avatars/index.html.erb +0 -28
- data/app/views/comments/_comment.html.erb +0 -1
- data/app/views/comments/_new.html.erb +0 -19
- data/app/views/comments/create.js.erb +0 -4
- data/app/views/comments/destroy.js.erb +0 -2
- data/app/views/contacts/_contact.html.erb +0 -20
- data/app/views/contacts/_edit.html.erb +0 -76
- data/app/views/contacts/_form.html.erb +0 -77
- data/app/views/contacts/_index.html.erb +0 -33
- data/app/views/contacts/_pendings.html.erb +0 -11
- data/app/views/contacts/_suggestions.html.erb +0 -27
- data/app/views/contacts/_suggestions_and_pendings.html.erb +0 -6
- data/app/views/contacts/edit.html.erb +0 -5
- data/app/views/contacts/index.html.erb +0 -39
- data/app/views/contacts/index.js.erb +0 -3
- data/app/views/contacts/new.html.erb +0 -5
- data/app/views/conversations/_conversation.html.erb +0 -37
- data/app/views/conversations/_conversation_full.html.erb +0 -53
- data/app/views/conversations/_conversations.html.erb +0 -5
- data/app/views/conversations/_index.html.erb +0 -11
- data/app/views/conversations/_menu_options.html.erb +0 -19
- data/app/views/conversations/_show.html.erb +0 -13
- data/app/views/conversations/edit.html.erb +0 -10
- data/app/views/conversations/index.html.erb +0 -23
- data/app/views/conversations/index.js.erb +0 -9
- data/app/views/conversations/show.html.erb +0 -51
- data/app/views/conversations/show.js.erb +0 -41
- data/app/views/devise/passwords/edit.html.erb +0 -21
- data/app/views/devise/passwords/new.html.erb +0 -16
- data/app/views/devise/registrations/new.html.erb +0 -37
- data/app/views/devise/sessions/new.html.erb +0 -30
- data/app/views/frontpage/_header.html.erb +0 -25
- data/app/views/frontpage/_search.html.erb +0 -13
- data/app/views/frontpage/_sponsor.html.erb +0 -12
- data/app/views/frontpage/host_meta.xml.builder +0 -11
- data/app/views/frontpage/index.html.erb +0 -96
- data/app/views/groups/_group.html.erb +0 -10
- data/app/views/groups/_index.html.erb +0 -35
- data/app/views/groups/_new.html.erb +0 -74
- data/app/views/groups/_sidebar_index.html.erb +0 -31
- data/app/views/groups/_sidebar_show.html.erb +0 -3
- data/app/views/groups/index.html.erb +0 -62
- data/app/views/groups/index.js.erb +0 -1
- data/app/views/groups/new.html.erb +0 -15
- data/app/views/groups/show.html.erb +0 -30
- data/app/views/home/_groups.html.erb +0 -24
- data/app/views/home/_menu.html.erb +0 -46
- data/app/views/home/_sidebar.html.erb +0 -2
- data/app/views/home/index.html.erb +0 -22
- data/app/views/layouts/_account.html.erb +0 -16
- data/app/views/layouts/_flash.html.erb +0 -5
- data/app/views/layouts/_footer.html.erb +0 -16
- data/app/views/layouts/_header.erb +0 -40
- data/app/views/layouts/_representation.html.erb +0 -23
- data/app/views/layouts/application.html.erb +0 -58
- data/app/views/layouts/frontpage.html.erb +0 -42
- data/app/views/layouts/test.html +0 -61
- data/app/views/likes/create.js.erb +0 -2
- data/app/views/likes/destroy.js.erb +0 -1
- data/app/views/location/_location.html.erb +0 -3
- data/app/views/messages/_form.html.erb +0 -39
- data/app/views/messages/_message.html.erb +0 -31
- data/app/views/messages/_new.html.erb +0 -13
- data/app/views/messages/new.html.erb +0 -57
- data/app/views/messages/new.js.erb +0 -41
- data/app/views/notification_mailer/new_notification_email.html.erb +0 -21
- data/app/views/notification_mailer/new_notification_email.text.erb +0 -11
- data/app/views/notifications/_index.html.erb +0 -21
- data/app/views/notifications/_notification.html.erb +0 -47
- data/app/views/notifications/_show.html.erb +0 -3
- data/app/views/notifications/activities/_follow_body.html.erb +0 -2
- data/app/views/notifications/activities/_follow_subject.html.erb +0 -2
- data/app/views/notifications/activities/_like_body.html.erb +0 -5
- data/app/views/notifications/activities/_like_object_body.html.erb +0 -2
- data/app/views/notifications/activities/_like_object_subject.html.erb +0 -2
- data/app/views/notifications/activities/_like_subject.html.erb +0 -5
- data/app/views/notifications/activities/_like_subject_body.html.erb +0 -1
- data/app/views/notifications/activities/_like_subject_subject.html.erb +0 -2
- data/app/views/notifications/activities/_make-friend_body.html.erb +0 -3
- data/app/views/notifications/activities/_make-friend_subject.html.erb +0 -2
- data/app/views/notifications/activities/_post_body.html.erb +0 -2
- data/app/views/notifications/activities/_post_subject.html.erb +0 -1
- data/app/views/notifications/activities/_update_body.html.erb +0 -1
- data/app/views/notifications/activities/_update_subject.html.erb +0 -1
- data/app/views/notifications/index.html.erb +0 -19
- data/app/views/notifications/index.js.erb +0 -8
- data/app/views/notifications/show.html.erb +0 -5
- data/app/views/permissions/_index.html.erb +0 -39
- data/app/views/permissions/index.js.erb +0 -10
- data/app/views/posts/_post.html.erb +0 -3
- data/app/views/posts/create.js.erb +0 -5
- data/app/views/posts/destroy.js.erb +0 -2
- data/app/views/profiles/_contact.html.erb +0 -81
- data/app/views/profiles/_experience.html.erb +0 -22
- data/app/views/profiles/_personal.html.erb +0 -74
- data/app/views/profiles/_profile.html.erb +0 -50
- data/app/views/profiles/_tags.html.erb +0 -22
- data/app/views/profiles/edit.html.erb +0 -221
- data/app/views/profiles/show.html.erb +0 -25
- data/app/views/profiles/update.js.erb +0 -20
- data/app/views/relation/customs/_form.html.erb +0 -29
- data/app/views/relation/customs/_index.html.erb +0 -30
- data/app/views/relation/customs/_list.html.erb +0 -36
- data/app/views/relation/customs/create.js.erb +0 -20
- data/app/views/relation/customs/index.js.erb +0 -2
- data/app/views/relation/customs/update.js.erb +0 -6
- data/app/views/spheres/_form.html.erb +0 -28
- data/app/views/spheres/_jquery.erb +0 -130
- data/app/views/spheres/_list.html.erb +0 -19
- data/app/views/spheres/create.js.erb +0 -20
- data/app/views/spheres/index.html.erb +0 -74
- data/app/views/subjects/_contacts.html.erb +0 -18
- data/app/views/subjects/_tabs.html.erb +0 -38
- data/app/views/ties/_edit.html.erb +0 -70
- data/app/views/ties/_form.html.erb +0 -6
- data/app/views/ties/create.js.erb +0 -26
- data/app/views/ties/edit.html.erb +0 -1
- data/app/views/ties/suggestion.html.erb +0 -1
- data/app/views/ties/suggestion.js.erb +0 -1
- data/app/views/toolbar/_home.html.erb +0 -9
- data/app/views/toolbar/_home_menu.html.erb +0 -9
- data/app/views/toolbar/_home_menu_options.html.erb +0 -29
- data/app/views/toolbar/_home_menu_options_subjects.html.erb +0 -12
- data/app/views/toolbar/_logo.html.erb +0 -16
- data/app/views/toolbar/_message_menu.html.erb +0 -17
- data/app/views/toolbar/_notifications_menu.html.erb +0 -3
- data/app/views/toolbar/_profile.html.erb +0 -13
- data/app/views/toolbar/_profile_menu.html.erb +0 -15
- data/app/views/toolbar/_profile_menu_basic_options.html.erb +0 -5
- data/app/views/toolbar/_profile_menu_tie_options.html.erb +0 -35
- data/app/views/users/_groups.html.erb +0 -23
- data/app/views/users/_index.html.erb +0 -33
- data/app/views/users/_sidebar_index.html.erb +0 -1
- data/app/views/users/index.html.erb +0 -47
- data/app/views/users/index.js.erb +0 -1
- data/app/views/users/info.html.erb +0 -0
- data/app/views/users/show.html.erb +0 -34
- data/app/views/users/show.xml.builder +0 -28
- data/config/locales/en.yml +0 -341
- data/config/routes.rb +0 -69
- data/lib/generators/social_stream/templates/initializer.rb +0 -17
- data/lib/generators/social_stream/templates/migration.rb +0 -299
- data/lib/generators/social_stream/templates/public/images/HTML5.png +0 -0
- data/lib/generators/social_stream/templates/public/images/HTML5_Semantics.png +0 -0
- data/lib/generators/social_stream/templates/public/images/HTML5_Styling.png +0 -0
- data/lib/generators/social_stream/templates/public/images/Jcrop.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-ne.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-nw.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-se.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-sw.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/1-facebook.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/_notes/btn_certificates.png.mno +0 -4
- data/lib/generators/social_stream/templates/public/images/btn/arrowBlue.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/arrows-ffffff.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/bold.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_activities.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_bookmark.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_browse.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_certificates.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_check.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_close.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_comment.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_comment_add.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_conferences.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_config.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_date.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_delete.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_documents.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_down.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_edit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_embebed.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_exit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_find.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_follow.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_foward.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_friend.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_gallery.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_help.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_home.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_inbox.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_info.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_like.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_next.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_notification.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_notification_delete.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_notifications.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_outline.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_page_link.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_partner.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_photo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_printer.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_profile.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_rank.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_security.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_send.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_spam.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_star.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_tag.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_video.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_write.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/close.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/date.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/edit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/error.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/facebook.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/flag.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/flyer.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/group_left.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/group_right.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/index_71.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/info.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/italic.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/keynote.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/like.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/linkedin.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/live.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/message_conversation.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/message_inbox.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/message_new.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/message_sentbox.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/message_trash.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/new.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/next_conference.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/next_space.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/nolike.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/notifications.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/pixel.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/point_blue.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/point_gray.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/search.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/shadow.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/subtime.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/success.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/tag_cloud.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/time.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/uno.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/viewer.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/warning.png +0 -0
- data/lib/generators/social_stream/templates/public/images/cancel.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/comments.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/green_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/join.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/meet.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/people.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/purple_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_comments.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_organizers.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_people.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_social.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_tags.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_webcam.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/tags.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/yellow_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/header-logo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/html5-badge-h-css3-semantics.png +0 -0
- data/lib/generators/social_stream/templates/public/images/icon_checkbox.png +0 -0
- data/lib/generators/social_stream/templates/public/images/icons/favicon.ico +0 -0
- data/lib/generators/social_stream/templates/public/images/left.png +0 -0
- data/lib/generators/social_stream/templates/public/images/loader.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/actor/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/actor/remote_subject.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/actor/remote_user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/actor/user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/original/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/original/user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/profile/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/profile/user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/representation/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/representation/user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/tie/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/tie/user.png +0 -0
- data/lib/generators/social_stream/templates/public/images/pbar-ani.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/right.png +0 -0
- data/lib/generators/social_stream/templates/public/images/title_background.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ajax.paginate.js +0 -46
- data/lib/generators/social_stream/templates/public/javascripts/avatars.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/.htaccess +0 -24
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/adapters/jquery.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor.js +0 -141
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic_source.js +0 -20
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_source.js +0 -25
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/config.js +0 -21
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/contents.css +0 -45
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/images/spacer.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_languages.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_translationstatus.txt +0 -60
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/af.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ar.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bg.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bn.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bs.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ca.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cs.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cy.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/da.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/de.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/el.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-au.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-ca.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-gb.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eo.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/es.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/et.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eu.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fa.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fi.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fo.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr-ca.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gl.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gu.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/he.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hi.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hr.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hu.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/is.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/it.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ja.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/km.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ko.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lt.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lv.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/mn.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ms.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nb.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nl.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/no.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pl.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt-br.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ro.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ru.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sk.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sl.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr-latn.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sv.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/th.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/tr.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/uk.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/vi.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh-cn.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -13
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -11
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -10
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/dialog.css +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/editor.css +0 -13
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/skin.js +0 -7
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/templates.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/dialog.css +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/editor.css +0 -14
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/skin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/templates.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/dialog.css +0 -9
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/editor.css +0 -13
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/skin.js +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/templates.css +0 -6
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/themes/default/theme.js +0 -8
- data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +0 -84
- data/lib/generators/social_stream/templates/public/javascripts/jqcloud-0.1.3.min.js +0 -11
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js +0 -763
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js +0 -1
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js +0 -401
- data/lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js +0 -163
- data/lib/generators/social_stream/templates/public/javascripts/jquery.ba-url.js +0 -1091
- data/lib/generators/social_stream/templates/public/javascripts/jquery.boxy.js +0 -570
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +0 -77
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fileupload-ui.js +0 -259
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fileupload.js +0 -475
- data/lib/generators/social_stream/templates/public/javascripts/jquery.form.js +0 -815
- data/lib/generators/social_stream/templates/public/javascripts/jquery.js +0 -7179
- data/lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js +0 -250
- data/lib/generators/social_stream/templates/public/javascripts/jquery.min.js +0 -167
- data/lib/generators/social_stream/templates/public/javascripts/jquery.scrollTo.min.js +0 -11
- data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.mouse.js +0 -156
- data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.slider.js +0 -684
- data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.widget.js +0 -236
- data/lib/generators/social_stream/templates/public/javascripts/jquery.validate.js +0 -1124
- data/lib/generators/social_stream/templates/public/javascripts/main.js +0 -28
- data/lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js +0 -42
- data/lib/generators/social_stream/templates/public/javascripts/menu.js +0 -25
- data/lib/generators/social_stream/templates/public/javascripts/rails.js +0 -158
- data/lib/generators/social_stream/templates/public/javascripts/superfish.js +0 -121
- data/lib/generators/social_stream/templates/public/javascripts/ui.checkbox.js +0 -309
- data/lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js +0 -777
- data/lib/generators/social_stream/templates/public/stylesheets/default/activities.css +0 -72
- data/lib/generators/social_stream/templates/public/stylesheets/default/avatars.css +0 -79
- data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +0 -194
- data/lib/generators/social_stream/templates/public/stylesheets/default/carousel.css +0 -23
- data/lib/generators/social_stream/templates/public/stylesheets/default/contacts.css +0 -88
- data/lib/generators/social_stream/templates/public/stylesheets/default/fcbkComplete.css +0 -44
- data/lib/generators/social_stream/templates/public/stylesheets/default/footer.css +0 -26
- data/lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css +0 -54
- data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +0 -209
- data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +0 -45
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/fcbkcomplete/close.gif +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/loading.gif +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css +0 -15
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery-ui.css +0 -620
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css +0 -35
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.fileupload-ui.css +0 -73
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.ui.slider.css +0 -24
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.ui.slidertheme.css +0 -32
- data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +0 -27
- data/lib/generators/social_stream/templates/public/stylesheets/default/messages.css +0 -126
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.7.3.custom.css +0 -405
- data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.8.4.custom.css +0 -572
- data/lib/generators/social_stream/templates/public/stylesheets/default/spheres.css +0 -226
- data/lib/generators/social_stream/templates/relations.yml +0 -43
- data/lib/paperclip/social_stream.rb +0 -6
- data/lib/social_stream/ability.rb +0 -83
- data/lib/social_stream/controllers/helpers.rb +0 -83
- data/lib/social_stream/models/object.rb +0 -77
- data/lib/social_stream/models/subject.rb +0 -114
- data/lib/social_stream/models/supertype.rb +0 -44
- data/lib/social_stream/populate.rb +0 -26
- data/lib/social_stream/rails.rb +0 -89
- data/lib/social_stream/test_helpers.rb +0 -11
- data/lib/social_stream/test_helpers/controllers.rb +0 -119
- data/lib/tasks/db/populate.rake +0 -194
- data/spec/controllers/comments_controller_spec.rb +0 -42
- data/spec/controllers/contacts_controller_spec.rb +0 -41
- data/spec/controllers/groups_controller_spec.rb +0 -136
- data/spec/controllers/home_controller_spec.rb +0 -39
- data/spec/controllers/likes_controller_spec.rb +0 -29
- data/spec/controllers/permissions_controller_spec.rb +0 -46
- data/spec/controllers/posts_controller_spec.rb +0 -129
- data/spec/controllers/profiles_controller_spec.rb +0 -102
- data/spec/controllers/relation_customs_controller_spec.rb +0 -133
- data/spec/controllers/representations_spec.rb +0 -74
- data/spec/controllers/spheres_controller_spec.rb +0 -108
- data/spec/controllers/subjects_controller.rb +0 -14
- data/spec/controllers/users_controller_spec.rb +0 -74
- data/spec/factories/activity.rb +0 -10
- data/spec/factories/actor.rb +0 -5
- data/spec/factories/comment.rb +0 -4
- data/spec/factories/group.rb +0 -4
- data/spec/factories/post.rb +0 -4
- data/spec/factories/relation_custom.rb +0 -4
- data/spec/factories/sphere.rb +0 -5
- data/spec/factories/tie.rb +0 -37
- data/spec/factories/user.rb +0 -6
- data/spec/models/activity_spec.rb +0 -365
- data/spec/models/actor_spec.rb +0 -19
- data/spec/models/group_spec.rb +0 -12
- data/spec/models/like_spec.rb +0 -68
- data/spec/models/post_spec.rb +0 -33
- data/spec/models/profile_spec.rb +0 -39
- data/spec/models/relation_custom_spec.rb +0 -14
- data/spec/models/tie_activity_spec.rb +0 -109
- data/spec/models/tie_spec.rb +0 -166
- data/spec/models/user_spec.rb +0 -22
@@ -1,777 +0,0 @@
|
|
1
|
-
;(function($) {
|
2
|
-
/*
|
3
|
-
* ui.dropdownchecklist
|
4
|
-
*
|
5
|
-
* Copyright (c) 2008-2010 Adrian Tosca, Copyright (c) 2010 Ittrium LLC
|
6
|
-
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
7
|
-
* and GPL (GPL-LICENSE.txt) licenses.
|
8
|
-
*
|
9
|
-
*/
|
10
|
-
// The dropdown check list jQuery plugin transforms a regular select html element into a dropdown check list.
|
11
|
-
$.widget("ui.dropdownchecklist", {
|
12
|
-
// Some globlals
|
13
|
-
// $.ui.dropdownchecklist.gLastOpened - keeps track of last opened dropdowncheck list so we can close it
|
14
|
-
// $.ui.dropdownchecklist.gIDCounter - simple counter to provide a unique ID as needed
|
15
|
-
version: function() {
|
16
|
-
alert('DropDownCheckList v1.1');
|
17
|
-
},
|
18
|
-
// Creates the drop container that keeps the items and appends it to the document
|
19
|
-
_appendDropContainer: function( controlItem ) {
|
20
|
-
var wrapper = $("<div/>");
|
21
|
-
// the container is wrapped in a div
|
22
|
-
wrapper.addClass("ui-dropdownchecklist ui-dropdownchecklist-dropcontainer-wrapper");
|
23
|
-
wrapper.addClass("ui-widget");
|
24
|
-
// assign an id
|
25
|
-
wrapper.attr("id",controlItem.attr("id") + '-ddw');
|
26
|
-
// initially hidden
|
27
|
-
wrapper.css({ position: 'absolute', left: "-33000px", top: "-33000px" });
|
28
|
-
|
29
|
-
var container = $("<div/>"); // the actual container
|
30
|
-
container.addClass("ui-dropdownchecklist-dropcontainer ui-widget-content");
|
31
|
-
container.css("overflow-y", "auto");
|
32
|
-
wrapper.append(container);
|
33
|
-
|
34
|
-
// insert the dropdown after the master control to try to keep the tab order intact
|
35
|
-
// if you just add it to the end, tabbing out of the drop down takes focus off the page
|
36
|
-
// @todo 22Sept2010 - check if size calculation is thrown off if the parent of the
|
37
|
-
// selector is hidden. We may need to add it to the end of the document here,
|
38
|
-
// calculate the size, and then move it back into proper position???
|
39
|
-
//$(document.body).append(wrapper);
|
40
|
-
wrapper.insertAfter(controlItem);
|
41
|
-
|
42
|
-
// flag that tells if the drop container is shown or not
|
43
|
-
wrapper.isOpen = false;
|
44
|
-
return wrapper;
|
45
|
-
},
|
46
|
-
// Look for browser standard 'open' on a closed selector
|
47
|
-
_isDropDownKeyShortcut: function(e,keycode) {
|
48
|
-
return e.altKey && ($.ui.keyCode.DOWN == keycode);// Alt + Down Arrow
|
49
|
-
},
|
50
|
-
// Look for key that will tell us to close the open dropdown
|
51
|
-
_isDropDownCloseKey: function(e,keycode) {
|
52
|
-
return ($.ui.keyCode.ESCAPE == keycode) || ($.ui.keyCode.ENTER == keycode);
|
53
|
-
},
|
54
|
-
// Handler to change the active focus based on a keystroke, moving some count of
|
55
|
-
// items from the element that has the current focus
|
56
|
-
_keyFocusChange: function(target,delta,limitToItems) {
|
57
|
-
// Find item with current focus
|
58
|
-
var focusables = $(":focusable");
|
59
|
-
var index = focusables.index(target);
|
60
|
-
if ( index >= 0 ) {
|
61
|
-
index += delta;
|
62
|
-
if ( limitToItems ) {
|
63
|
-
// Bound change to list of input elements
|
64
|
-
var allCheckboxes = this.dropWrapper.find("input:not([disabled])");
|
65
|
-
var firstIndex = focusables.index(allCheckboxes.get(0));
|
66
|
-
var lastIndex = focusables.index(allCheckboxes.get(allCheckboxes.length-1));
|
67
|
-
if ( index < firstIndex ) {
|
68
|
-
index = lastIndex;
|
69
|
-
} else if ( index > lastIndex ) {
|
70
|
-
index = firstIndex;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
focusables.get(index).focus();
|
74
|
-
}
|
75
|
-
},
|
76
|
-
// Look for navigation, open, close (wired to keyup)
|
77
|
-
_handleKeyboard: function(e) {
|
78
|
-
var self = this;
|
79
|
-
var keyCode = (e.keyCode || e.which);
|
80
|
-
if (!self.dropWrapper.isOpen && self._isDropDownKeyShortcut(e, keyCode)) {
|
81
|
-
// Key command to open the dropdown
|
82
|
-
e.stopImmediatePropagation();
|
83
|
-
self._toggleDropContainer(true);
|
84
|
-
} else if (self.dropWrapper.isOpen && self._isDropDownCloseKey(e, keyCode)) {
|
85
|
-
// Key command to close the dropdown (but we retain focus in the control)
|
86
|
-
e.stopImmediatePropagation();
|
87
|
-
self._toggleDropContainer(false);
|
88
|
-
self.controlSelector.focus();
|
89
|
-
} else if (self.dropWrapper.isOpen
|
90
|
-
&& (e.target.type == 'checkbox')
|
91
|
-
&& ((keyCode == $.ui.keyCode.DOWN) || (keyCode == $.ui.keyCode.UP)) ) {
|
92
|
-
// Up/Down to cycle throught the open items
|
93
|
-
e.stopImmediatePropagation();
|
94
|
-
self._keyFocusChange(e.target, (keyCode == $.ui.keyCode.DOWN) ? 1 : -1, true);
|
95
|
-
} else if (self.dropWrapper.isOpen && (keyCode == $.ui.keyCode.TAB) ) {
|
96
|
-
// I wanted to adjust normal 'tab' processing here, but research indicates
|
97
|
-
// that TAB key processing is NOT a cancelable event. You have to use a timer
|
98
|
-
// hack to pull the focus back to where you want it after browser tab
|
99
|
-
// processing completes. Not going to work for us.
|
100
|
-
//e.stopImmediatePropagation();
|
101
|
-
//self._keyFocusChange(e.target, (e.shiftKey) ? -1 : 1, true);
|
102
|
-
}
|
103
|
-
},
|
104
|
-
// Look for change of focus
|
105
|
-
_handleFocus: function(e,focusIn,forDropdown) {
|
106
|
-
var self = this;
|
107
|
-
if (forDropdown && !self.dropWrapper.isOpen) {
|
108
|
-
// if the focus changes when the control is NOT open, mark it to show where the focus is/is not
|
109
|
-
e.stopImmediatePropagation();
|
110
|
-
if (focusIn) {
|
111
|
-
self.controlSelector.addClass("ui-state-hover");
|
112
|
-
if ($.ui.dropdownchecklist.gLastOpened != null) {
|
113
|
-
$.ui.dropdownchecklist.gLastOpened._toggleDropContainer( false );
|
114
|
-
}
|
115
|
-
} else {
|
116
|
-
self.controlSelector.removeClass("ui-state-hover");
|
117
|
-
}
|
118
|
-
} else if (!forDropdown && !focusIn) {
|
119
|
-
// The dropdown is open, and an item (NOT the dropdown) has just lost the focus.
|
120
|
-
// we really need a reliable method to see who has the focus as we process the blur,
|
121
|
-
// but that mechanism does not seem to exist. Instead we rely on a delay before
|
122
|
-
// posting the blur, with a focus event cancelling it before the delay expires.
|
123
|
-
if ( e != null ) { e.stopImmediatePropagation(); }
|
124
|
-
self.controlSelector.removeClass("ui-state-hover");
|
125
|
-
self._toggleDropContainer( false );
|
126
|
-
}
|
127
|
-
},
|
128
|
-
// Clear the pending change of focus, which keeps us 'in' the control
|
129
|
-
_cancelBlur: function(e) {
|
130
|
-
var self = this;
|
131
|
-
if (self.blurringItem != null) {
|
132
|
-
clearTimeout(self.blurringItem);
|
133
|
-
self.blurringItem = null;
|
134
|
-
}
|
135
|
-
},
|
136
|
-
// Creates the control that will replace the source select and appends it to the document
|
137
|
-
// The control resembles a regular select with single selection
|
138
|
-
_appendControl: function() {
|
139
|
-
var self = this, sourceSelect = this.sourceSelect, options = this.options;
|
140
|
-
|
141
|
-
// the control is wrapped in a basic container
|
142
|
-
var wrapper = $("<span/>");
|
143
|
-
wrapper.addClass("ui-dropdownchecklist ui-dropdownchecklist-selector-wrapper ui-widget");
|
144
|
-
wrapper.css({ cursor: "default", overflow: "hidden" });
|
145
|
-
|
146
|
-
// assign an ID
|
147
|
-
var baseID = sourceSelect.attr("id");
|
148
|
-
if ((baseID == null) || (baseID == "")) {
|
149
|
-
baseID = "ddcl-" + $.ui.dropdownchecklist.gIDCounter++;
|
150
|
-
} else {
|
151
|
-
baseID = "ddcl-" + baseID;
|
152
|
-
}
|
153
|
-
wrapper.attr("id",baseID);
|
154
|
-
|
155
|
-
// the actual control which you can style
|
156
|
-
// inline-block needed to enable 'width' but has interesting problems cross browser
|
157
|
-
var control = $("<span/>");
|
158
|
-
control.addClass("ui-dropdownchecklist-selector ui-state-default");
|
159
|
-
control.css( { display: "inline-block", overflow: "hidden", 'white-space': 'nowrap'} );
|
160
|
-
// Setting a tab index means we are interested in the tab sequence
|
161
|
-
var tabIndex = sourceSelect.attr("tabIndex");
|
162
|
-
if ( tabIndex == null ) {
|
163
|
-
tabIndex = 0;
|
164
|
-
} else {
|
165
|
-
tabIndex = parseInt(tabIndex);
|
166
|
-
if ( tabIndex < 0 ) {
|
167
|
-
tabIndex = 0;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
control.attr("tabIndex", tabIndex);
|
171
|
-
control.keyup(function(e) {self._handleKeyboard(e);});
|
172
|
-
control.focus(function(e) {self._handleFocus(e,true,true);});
|
173
|
-
control.blur(function(e) {self._handleFocus(e,false,true);});
|
174
|
-
wrapper.append(control);
|
175
|
-
|
176
|
-
// the optional icon (which is inherently a block)
|
177
|
-
if (options.icon != null) {
|
178
|
-
var iconPlacement = (options.icon.placement == null) ? "left" : options.icon.placement;
|
179
|
-
var anIcon = $("<div/>");
|
180
|
-
anIcon.addClass("ui-icon");
|
181
|
-
anIcon.addClass( (options.icon.toOpen != null) ? options.icon.toOpen : "ui-icon-triangle-1-e");
|
182
|
-
anIcon.css({ 'float': iconPlacement });
|
183
|
-
control.append(anIcon);
|
184
|
-
}
|
185
|
-
// the text container keeps the control text that is built from the selected (checked) items
|
186
|
-
// inline-block needed to enable 'width' but has interesting problems cross browser
|
187
|
-
var textContainer = $("<span/>");
|
188
|
-
textContainer.addClass("ui-dropdownchecklist-text");
|
189
|
-
textContainer.css( { display: "inline-block", 'white-space': "nowrap", overflow: "hidden" } );
|
190
|
-
control.append(textContainer);
|
191
|
-
|
192
|
-
// add the hover styles to the control
|
193
|
-
wrapper.hover(
|
194
|
-
function() {
|
195
|
-
if (!self.disabled) {
|
196
|
-
control.addClass("ui-state-hover");
|
197
|
-
}
|
198
|
-
}
|
199
|
-
, function() {
|
200
|
-
if (!self.disabled) {
|
201
|
-
control.removeClass("ui-state-hover");
|
202
|
-
}
|
203
|
-
}
|
204
|
-
);
|
205
|
-
// clicking on the control toggles the drop container
|
206
|
-
wrapper.click(function(event) {
|
207
|
-
if (!self.disabled) {
|
208
|
-
event.stopImmediatePropagation();
|
209
|
-
self._toggleDropContainer( !self.dropWrapper.isOpen );
|
210
|
-
}
|
211
|
-
});
|
212
|
-
wrapper.insertAfter(sourceSelect);
|
213
|
-
|
214
|
-
// Watch for a window resize and adjust the control if open
|
215
|
-
$(window).resize(function() {
|
216
|
-
if (!self.disabled && self.dropWrapper.isOpen) {
|
217
|
-
// Reopen yourself to get the position right
|
218
|
-
self._toggleDropContainer(true);
|
219
|
-
}
|
220
|
-
});
|
221
|
-
return wrapper;
|
222
|
-
},
|
223
|
-
// Creates a drop item that coresponds to an option element in the source select
|
224
|
-
_createDropItem: function(index, tabIndex, value, text, checked, disabled, indent) {
|
225
|
-
var self = this, options = this.options, sourceSelect = this.sourceSelect, controlWrapper = this.controlWrapper;
|
226
|
-
// the item contains a div that contains a checkbox input and a lable for the text
|
227
|
-
// the div
|
228
|
-
var item = $("<div/>");
|
229
|
-
item.addClass("ui-dropdownchecklist-item");
|
230
|
-
item.css({'white-space': "nowrap"});
|
231
|
-
var checkedString = checked ? ' checked="checked"' : '';
|
232
|
-
var classString = disabled ? ' class="inactive"' : ' class="active"';
|
233
|
-
|
234
|
-
// generated id must be a bit unique to keep from colliding
|
235
|
-
var idBase = controlWrapper.attr("id");
|
236
|
-
var id = idBase + '-i' + index;
|
237
|
-
var checkBox;
|
238
|
-
|
239
|
-
// all items start out disabled to keep them out of the tab order
|
240
|
-
if (self.isMultiple) { // the checkbox
|
241
|
-
checkBox = $('<input disabled type="checkbox" id="' + id + '"' + checkedString + classString + ' tabindex="' + tabIndex + '" />');
|
242
|
-
} else { // the radiobutton
|
243
|
-
checkBox = $('<input disabled type="radio" id="' + id + '" name="' + idBase + '"' + checkedString + classString + ' tabindex="' + tabIndex + '" />');
|
244
|
-
}
|
245
|
-
checkBox = checkBox.attr("index", index).val(value);
|
246
|
-
item.append(checkBox);
|
247
|
-
|
248
|
-
// the text
|
249
|
-
var label = $("<label for=" + id + "/>");
|
250
|
-
label.addClass("ui-dropdownchecklist-text");
|
251
|
-
label.css({ cursor: "default" });
|
252
|
-
label.text(text);
|
253
|
-
if (indent) {
|
254
|
-
item.addClass("ui-dropdownchecklist-indent");
|
255
|
-
}
|
256
|
-
item.addClass("ui-state-default");
|
257
|
-
if (disabled) {
|
258
|
-
item.addClass("ui-state-disabled");
|
259
|
-
}
|
260
|
-
label.click(function(e) {e.stopImmediatePropagation();});
|
261
|
-
item.append(label);
|
262
|
-
|
263
|
-
// active items display themselves with hover
|
264
|
-
item.hover(
|
265
|
-
function(e) {
|
266
|
-
var anItem = $(this);
|
267
|
-
if (!anItem.hasClass("ui-state-disabled")) { anItem.addClass("ui-state-hover"); }
|
268
|
-
}
|
269
|
-
, function(e) {
|
270
|
-
var anItem = $(this);
|
271
|
-
anItem.removeClass("ui-state-hover");
|
272
|
-
}
|
273
|
-
);
|
274
|
-
// clicking on the checkbox synchronizes the source select
|
275
|
-
checkBox.click(function(e) {
|
276
|
-
var aCheckBox = $(this);
|
277
|
-
e.stopImmediatePropagation();
|
278
|
-
if (aCheckBox.hasClass("active") ) {
|
279
|
-
// Active checkboxes take active action
|
280
|
-
self._syncSelected(aCheckBox);
|
281
|
-
self.sourceSelect.trigger("change", 'ddcl_internal');
|
282
|
-
if (!self.isMultiple && options.closeRadioOnClick) {
|
283
|
-
self._toggleDropContainer(false);
|
284
|
-
}
|
285
|
-
}
|
286
|
-
});
|
287
|
-
// we are interested in the focus leaving the check box
|
288
|
-
// but we need to detect the focus leaving one check box but
|
289
|
-
// entering another. There is no reliable way to detect who
|
290
|
-
// received the focus on a blur, so post the blur in the future,
|
291
|
-
// knowing we will cancel it if we capture the focus in a timely manner
|
292
|
-
// 23Sept2010 - unfortunately, IE 7+ and Chrome like to post a blur
|
293
|
-
// event to the current item with focus when the user
|
294
|
-
// clicks in the scroll bar. So if you have a scrollable
|
295
|
-
// dropdown with focus on an item, clicking in the scroll
|
296
|
-
// will close the drop down.
|
297
|
-
// I have no solution for blur processing at this time.
|
298
|
-
/*********
|
299
|
-
var timerFunction = function(){
|
300
|
-
// I had a hell of a time getting setTimeout to fire this, do not try to
|
301
|
-
// define it within the blur function
|
302
|
-
try { self._handleFocus(null,false,false); } catch(ex){ alert('timer failed: '+ex);}
|
303
|
-
};
|
304
|
-
checkBox.blur(function(e) {
|
305
|
-
self.blurringItem = setTimeout( timerFunction, 200 );
|
306
|
-
});
|
307
|
-
checkBox.focus(function(e) {self._cancelBlur();});
|
308
|
-
**********/
|
309
|
-
// check/uncheck the item on clicks on the entire item div
|
310
|
-
item.click(function(e) {
|
311
|
-
var anItem = $(this);
|
312
|
-
e.stopImmediatePropagation();
|
313
|
-
if (!anItem.hasClass("ui-state-disabled") ) {
|
314
|
-
// check/uncheck the underlying control
|
315
|
-
var aCheckBox = anItem.find("input");
|
316
|
-
var checked = aCheckBox.attr("checked");
|
317
|
-
aCheckBox.attr("checked", !checked);
|
318
|
-
self._syncSelected(aCheckBox);
|
319
|
-
self.sourceSelect.trigger("change", 'ddcl_internal');
|
320
|
-
if (!checked && !self.isMultiple && options.closeRadioOnClick) {
|
321
|
-
self._toggleDropContainer(false);
|
322
|
-
}
|
323
|
-
} else {
|
324
|
-
// retain the focus even if disabled
|
325
|
-
anItem.focus();
|
326
|
-
self._cancelBlur();
|
327
|
-
}
|
328
|
-
});
|
329
|
-
// do not let the focus wander around
|
330
|
-
item.focus(function(e) {
|
331
|
-
var anItem = $(this);
|
332
|
-
e.stopImmediatePropagation();
|
333
|
-
});
|
334
|
-
item.keyup(function(e) {self._handleKeyboard(e);});
|
335
|
-
return item;
|
336
|
-
},
|
337
|
-
_createGroupItem: function(text,disabled) {
|
338
|
-
var self = this;
|
339
|
-
var group = $("<div />");
|
340
|
-
group.addClass("ui-dropdownchecklist-group ui-widget-header");
|
341
|
-
if (disabled) {
|
342
|
-
group.addClass("ui-state-disabled");
|
343
|
-
}
|
344
|
-
group.css({'white-space': "nowrap"});
|
345
|
-
|
346
|
-
var label = $("<span/>");
|
347
|
-
label.addClass("ui-dropdownchecklist-text");
|
348
|
-
label.css( { cursor: "default" });
|
349
|
-
label.text(text);
|
350
|
-
group.append(label);
|
351
|
-
|
352
|
-
// anything interesting when you click the group???
|
353
|
-
group.click(function(e) {
|
354
|
-
var aGroup= $(this);
|
355
|
-
e.stopImmediatePropagation();
|
356
|
-
// retain the focus even if no action is taken
|
357
|
-
aGroup.focus();
|
358
|
-
self._cancelBlur();
|
359
|
-
});
|
360
|
-
// do not let the focus wander around
|
361
|
-
group.focus(function(e) {
|
362
|
-
var aGroup = $(this);
|
363
|
-
e.stopImmediatePropagation();
|
364
|
-
});
|
365
|
-
return group;
|
366
|
-
},
|
367
|
-
// Creates the drop items and appends them to the drop container
|
368
|
-
// Also calculates the size needed by the drop container and returns it
|
369
|
-
_appendItems: function() {
|
370
|
-
var self = this, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
|
371
|
-
var dropContainerDiv = dropWrapper.find(".ui-dropdownchecklist-dropcontainer");
|
372
|
-
sourceSelect.children().each(function(index) { // when the select has groups
|
373
|
-
var opt = $(this);
|
374
|
-
if (opt.is("option")) {
|
375
|
-
self._appendOption(opt, dropContainerDiv, index, false, false);
|
376
|
-
} else if (opt.is("optgroup")) {
|
377
|
-
var disabled = opt.attr("disabled");
|
378
|
-
var text = opt.attr("label");
|
379
|
-
if (text != "") {
|
380
|
-
var group = self._createGroupItem(text,disabled);
|
381
|
-
dropContainerDiv.append(group);
|
382
|
-
}
|
383
|
-
self._appendOptions(opt, dropContainerDiv, index, true, disabled);
|
384
|
-
}
|
385
|
-
});
|
386
|
-
var divWidth = dropContainerDiv.outerWidth();
|
387
|
-
var divHeight = dropContainerDiv.outerHeight();
|
388
|
-
return { width: divWidth, height: divHeight };
|
389
|
-
},
|
390
|
-
_appendOptions: function(parent, container, parentIndex, indent, forceDisabled) {
|
391
|
-
var self = this;
|
392
|
-
parent.children("option").each(function(index) {
|
393
|
-
var option = $(this);
|
394
|
-
var childIndex = (parentIndex + "." + index);
|
395
|
-
self._appendOption(option, container, childIndex, indent, forceDisabled);
|
396
|
-
});
|
397
|
-
},
|
398
|
-
_appendOption: function(option, container, index, indent, forceDisabled) {
|
399
|
-
var self = this;
|
400
|
-
var text = option.text();
|
401
|
-
var value = option.val();
|
402
|
-
var selected = option.attr("selected");
|
403
|
-
var disabled = (forceDisabled || option.attr("disabled"));
|
404
|
-
// Use the same tab index as the selector replacement
|
405
|
-
var tabIndex = self.controlSelector.attr("tabindex");
|
406
|
-
var item = self._createDropItem(index, tabIndex, value, text, selected, disabled, indent);
|
407
|
-
container.append(item);
|
408
|
-
},
|
409
|
-
// Synchronizes the items checked and the source select
|
410
|
-
// When firstItemChecksAll option is active also synchronizes the checked items
|
411
|
-
// senderCheckbox parameters is the checkbox input that generated the synchronization
|
412
|
-
_syncSelected: function(senderCheckbox) {
|
413
|
-
var self = this, options = this.options, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
|
414
|
-
var allCheckboxes = dropWrapper.find("input.active");
|
415
|
-
if (options.firstItemChecksAll) {
|
416
|
-
// if firstItemChecksAll is true, check all checkboxes if the first one is checked
|
417
|
-
if ((senderCheckbox != null) && (senderCheckbox.attr("index") == 0)) {
|
418
|
-
allCheckboxes.attr("checked", senderCheckbox.attr("checked"));
|
419
|
-
} else {
|
420
|
-
// check the first checkbox if all the other checkboxes are checked
|
421
|
-
var allChecked = true;
|
422
|
-
var firstCheckbox = null;
|
423
|
-
allCheckboxes.each(function(index) {
|
424
|
-
if (index > 0) {
|
425
|
-
var checked = $(this).attr("checked");
|
426
|
-
if (!checked) { allChecked = false; }
|
427
|
-
} else {
|
428
|
-
firstCheckbox = $(this);
|
429
|
-
}
|
430
|
-
});
|
431
|
-
if ( firstCheckbox != null ) {
|
432
|
-
firstCheckbox.attr("checked", allChecked );
|
433
|
-
}
|
434
|
-
}
|
435
|
-
}
|
436
|
-
// do the actual synch with the source select
|
437
|
-
allCheckboxes = dropWrapper.find("input");
|
438
|
-
var selectOptions = sourceSelect.get(0).options;
|
439
|
-
allCheckboxes.each(function(index) {
|
440
|
-
$(selectOptions[index]).attr("selected", $(this).attr("checked"));
|
441
|
-
});
|
442
|
-
// update the text shown in the control
|
443
|
-
self._updateControlText();
|
444
|
-
|
445
|
-
// Ensure the focus stays pointing where the user is working
|
446
|
-
if ( senderCheckbox != null) { senderCheckbox.focus(); }
|
447
|
-
},
|
448
|
-
_sourceSelectChangeHandler: function(event) {
|
449
|
-
var self = this, dropWrapper = this.dropWrapper;
|
450
|
-
dropWrapper.find("input").val(self.sourceSelect.val());
|
451
|
-
|
452
|
-
// update the text shown in the control
|
453
|
-
self._updateControlText();
|
454
|
-
},
|
455
|
-
// Updates the text shown in the control depending on the checked (selected) items
|
456
|
-
_updateControlText: function() {
|
457
|
-
var self = this, sourceSelect = this.sourceSelect, options = this.options, controlWrapper = this.controlWrapper;
|
458
|
-
var firstOption = sourceSelect.find("option:first");
|
459
|
-
var selectOptions = sourceSelect.find("option");
|
460
|
-
var text = self._formatText(selectOptions, options.firstItemChecksAll, firstOption);
|
461
|
-
var controlLabel = controlWrapper.find(".ui-dropdownchecklist-text");
|
462
|
-
|
463
|
-
//controlLabel.html(text);
|
464
|
-
controlLabel.html(securityImage);
|
465
|
-
controlLabel.append(" ");
|
466
|
-
controlLabel.append(downImage);
|
467
|
-
//controlLabel.attr("title", text);
|
468
|
-
controlLabel.attr("title", "security");
|
469
|
-
|
470
|
-
},
|
471
|
-
// Formats the text that is shown in the control
|
472
|
-
_formatText: function(selectOptions, firstItemChecksAll, firstOption) {
|
473
|
-
var text;
|
474
|
-
if ( $.isFunction(this.options.textFormatFunction) ) {
|
475
|
-
// let the callback do the formatting, but do not allow it to fail
|
476
|
-
try {
|
477
|
-
text = this.options.textFormatFunction(selectOptions);
|
478
|
-
} catch(ex) {
|
479
|
-
alert( 'textFormatFunction failed: ' + ex );
|
480
|
-
}
|
481
|
-
} else if (firstItemChecksAll && (firstOption != null) && firstOption.attr("selected")) {
|
482
|
-
// just set the text from the first item
|
483
|
-
text = firstOption.text();
|
484
|
-
} else {
|
485
|
-
// concatenate the text from the checked items
|
486
|
-
text = "";
|
487
|
-
selectOptions.each(function() {
|
488
|
-
if ($(this).attr("selected")) {
|
489
|
-
if ( text != "" ) { text += ", "; }
|
490
|
-
text += $(this).text();
|
491
|
-
}
|
492
|
-
});
|
493
|
-
if ( text == "" ) {
|
494
|
-
text = (this.options.emptyText != null) ? this.options.emptyText : " ";
|
495
|
-
}
|
496
|
-
}
|
497
|
-
return text;
|
498
|
-
},
|
499
|
-
// Shows and hides the drop container
|
500
|
-
_toggleDropContainer: function( makeOpen ) {
|
501
|
-
var self = this;
|
502
|
-
// hides the last shown drop container
|
503
|
-
var hide = function(instance) {
|
504
|
-
if ((instance != null) && instance.dropWrapper.isOpen ){
|
505
|
-
instance.dropWrapper.isOpen = false;
|
506
|
-
$.ui.dropdownchecklist.gLastOpened = null;
|
507
|
-
|
508
|
-
var config = instance.options;
|
509
|
-
instance.dropWrapper.css({
|
510
|
-
top: "-33000px",
|
511
|
-
left: "-33000px"
|
512
|
-
});
|
513
|
-
var aControl = instance.controlSelector;
|
514
|
-
aControl.removeClass("ui-state-active");
|
515
|
-
aControl.removeClass("ui-state-hover");
|
516
|
-
|
517
|
-
var anIcon = instance.controlWrapper.find(".ui-icon");
|
518
|
-
if ( anIcon.length > 0 ) {
|
519
|
-
anIcon.removeClass( (config.icon.toClose != null) ? config.icon.toClose : "ui-icon-triangle-1-s");
|
520
|
-
anIcon.addClass( (config.icon.toOpen != null) ? config.icon.toOpen : "ui-icon-triangle-1-e");
|
521
|
-
}
|
522
|
-
$(document).unbind("click", hide);
|
523
|
-
|
524
|
-
// keep the items out of the tab order by disabling them
|
525
|
-
instance.dropWrapper.find("input.active").attr("disabled","disabled");
|
526
|
-
|
527
|
-
// the following blur just does not fire??? because it is hidden??? because it does not have focus???
|
528
|
-
//instance.sourceSelect.trigger("blur");
|
529
|
-
//instance.sourceSelect.triggerHandler("blur");
|
530
|
-
if($.isFunction(config.onComplete)) { try {
|
531
|
-
config.onComplete.call(instance,instance.sourceSelect.get(0));
|
532
|
-
} catch(ex) {
|
533
|
-
alert( 'callback failed: ' + ex );
|
534
|
-
}}
|
535
|
-
}
|
536
|
-
};
|
537
|
-
// shows the given drop container instance
|
538
|
-
var show = function(instance) {
|
539
|
-
if ( !instance.dropWrapper.isOpen ) {
|
540
|
-
instance.dropWrapper.isOpen = true;
|
541
|
-
$.ui.dropdownchecklist.gLastOpened = instance;
|
542
|
-
|
543
|
-
var config = instance.options;
|
544
|
-
instance.dropWrapper.css({
|
545
|
-
top: instance.controlWrapper.offset().top + instance.controlWrapper.outerHeight() + "px",
|
546
|
-
left: instance.controlWrapper.offset().left + "px"
|
547
|
-
});
|
548
|
-
var ancestorsZIndexes = instance.controlWrapper.parents().map(
|
549
|
-
function() {
|
550
|
-
var zIndex = $(this).css("z-index");
|
551
|
-
return isNaN(zIndex) ? 0 : zIndex; }
|
552
|
-
).get();
|
553
|
-
var parentZIndex = Math.max.apply(Math, ancestorsZIndexes);
|
554
|
-
if (parentZIndex > 0) {
|
555
|
-
instance.dropWrapper.css({
|
556
|
-
zIndex: (parentZIndex+1)
|
557
|
-
});
|
558
|
-
}
|
559
|
-
var aControl = instance.controlSelector;
|
560
|
-
aControl.addClass("ui-state-active");
|
561
|
-
aControl.removeClass("ui-state-hover");
|
562
|
-
|
563
|
-
var anIcon = instance.controlWrapper.find(".ui-icon");
|
564
|
-
if ( anIcon.length > 0 ) {
|
565
|
-
anIcon.removeClass( (config.icon.toOpen != null) ? config.icon.toOpen : "ui-icon-triangle-1-e");
|
566
|
-
anIcon.addClass( (config.icon.toClose != null) ? config.icon.toClose : "ui-icon-triangle-1-s");
|
567
|
-
}
|
568
|
-
$(document).bind("click", function(e) {hide(instance);} );
|
569
|
-
|
570
|
-
// insert the items back into the tab order by enabling all active ones
|
571
|
-
var activeItems = instance.dropWrapper.find("input.active");
|
572
|
-
activeItems.removeAttr("disabled");
|
573
|
-
|
574
|
-
// we want the focus on the first active input item
|
575
|
-
var firstActiveItem = activeItems.get(0);
|
576
|
-
if ( firstActiveItem != null ) {
|
577
|
-
firstActiveItem.focus();
|
578
|
-
}
|
579
|
-
}
|
580
|
-
};
|
581
|
-
if ( makeOpen ) {
|
582
|
-
hide($.ui.dropdownchecklist.gLastOpened);
|
583
|
-
show(self);
|
584
|
-
} else {
|
585
|
-
hide(self);
|
586
|
-
}
|
587
|
-
},
|
588
|
-
// Set the size of the control and of the drop container
|
589
|
-
_setSize: function(dropCalculatedSize) {
|
590
|
-
var options = this.options, dropWrapper = this.dropWrapper, controlWrapper = this.controlWrapper;
|
591
|
-
|
592
|
-
// use the width from config options if set, otherwise set the same width as the drop container
|
593
|
-
var controlWidth = dropCalculatedSize.width;
|
594
|
-
if (options.width != null) {
|
595
|
-
controlWidth = parseInt(options.width);
|
596
|
-
} else if (options.minWidth != null) {
|
597
|
-
var minWidth = parseInt(options.minWidth);
|
598
|
-
// if the width is too small (usually when there are no items) set a minimum width
|
599
|
-
if (controlWidth < minWidth) {
|
600
|
-
controlWidth = minWidth;
|
601
|
-
}
|
602
|
-
}
|
603
|
-
var control = this.controlSelector;
|
604
|
-
control.css({ width: controlWidth + "px" });
|
605
|
-
|
606
|
-
// if we size the text, then Firefox places icons to the right properly
|
607
|
-
// and we do not wrap on long lines
|
608
|
-
var controlText = control.find(".ui-dropdownchecklist-text");
|
609
|
-
var controlIcon = control.find(".ui-icon");
|
610
|
-
if ( controlIcon != null ) {
|
611
|
-
// Must be an inner/outer/border problem, but IE6 needs an extra bit of space
|
612
|
-
controlWidth -= (controlIcon.outerWidth() + 6);
|
613
|
-
controlText.css( { width: controlWidth + "px" } );
|
614
|
-
}
|
615
|
-
// Account for padding, borders, etc
|
616
|
-
controlWidth = controlWrapper.outerWidth();
|
617
|
-
|
618
|
-
// the drop container height can be set from options
|
619
|
-
var maxDropHeight = (options.maxDropHeight != null)
|
620
|
-
? parseInt(options.maxDropHeight)
|
621
|
-
: -1;
|
622
|
-
var dropHeight = ((maxDropHeight > 0) && (dropCalculatedSize.height > maxDropHeight))
|
623
|
-
? maxDropHeight
|
624
|
-
: dropCalculatedSize.height;
|
625
|
-
// ensure the drop container is not less than the control width (would be ugly)
|
626
|
-
var dropWidth = dropCalculatedSize.width < controlWidth ? controlWidth : dropCalculatedSize.width;
|
627
|
-
|
628
|
-
$(dropWrapper).css({
|
629
|
-
height: dropHeight + "px",
|
630
|
-
width: dropWidth + "px"
|
631
|
-
});
|
632
|
-
dropWrapper.find(".ui-dropdownchecklist-dropcontainer").css({
|
633
|
-
height: dropHeight + "px"
|
634
|
-
});
|
635
|
-
},
|
636
|
-
// Initializes the plugin
|
637
|
-
_init: function() {
|
638
|
-
var self = this, options = this.options;
|
639
|
-
if ( $.ui.dropdownchecklist.gIDCounter == null) {
|
640
|
-
$.ui.dropdownchecklist.gIDCounter = 1;
|
641
|
-
}
|
642
|
-
// item blurring relies on a cancelable timer
|
643
|
-
self.blurringItem = null;
|
644
|
-
|
645
|
-
// sourceSelect is the select on which the plugin is applied
|
646
|
-
var sourceSelect = self.element;
|
647
|
-
self.initialDisplay = sourceSelect.css("display");
|
648
|
-
sourceSelect.css("display", "none");
|
649
|
-
self.initialMultiple = sourceSelect.attr("multiple");
|
650
|
-
self.isMultiple = self.initialMultiple;
|
651
|
-
if (options.forceMultiple != null) { self.isMultiple = options.forceMultiple; }
|
652
|
-
sourceSelect.attr("multiple", true);
|
653
|
-
self.sourceSelect = sourceSelect;
|
654
|
-
|
655
|
-
// append the control that resembles a single selection select
|
656
|
-
var controlWrapper = self._appendControl();
|
657
|
-
self.controlWrapper = controlWrapper;
|
658
|
-
self.controlSelector = controlWrapper.find(".ui-dropdownchecklist-selector");
|
659
|
-
|
660
|
-
// create the drop container where the items are shown
|
661
|
-
var dropWrapper = self._appendDropContainer(controlWrapper);
|
662
|
-
self.dropWrapper = dropWrapper;
|
663
|
-
|
664
|
-
// append the items from the source select element
|
665
|
-
var dropCalculatedSize = self._appendItems();
|
666
|
-
|
667
|
-
// updates the text shown in the control
|
668
|
-
self._updateControlText(controlWrapper, dropWrapper, sourceSelect);
|
669
|
-
|
670
|
-
// set the sizes of control and drop container
|
671
|
-
self._setSize(dropCalculatedSize);
|
672
|
-
|
673
|
-
// look for possible auto-check needed on first item
|
674
|
-
if ( options.firstItemChecksAll ) {
|
675
|
-
self._syncSelected(null);
|
676
|
-
}
|
677
|
-
// BGIFrame for IE6
|
678
|
-
if (options.bgiframe && typeof self.dropWrapper.bgiframe == "function") {
|
679
|
-
self.dropWrapper.bgiframe();
|
680
|
-
}
|
681
|
-
// listen for change events on the source select element
|
682
|
-
// ensure we avoid processing internally triggered changes
|
683
|
-
self.sourceSelect.change(function(event, eventName) {
|
684
|
-
if (eventName != 'ddcl_internal') {
|
685
|
-
self._sourceSelectChangeHandler(event);
|
686
|
-
}
|
687
|
-
});
|
688
|
-
},
|
689
|
-
// Refresh the disable and check state from the underlying control
|
690
|
-
_refreshOption: function(item,disabled,selected) {
|
691
|
-
var aParent = item.parent();
|
692
|
-
// account for enabled/disabled
|
693
|
-
if ( disabled ) {
|
694
|
-
item.attr("disabled","disabled");
|
695
|
-
item.removeClass("active");
|
696
|
-
item.addClass("inactive");
|
697
|
-
aParent.addClass("ui-state-disabled");
|
698
|
-
} else {
|
699
|
-
item.removeAttr("disabled");
|
700
|
-
item.removeClass("inactive");
|
701
|
-
item.addClass("active");
|
702
|
-
aParent.removeClass("ui-state-disabled");
|
703
|
-
}
|
704
|
-
// adjust the checkbox state
|
705
|
-
item.attr("checked",selected);
|
706
|
-
},
|
707
|
-
_refreshGroup: function(group,disabled) {
|
708
|
-
if ( disabled ) {
|
709
|
-
group.addClass("ui-state-disabled");
|
710
|
-
} else {
|
711
|
-
group.removeClass("ui-state-disabled");
|
712
|
-
}
|
713
|
-
},
|
714
|
-
refresh: function() {
|
715
|
-
var self = this, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
|
716
|
-
|
717
|
-
var allCheckBoxes = dropWrapper.find("input");
|
718
|
-
var allGroups = dropWrapper.find(".ui-dropdownchecklist-group");
|
719
|
-
|
720
|
-
var groupCount = 0;
|
721
|
-
var optionCount = 0;
|
722
|
-
sourceSelect.children().each(function(index) {
|
723
|
-
var opt = $(this);
|
724
|
-
var disabled = opt.attr("disabled");
|
725
|
-
if (opt.is("option")) {
|
726
|
-
var selected = opt.attr("selected");
|
727
|
-
var anItem = $(allCheckBoxes[optionCount]);
|
728
|
-
self._refreshOption(anItem, disabled, selected);
|
729
|
-
optionCount += 1;
|
730
|
-
} else if (opt.is("optgroup")) {
|
731
|
-
var text = opt.attr("label");
|
732
|
-
if (text != "") {
|
733
|
-
var aGroup = $(allGroups[groupCount]);
|
734
|
-
self._refreshGroup(aGroup, disabled);
|
735
|
-
groupCount += 1;
|
736
|
-
}
|
737
|
-
opt.children("option").each(function(subindex) {
|
738
|
-
var subopt = $(this);
|
739
|
-
var subdisabled = (disabled || subopt.attr("disabled"));
|
740
|
-
var selected = subopt.attr("selected");
|
741
|
-
var subItem = $(allCheckBoxes[optionCount + subindex]);
|
742
|
-
self._refreshOption(subItem, subdisabled, selected );
|
743
|
-
});
|
744
|
-
}
|
745
|
-
});
|
746
|
-
// update the text shown in the control
|
747
|
-
self._updateControlText();
|
748
|
-
},
|
749
|
-
enable: function() {
|
750
|
-
this.controlSelector.removeClass("ui-state-disabled");
|
751
|
-
this.disabled = false;
|
752
|
-
},
|
753
|
-
disable: function() {
|
754
|
-
this.controlSelector.addClass("ui-state-disabled");
|
755
|
-
this.disabled = true;
|
756
|
-
},
|
757
|
-
destroy: function() {
|
758
|
-
$.Widget.prototype.destroy.apply(this, arguments);
|
759
|
-
this.sourceSelect.css("display", this.initialDisplay);
|
760
|
-
this.sourceSelect.attr("multiple", this.initialMultiple);
|
761
|
-
this.controlWrapper.unbind().remove();
|
762
|
-
this.dropWrapper.remove();
|
763
|
-
}
|
764
|
-
});
|
765
|
-
|
766
|
-
$.extend($.ui.dropdownchecklist, {
|
767
|
-
defaults: {
|
768
|
-
width: null,
|
769
|
-
maxDropHeight: null,
|
770
|
-
firstItemChecksAll: false,
|
771
|
-
closeRadioOnClick: false,
|
772
|
-
minWidth: 50,
|
773
|
-
bgiframe: false
|
774
|
-
}
|
775
|
-
});
|
776
|
-
|
777
|
-
})(jQuery);
|