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,77 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
FCBKcomplete 2.7.5
|
3
|
-
- Jquery version required: 1.2.x, 1.3.x, 1.4.x
|
4
|
-
|
5
|
-
Based on TextboxList by Guillermo Rauch http://devthought.com/
|
6
|
-
|
7
|
-
Changelog:
|
8
|
-
- 2.00 new version of fcbkcomplete
|
9
|
-
|
10
|
-
- 2.01 fixed bugs & added features
|
11
|
-
fixed filter bug for preadded items
|
12
|
-
focus on the input after selecting tag
|
13
|
-
the element removed pressing backspace when the element is selected
|
14
|
-
input tag in the control has a border in IE7
|
15
|
-
added iterate over each match and apply the plugin separately
|
16
|
-
set focus on the input after selecting tag
|
17
|
-
|
18
|
-
- 2.02 fixed fist element selected bug
|
19
|
-
fixed defaultfilter error bug
|
20
|
-
|
21
|
-
- 2.5 removed selected="selected" attribute due ie bug
|
22
|
-
element search algorithm changed
|
23
|
-
better performance fix added
|
24
|
-
fixed many small bugs
|
25
|
-
onselect event added
|
26
|
-
onremove event added
|
27
|
-
|
28
|
-
- 2.6 ie6/7 support fix added
|
29
|
-
added new public method addItem due request
|
30
|
-
added new options "firstselected" that you can set true/false to select first element on dropdown list
|
31
|
-
autoexpand input element added
|
32
|
-
removeItem bug fixed
|
33
|
-
and many more bug fixed
|
34
|
-
fixed public method to use it $("elem").trigger("addItem",[{"title": "test", "value": "test"}]);
|
35
|
-
|
36
|
-
- 2.7 jquery 1.4 compability
|
37
|
-
item lock possability added by adding locked class to preadded option <option value="value" class="selected locked">text</option>
|
38
|
-
maximum item that can be added
|
39
|
-
|
40
|
-
- 2.7.1 bug fixed
|
41
|
-
ajax delay added thanks to http://github.com/dolorian
|
42
|
-
|
43
|
-
- 2.7.2 some minor bug fixed
|
44
|
-
minified version recompacted due some problems
|
45
|
-
|
46
|
-
- 2.7.3 event call fixed thanks to William Parry <williamparry!at!gmail.com>
|
47
|
-
|
48
|
-
- 2.7.4 standart event change call added on addItem, removeItem
|
49
|
-
preSet also check if item have "selected" attribute
|
50
|
-
addItem minor fix
|
51
|
-
|
52
|
-
- 2.7.5 event call removeItem fixed
|
53
|
-
new public method destroy added needed to remove fcbkcomplete element from dome
|
54
|
-
|
55
|
-
*/
|
56
|
-
/* Coded by: emposha <admin@emposha.com> */
|
57
|
-
/* Copyright: Emposha.com <http://www.emposha.com> - Distributed under MIT - Keep this message! */
|
58
|
-
|
59
|
-
/**
|
60
|
-
* json_url - url to fetch json object
|
61
|
-
* cache - use cache
|
62
|
-
* height - maximum number of element shown before scroll will apear
|
63
|
-
* newel - show typed text like a element
|
64
|
-
* firstselected - automaticly select first element from dropdown
|
65
|
-
* filter_case - case sensitive filter
|
66
|
-
* filter_selected - filter selected items from list
|
67
|
-
* complete_text - text for complete page
|
68
|
-
* maxshownitems - maximum numbers that will be shown at dropdown list (less better performance)
|
69
|
-
* onselect - fire event on item select
|
70
|
-
* onremove - fire event on item remove
|
71
|
-
* maxitimes - maximum items that can be added
|
72
|
-
* delay - delay between ajax request (bigger delay, lower server time request)
|
73
|
-
* addontab - add first visible element on tab or enter hit
|
74
|
-
* attachto - after this element fcbkcomplete insert own elements
|
75
|
-
*/
|
76
|
-
|
77
|
-
jQuery(function($){$.fn.fcbkcomplete=function(opt){return this.each(function(){function init(){createFCBK();preSet();addInput(0)}function createFCBK(){element.hide();element.attr("multiple","multiple");if(element.attr("name").indexOf("[]")==-1){element.attr("name",element.attr("name")+"[]")}holder=$(document.createElement("ul"));holder.attr("class","holder form_tag");if(options.attachto){if(typeof(options.attachto)=="object"){options.attachto.append(holder)}else{$(options.attachto).append(holder)}}else{element.after(holder)}complete=$(document.createElement("div"));complete.addClass("facebook-auto");complete.append('<div class="search_suggestion">'+options.complete_text+"</div>");complete.hover(function(){options.complete_hover=0},function(){options.complete_hover=1});feed=$(document.createElement("ul"));feed.attr("id",elemid+"_feed");feed.attr("class","search_suggestion");complete.prepend(feed);holder.after(complete);/*feed.css("width",complete.width())*/}function preSet(){element.children("option").each(function(i,option){option=$(option);if(option.hasClass("selected")){addItem(option.text(),option.val(),true,option.hasClass("locked"));option.attr("selected","selected")}cache.push({key:option.text(),value:option.val()});search_string+=""+(cache.length-1)+":"+option.text()+";"})}$(this).bind("addItem",function(event,data){addItem(data.title,data.value,0,0,0)});$(this).bind("removeItem",function(event,data){var item=holder.children('li[rel='+data.value+']');if(item.length){removeItem(item)}});$(this).bind("destroy",function(event,data){holder.remove();complete.remove();element.show()});function addItem(title,value,preadded,locked,focusme){if(!maxItems()){return false}var li=document.createElement("li");var txt=document.createTextNode(title);var aclose=document.createElement("a");var liclass="bit-box"+(locked?" locked":"");$(li).attr({"class":liclass,"rel":value});$(li).prepend(txt);$(aclose).attr({"class":"closebutton","href":"#"});li.appendChild(aclose);holder.append(li);$(aclose).click(function(){removeItem($(this).parent("li"));return false});if(!preadded){$("#"+elemid+"_annoninput").remove();var _item;addInput(focusme);if(element.children("option[value="+value+"]").length){_item=element.children("option[value="+value+"]");_item.get(0).setAttribute("selected","selected");_item.attr("selected","selected");if(!_item.hasClass("selected")){_item.addClass("selected")}}else{var _item=$(document.createElement("option"));_item.attr("value",value).get(0).setAttribute("selected","selected");_item.attr("value",value).attr("selected","selected");_item.attr("value",value).addClass("selected");_item.text(title);element.append(_item)}if(options.onselect){funCall(options.onselect,_item)}element.change()}holder.children("li.bit-box.deleted").removeClass("deleted");feed.hide()}function removeItem(item){if(!item.hasClass('locked')){item.fadeOut("fast");if(options.onremove){var _item=element.children("option[value="+item.attr("rel")+"]");funCall(options.onremove,_item)}element.children('option[value="'+item.attr("rel")+'"]').removeAttr("selected").removeClass("selected");item.remove();element.change();deleting=0}}function addInput(focusme){var li=$(document.createElement("li"));var input=$(document.createElement("input"));var getBoxTimeout=0;li.attr({"class":"bit-input","id":elemid+"_annoninput"});input.attr({"type":"text","class":"maininput","size":"1"});holder.append(li.append(input));input.focus(function(){complete.fadeIn("fast")});input.blur(function(){if(options.complete_hover){complete.fadeOut("fast")}else{input.focus()}});holder.click(function(){input.focus();if(feed.length&&input.val().length){feed.show()}else{feed.hide();complete.children(".default").show()}});input.keypress(function(event){if(event.keyCode==13){return false}input.attr("size",input.val().length+1)});input.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false}});input.keyup(function(event){var etext=xssPrevent(input.val());if(event.keyCode==8&&etext.length==0){feed.hide();if(!holder.children("li.bit-box:last").hasClass('locked')){if(holder.children("li.bit-box.deleted").length==0){holder.children("li.bit-box:last").addClass("deleted");return false}else{if(deleting){return}deleting=1;holder.children("li.bit-box.deleted").fadeOut("fast",function(){removeItem($(this));return false})}}}if(event.keyCode!=40&&event.keyCode!=38&&event.keyCode!=37&&event.keyCode!=39&&etext.length!=0){counter=0;if(options.json_url){if(options.cache&&json_cache){addMembers(etext);bindEvents()}else{getBoxTimeout++;var getBoxTimeoutValue=getBoxTimeout;setTimeout(function(){if(getBoxTimeoutValue!=getBoxTimeout)return;$.getJSON(options.json_url,{tag:etext},function(data){addMembers(etext,data);json_cache=true;bindEvents()})},options.delay)}}else{addMembers(etext);bindEvents()}complete.children(".default").hide();feed.show()}});if(focusme){setTimeout(function(){input.focus();complete.children(".default").show()},1)}}function addMembers(etext,data){feed.html('');if(!options.cache&&data!=null){cache=new Array();search_string=""}addTextItem(etext);if(data!=null&&data.length){$.each(data,function(i,val){cache.push({key:val.key,value:val.value});search_string+=""+(cache.length-1)+":"+val.key+";"})}var maximum=options.maxshownitems<cache.length?options.maxshownitems:cache.length;var filter="i";if(options.filter_case){filter=""}var myregexp,match;try{myregexp=eval('/(?:^|;)\\s*(\\d+)\\s*:[^;]*?'+etext+'[^;]*/g'+filter);match=myregexp.exec(search_string)}catch(ex){};var content='';while(match!=null&&maximum>0){var id=match[1];var object=cache[id];if(options.filter_selected&&element.children("option[value="+object.value+"]").hasClass("selected")){}else{content+='<li rel="'+object.value+'">'+itemIllumination(object.key,etext)+'</li>';counter++;maximum--}match=myregexp.exec(search_string)}feed.append(content);if(options.firstselected){focuson=feed.children("li:visible:first");focuson.addClass("auto-focus")}if(counter>options.height){feed.css({"height":(options.height*24)+"px","overflow":"auto"})}else{feed.css("height","auto")}}function itemIllumination(text,etext){if(options.filter_case){try{eval("var text = text.replace(/(.*)("+etext+")(.*)/gi,'$1<em>$2</em>$3');")}catch(ex){}}else{try{eval("var text = text.replace(/(.*)("+etext.toLowerCase()+")(.*)/gi,'$1<em>$2</em>$3');")}catch(ex){}}return text}function bindFeedEvent(){feed.children("li").mouseover(function(){feed.children("li").removeClass("auto-focus");$(this).addClass("auto-focus");focuson=$(this)});feed.children("li").mouseout(function(){$(this).removeClass("auto-focus");focuson=null})}function removeFeedEvent(){feed.children("li").unbind("mouseover");feed.children("li").unbind("mouseout");feed.mousemove(function(){bindFeedEvent();feed.unbind("mousemove")})}function bindEvents(){var maininput=$("#"+elemid+"_annoninput").children(".maininput");bindFeedEvent();feed.children("li").unbind("mousedown");feed.children("li").mousedown(function(){var option=$(this);addItem(option.text(),option.attr("rel"),0,0,1);feed.hide();complete.hide()});maininput.unbind("keydown");maininput.keydown(function(event){if(event.keyCode==191){event.preventDefault();return false}if(event.keyCode!=8){holder.children("li.bit-box.deleted").removeClass("deleted")}if((event.keyCode==13||event.keyCode==9)&&checkFocusOn()){var option=focuson;addItem(option.text(),option.attr("rel"),0,0,1);complete.hide();event.preventDefault();focuson=null;return false}if((event.keyCode==13||event.keyCode==9)&&!checkFocusOn()){if(options.newel){var value=xssPrevent($(this).val());addItem(value,value,0,0,1);complete.hide();event.preventDefault();focuson=null;return false}if(options.addontab){focuson=feed.children("li:visible:first");var option=focuson;addItem(option.text(),option.attr("rel"),0,0,1);complete.hide();event.preventDefault();focuson=null;return false}}if(event.keyCode==40){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:first");feed.get(0).scrollTop=0}else{focuson.removeClass("auto-focus");focuson=focuson.nextAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((prev>Math.round(options.height/2)||next<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2))}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus")}if(event.keyCode==38){removeFeedEvent();if(focuson==null||focuson.length==0){focuson=feed.children("li:visible:last");feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(parseInt(feed.children("li:visible").length,10)-Math.round(options.height/2))}else{focuson.removeClass("auto-focus");focuson=focuson.prevAll("li:visible:first");var prev=parseInt(focuson.prevAll("li:visible").length,10);var next=parseInt(focuson.nextAll("li:visible").length,10);if((next>Math.round(options.height/2)||prev<=Math.round(options.height/2))&&typeof(focuson.get(0))!="undefined"){feed.get(0).scrollTop=parseInt(focuson.get(0).scrollHeight,10)*(prev-Math.round(options.height/2))}}feed.children("li").removeClass("auto-focus");focuson.addClass("auto-focus")}})}function maxItems(){if(options.maxitems!=0){if(holder.children("li.bit-box").length<options.maxitems){return true}else{return false}}}function addTextItem(value){if(options.newel&&maxItems()){feed.children("li[fckb=1]").remove();if(value.length==0){return}var li=$(document.createElement("li"));li.attr({"rel":value,"fckb":"1"}).html(value);feed.prepend(li);counter++}else{return}}function funCall(func,item){var _object="";for(i=0;i<item.get(0).attributes.length;i++){if(item.get(0).attributes[i].nodeValue!=null){_object+="\"_"+item.get(0).attributes[i].nodeName+"\": \""+item.get(0).attributes[i].nodeValue+"\","}}_object="{"+_object+" notinuse: 0}";func.call(func,_object)}function checkFocusOn(){if(focuson==null){return false}if(focuson.length==0){return false}return true}function xssPrevent(string){string=string.replace(/[\"\'][\s]*javascript:(.*)[\"\']/g,"\"\"");string=string.replace(/script(.*)/g,"");string=string.replace(/eval\((.*)\)/g,"");string=string.replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/','');return string}var options=$.extend({json_url:null,cache:false,height:"10",newel:false,addontab:false,firstselected:false,filter_case:false,filter_selected:false,complete_text:"Start to type...",maxshownitems:30,maxitems:10,onselect:null,onremove:null,attachto:null,delay:350},opt);var holder=null;var feed=null;var complete=null;var counter=0;var cache=new Array();var json_cache=false;var search_string="";var focuson=null;var deleting=0;var complete_hover=1;var element=$(this);var elemid=element.attr("id");init();return this})}});
|
@@ -1,259 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* jQuery File Upload User Interface Plugin 3.2.2
|
3
|
-
*
|
4
|
-
* Copyright 2010, Sebastian Tschan, AQUANTUM
|
5
|
-
* Licensed under the MIT license:
|
6
|
-
* http://creativecommons.org/licenses/MIT/
|
7
|
-
*
|
8
|
-
* https://blueimp.net
|
9
|
-
* http://www.aquantum.de
|
10
|
-
*/
|
11
|
-
|
12
|
-
/*jslint browser: true */
|
13
|
-
/*global jQuery */
|
14
|
-
|
15
|
-
(function ($) {
|
16
|
-
|
17
|
-
var UploadHandler,
|
18
|
-
methods;
|
19
|
-
|
20
|
-
UploadHandler = function (container, options) {
|
21
|
-
var uploadHandler = this,
|
22
|
-
undef = 'undefined',
|
23
|
-
func = 'function',
|
24
|
-
dragOverTimeout,
|
25
|
-
isDropZoneEnlarged;
|
26
|
-
|
27
|
-
this.dropZone = container;
|
28
|
-
this.progressSelector = '.file_upload_progress div';
|
29
|
-
this.cancelSelector = '.file_upload_cancel div';
|
30
|
-
this.cssClassSmall = 'file_upload_small';
|
31
|
-
this.cssClassLarge = 'file_upload_large';
|
32
|
-
this.cssClassHighlight = 'file_upload_highlight';
|
33
|
-
this.dropEffect = 'highlight';
|
34
|
-
this.uploadTable = this.downloadTable = $();
|
35
|
-
|
36
|
-
this.buildUploadRow = this.buildDownloadRow = function () {
|
37
|
-
return null;
|
38
|
-
};
|
39
|
-
|
40
|
-
this.addNode = function (parentNode, node, callBack) {
|
41
|
-
if (node) {
|
42
|
-
node.css('display', 'none').appendTo(parentNode).fadeIn(function () {
|
43
|
-
if (typeof callBack === func) {
|
44
|
-
try {
|
45
|
-
callBack();
|
46
|
-
} catch (e) {
|
47
|
-
// Fix endless exception loop:
|
48
|
-
$(this).stop();
|
49
|
-
throw e;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
});
|
53
|
-
} else if (typeof callBack === func) {
|
54
|
-
callBack();
|
55
|
-
}
|
56
|
-
};
|
57
|
-
|
58
|
-
this.removeNode = function (node, callBack) {
|
59
|
-
if (node) {
|
60
|
-
node.fadeOut(function () {
|
61
|
-
$(this).remove();
|
62
|
-
if (typeof callBack === func) {
|
63
|
-
try {
|
64
|
-
callBack();
|
65
|
-
} catch (e) {
|
66
|
-
// Fix endless exception loop:
|
67
|
-
$(this).stop();
|
68
|
-
throw e;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
});
|
72
|
-
} else if (typeof callBack === func) {
|
73
|
-
callBack();
|
74
|
-
}
|
75
|
-
};
|
76
|
-
|
77
|
-
this.onAbort = function (event, files, index, xhr, handler) {
|
78
|
-
uploadHandler.removeNode(handler.uploadRow);
|
79
|
-
};
|
80
|
-
|
81
|
-
this.cancelUpload = function (event, files, index, xhr, handler) {
|
82
|
-
var readyState = xhr.readyState;
|
83
|
-
xhr.abort();
|
84
|
-
// If readyState is below 2, abort() has no effect:
|
85
|
-
if (isNaN(readyState) || readyState < 2) {
|
86
|
-
handler.onAbort(event, files, index, xhr, handler);
|
87
|
-
}
|
88
|
-
};
|
89
|
-
|
90
|
-
this.initProgressBar = function (node, value) {
|
91
|
-
if (typeof node.progressbar === func) {
|
92
|
-
return node.progressbar({
|
93
|
-
value: value
|
94
|
-
});
|
95
|
-
} else {
|
96
|
-
var progressbar = $('<progress value="' + value + '" max="100"/>').appendTo(node);
|
97
|
-
progressbar.progressbar = function (key, value) {
|
98
|
-
progressbar.attr('value', value);
|
99
|
-
};
|
100
|
-
return progressbar;
|
101
|
-
}
|
102
|
-
};
|
103
|
-
|
104
|
-
this.initUploadRow = function (event, files, index, xhr, handler, callBack) {
|
105
|
-
var uploadRow = handler.uploadRow = uploadHandler.buildUploadRow(files, index);
|
106
|
-
if (uploadRow) {
|
107
|
-
handler.progressbar = uploadHandler.initProgressBar(
|
108
|
-
uploadRow.find(uploadHandler.progressSelector),
|
109
|
-
(xhr.upload ? 0 : 100)
|
110
|
-
);
|
111
|
-
uploadRow.find(uploadHandler.cancelSelector).click(function (e) {
|
112
|
-
uploadHandler.cancelUpload(e, files, index, xhr, handler);
|
113
|
-
});
|
114
|
-
}
|
115
|
-
uploadHandler.addNode(uploadHandler.uploadTable, uploadRow, callBack);
|
116
|
-
};
|
117
|
-
|
118
|
-
this.initUpload = function (event, files, index, xhr, handler, callBack) {
|
119
|
-
uploadHandler.initUploadRow(event, files, index, xhr, handler, function () {
|
120
|
-
if (typeof uploadHandler.beforeSend === func) {
|
121
|
-
uploadHandler.beforeSend(event, files, index, xhr, handler, callBack);
|
122
|
-
} else {
|
123
|
-
callBack();
|
124
|
-
}
|
125
|
-
});
|
126
|
-
};
|
127
|
-
|
128
|
-
this.onProgress = function (event, files, index, xhr, handler) {
|
129
|
-
if (handler.progressbar) {
|
130
|
-
handler.progressbar.progressbar(
|
131
|
-
'value',
|
132
|
-
parseInt(event.loaded / event.total * 100, 10)
|
133
|
-
);
|
134
|
-
}
|
135
|
-
};
|
136
|
-
|
137
|
-
this.parseResponse = function (xhr) {
|
138
|
-
if (typeof xhr.responseText !== undef) {
|
139
|
-
return $.parseJSON(xhr.responseText);
|
140
|
-
} else {
|
141
|
-
// Instead of an XHR object, an iframe is used for legacy browsers:
|
142
|
-
return $.parseJSON(xhr.contents().text());
|
143
|
-
}
|
144
|
-
};
|
145
|
-
|
146
|
-
this.initDownloadRow = function (event, files, index, xhr, handler, callBack) {
|
147
|
-
var json, downloadRow;
|
148
|
-
try {
|
149
|
-
json = handler.response = uploadHandler.parseResponse(xhr);
|
150
|
-
downloadRow = handler.downloadRow = uploadHandler.buildDownloadRow(json);
|
151
|
-
uploadHandler.addNode(uploadHandler.downloadTable, downloadRow, callBack);
|
152
|
-
} catch (e) {
|
153
|
-
if (typeof uploadHandler.onError === func) {
|
154
|
-
handler.originalEvent = event;
|
155
|
-
uploadHandler.onError(e, files, index, xhr, handler);
|
156
|
-
} else {
|
157
|
-
throw e;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
};
|
161
|
-
|
162
|
-
this.onLoad = function (event, files, index, xhr, handler) {
|
163
|
-
uploadHandler.removeNode(handler.uploadRow, function () {
|
164
|
-
uploadHandler.initDownloadRow(event, files, index, xhr, handler, function () {
|
165
|
-
if (typeof uploadHandler.onComplete === func) {
|
166
|
-
uploadHandler.onComplete(event, files, index, xhr, handler);
|
167
|
-
}
|
168
|
-
});
|
169
|
-
});
|
170
|
-
};
|
171
|
-
|
172
|
-
this.dropZoneEnlarge = function () {
|
173
|
-
if (!isDropZoneEnlarged) {
|
174
|
-
if (typeof uploadHandler.dropZone.switchClass === func) {
|
175
|
-
uploadHandler.dropZone.switchClass(
|
176
|
-
uploadHandler.cssClassSmall,
|
177
|
-
uploadHandler.cssClassLarge
|
178
|
-
);
|
179
|
-
} else {
|
180
|
-
uploadHandler.dropZone.addClass(uploadHandler.cssClassLarge);
|
181
|
-
uploadHandler.dropZone.removeClass(uploadHandler.cssClassSmall);
|
182
|
-
}
|
183
|
-
isDropZoneEnlarged = true;
|
184
|
-
}
|
185
|
-
};
|
186
|
-
|
187
|
-
this.dropZoneReduce = function () {
|
188
|
-
if (typeof uploadHandler.dropZone.switchClass === func) {
|
189
|
-
uploadHandler.dropZone.switchClass(
|
190
|
-
uploadHandler.cssClassLarge,
|
191
|
-
uploadHandler.cssClassSmall
|
192
|
-
);
|
193
|
-
} else {
|
194
|
-
uploadHandler.dropZone.addClass(uploadHandler.cssClassSmall);
|
195
|
-
uploadHandler.dropZone.removeClass(uploadHandler.cssClassLarge);
|
196
|
-
}
|
197
|
-
isDropZoneEnlarged = false;
|
198
|
-
};
|
199
|
-
|
200
|
-
this.onDocumentDragEnter = function (event) {
|
201
|
-
uploadHandler.dropZoneEnlarge();
|
202
|
-
};
|
203
|
-
|
204
|
-
this.onDocumentDragOver = function (event) {
|
205
|
-
if (dragOverTimeout) {
|
206
|
-
clearTimeout(dragOverTimeout);
|
207
|
-
}
|
208
|
-
dragOverTimeout = setTimeout(function () {
|
209
|
-
uploadHandler.dropZoneReduce();
|
210
|
-
}, 200);
|
211
|
-
};
|
212
|
-
|
213
|
-
this.onDragEnter = this.onDragLeave = function (event) {
|
214
|
-
uploadHandler.dropZone.toggleClass(uploadHandler.cssClassHighlight);
|
215
|
-
};
|
216
|
-
|
217
|
-
this.onDrop = function (event) {
|
218
|
-
if (dragOverTimeout) {
|
219
|
-
clearTimeout(dragOverTimeout);
|
220
|
-
}
|
221
|
-
if (uploadHandler.dropEffect && typeof uploadHandler.dropZone.effect === func) {
|
222
|
-
uploadHandler.dropZone.effect(uploadHandler.dropEffect, function () {
|
223
|
-
uploadHandler.dropZone.removeClass(uploadHandler.cssClassHighlight);
|
224
|
-
uploadHandler.dropZoneReduce();
|
225
|
-
});
|
226
|
-
} else {
|
227
|
-
uploadHandler.dropZone.removeClass(uploadHandler.cssClassHighlight);
|
228
|
-
uploadHandler.dropZoneReduce();
|
229
|
-
}
|
230
|
-
};
|
231
|
-
|
232
|
-
$.extend(this, options);
|
233
|
-
};
|
234
|
-
|
235
|
-
methods = {
|
236
|
-
init : function (options) {
|
237
|
-
return this.each(function () {
|
238
|
-
$(this).fileUpload(new UploadHandler($(this), options));
|
239
|
-
});
|
240
|
-
},
|
241
|
-
|
242
|
-
destroy : function (namespace) {
|
243
|
-
return this.each(function () {
|
244
|
-
$(this).fileUpload('destroy', namespace);
|
245
|
-
});
|
246
|
-
}
|
247
|
-
};
|
248
|
-
|
249
|
-
$.fn.fileUploadUI = function (method) {
|
250
|
-
if (methods[method]) {
|
251
|
-
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
252
|
-
} else if (typeof method === 'object' || !method) {
|
253
|
-
return methods.init.apply(this, arguments);
|
254
|
-
} else {
|
255
|
-
$.error('Method ' + method + ' does not exist on jQuery.fileUploadUI');
|
256
|
-
}
|
257
|
-
};
|
258
|
-
|
259
|
-
}(jQuery));
|
@@ -1,475 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* jQuery File Upload Plugin 3.4
|
3
|
-
*
|
4
|
-
* Copyright 2010, Sebastian Tschan, AQUANTUM
|
5
|
-
* Licensed under the MIT license:
|
6
|
-
* http://creativecommons.org/licenses/MIT/
|
7
|
-
*
|
8
|
-
* https://blueimp.net
|
9
|
-
* http://www.aquantum.de
|
10
|
-
*/
|
11
|
-
|
12
|
-
/*jslint browser: true */
|
13
|
-
/*global File, FileReader, FormData, unescape, jQuery */
|
14
|
-
|
15
|
-
(function ($) {
|
16
|
-
|
17
|
-
var FileUpload,
|
18
|
-
methods;
|
19
|
-
|
20
|
-
FileUpload = function (container) {
|
21
|
-
var fileUpload = this,
|
22
|
-
uploadForm = (container.is('form') ? container : container.find('form').first()),
|
23
|
-
fileInput = uploadForm.find('input:file').first(),
|
24
|
-
settings = {
|
25
|
-
namespace: 'file_upload',
|
26
|
-
cssClass: 'file_upload',
|
27
|
-
dragDropSupport: true,
|
28
|
-
dropZone: container,
|
29
|
-
url: uploadForm.attr('action'),
|
30
|
-
method: uploadForm.attr('method'),
|
31
|
-
fieldName: fileInput.attr('name'),
|
32
|
-
multipart: true,
|
33
|
-
multiFileRequest: false,
|
34
|
-
formData: function () {
|
35
|
-
return uploadForm.serializeArray();
|
36
|
-
},
|
37
|
-
withCredentials: false,
|
38
|
-
forceIframeUpload: false
|
39
|
-
},
|
40
|
-
documentListeners = {},
|
41
|
-
dropZoneListeners = {},
|
42
|
-
fileInputListeners = {},
|
43
|
-
undef = 'undefined',
|
44
|
-
func = 'function',
|
45
|
-
num = 'number',
|
46
|
-
protocolRegExp = /^http(s)?:\/\//,
|
47
|
-
|
48
|
-
MultiLoader = function (callBack, numberComplete) {
|
49
|
-
var loaded = 0;
|
50
|
-
this.complete = function () {
|
51
|
-
loaded += 1;
|
52
|
-
if (loaded === numberComplete) {
|
53
|
-
callBack();
|
54
|
-
}
|
55
|
-
};
|
56
|
-
},
|
57
|
-
|
58
|
-
isXHRUploadCapable = function () {
|
59
|
-
return typeof XMLHttpRequest !== undef && typeof File !== undef && (
|
60
|
-
!settings.multipart || typeof FormData !== undef || typeof FileReader !== undef
|
61
|
-
);
|
62
|
-
},
|
63
|
-
|
64
|
-
initEventHandlers = function () {
|
65
|
-
if (settings.dragDropSupport) {
|
66
|
-
if (typeof settings.onDocumentDragEnter === func) {
|
67
|
-
documentListeners['dragenter.' + settings.namespace] = settings.onDocumentDragEnter;
|
68
|
-
}
|
69
|
-
if (typeof settings.onDocumentDragLeave === func) {
|
70
|
-
documentListeners['dragleave.' + settings.namespace] = settings.onDocumentDragLeave;
|
71
|
-
}
|
72
|
-
documentListeners['dragover.' + settings.namespace] = fileUpload.onDocumentDragOver;
|
73
|
-
documentListeners['drop.' + settings.namespace] = fileUpload.onDocumentDrop;
|
74
|
-
$(document).bind(documentListeners);
|
75
|
-
if (typeof settings.onDragEnter === func) {
|
76
|
-
dropZoneListeners['dragenter.' + settings.namespace] = settings.onDragEnter;
|
77
|
-
}
|
78
|
-
if (typeof settings.onDragLeave === func) {
|
79
|
-
dropZoneListeners['dragleave.' + settings.namespace] = settings.onDragLeave;
|
80
|
-
}
|
81
|
-
dropZoneListeners['dragover.' + settings.namespace] = fileUpload.onDragOver;
|
82
|
-
dropZoneListeners['drop.' + settings.namespace] = fileUpload.onDrop;
|
83
|
-
settings.dropZone.bind(dropZoneListeners);
|
84
|
-
}
|
85
|
-
fileInputListeners['change.' + settings.namespace] = fileUpload.onChange;
|
86
|
-
fileInput.bind(fileInputListeners);
|
87
|
-
},
|
88
|
-
|
89
|
-
removeEventHandlers = function () {
|
90
|
-
$.each(documentListeners, function (key, value) {
|
91
|
-
$(document).unbind(key, value);
|
92
|
-
});
|
93
|
-
$.each(dropZoneListeners, function (key, value) {
|
94
|
-
settings.dropZone.unbind(key, value);
|
95
|
-
});
|
96
|
-
$.each(fileInputListeners, function (key, value) {
|
97
|
-
fileInput.unbind(key, value);
|
98
|
-
});
|
99
|
-
},
|
100
|
-
|
101
|
-
initUploadEventHandlers = function (files, index, xhr, settings) {
|
102
|
-
if (typeof settings.onProgress === func) {
|
103
|
-
xhr.upload.onprogress = function (e) {
|
104
|
-
settings.onProgress(e, files, index, xhr, settings);
|
105
|
-
};
|
106
|
-
}
|
107
|
-
if (typeof settings.onLoad === func) {
|
108
|
-
xhr.onload = function (e) {
|
109
|
-
settings.onLoad(e, files, index, xhr, settings);
|
110
|
-
};
|
111
|
-
}
|
112
|
-
if (typeof settings.onAbort === func) {
|
113
|
-
xhr.onabort = function (e) {
|
114
|
-
settings.onAbort(e, files, index, xhr, settings);
|
115
|
-
};
|
116
|
-
}
|
117
|
-
if (typeof settings.onError === func) {
|
118
|
-
xhr.onerror = function (e) {
|
119
|
-
settings.onError(e, files, index, xhr, settings);
|
120
|
-
};
|
121
|
-
}
|
122
|
-
},
|
123
|
-
|
124
|
-
getFormData = function (settings) {
|
125
|
-
if (typeof settings.formData === func) {
|
126
|
-
return settings.formData();
|
127
|
-
} else if ($.isArray(settings.formData)) {
|
128
|
-
return settings.formData;
|
129
|
-
} else if (settings.formData) {
|
130
|
-
var formData = [];
|
131
|
-
$.each(settings.formData, function (name, value) {
|
132
|
-
formData.push({name: name, value: value});
|
133
|
-
});
|
134
|
-
return formData;
|
135
|
-
}
|
136
|
-
return [];
|
137
|
-
},
|
138
|
-
|
139
|
-
isSameDomain = function (url) {
|
140
|
-
if (protocolRegExp.test(url)) {
|
141
|
-
var host = location.host,
|
142
|
-
indexStart = location.protocol.length + 2,
|
143
|
-
index = url.indexOf(host, indexStart),
|
144
|
-
pathIndex = index + host.length;
|
145
|
-
if ((index === indexStart || index === url.indexOf('@', indexStart) + 1) &&
|
146
|
-
(url.length === pathIndex || $.inArray(url.charAt(pathIndex), ['/', '?', '#']) !== -1)) {
|
147
|
-
return true;
|
148
|
-
}
|
149
|
-
return false;
|
150
|
-
}
|
151
|
-
return true;
|
152
|
-
},
|
153
|
-
|
154
|
-
nonMultipartUpload = function (file, xhr, sameDomain) {
|
155
|
-
if (sameDomain) {
|
156
|
-
xhr.setRequestHeader('X-File-Name', unescape(encodeURIComponent(file.name)));
|
157
|
-
}
|
158
|
-
xhr.setRequestHeader('Content-Type', file.type);
|
159
|
-
xhr.send(file);
|
160
|
-
},
|
161
|
-
|
162
|
-
formDataUpload = function (files, xhr, settings) {
|
163
|
-
var formData = new FormData(),
|
164
|
-
i;
|
165
|
-
$.each(getFormData(settings), function (index, field) {
|
166
|
-
formData.append(field.name, field.value);
|
167
|
-
});
|
168
|
-
for (i = 0; i < files.length; i += 1) {
|
169
|
-
formData.append(settings.fieldName, files[i]);
|
170
|
-
}
|
171
|
-
xhr.send(formData);
|
172
|
-
},
|
173
|
-
|
174
|
-
loadFileContent = function (file, callBack) {
|
175
|
-
var fileReader = new FileReader();
|
176
|
-
fileReader.onload = function (e) {
|
177
|
-
file.content = e.target.result;
|
178
|
-
callBack();
|
179
|
-
};
|
180
|
-
fileReader.readAsBinaryString(file);
|
181
|
-
},
|
182
|
-
|
183
|
-
buildMultiPartFormData = function (boundary, files, fields) {
|
184
|
-
var doubleDash = '--',
|
185
|
-
crlf = '\r\n',
|
186
|
-
formData = '';
|
187
|
-
$.each(fields, function (index, field) {
|
188
|
-
formData += doubleDash + boundary + crlf +
|
189
|
-
'Content-Disposition: form-data; name="' +
|
190
|
-
unescape(encodeURIComponent(field.name)) +
|
191
|
-
'"' + crlf + crlf +
|
192
|
-
unescape(encodeURIComponent(field.value)) + crlf;
|
193
|
-
});
|
194
|
-
$.each(files, function (index, file) {
|
195
|
-
formData += doubleDash + boundary + crlf +
|
196
|
-
'Content-Disposition: form-data; name="' +
|
197
|
-
unescape(encodeURIComponent(settings.fieldName)) +
|
198
|
-
'"; filename="' + unescape(encodeURIComponent(file.name)) + '"' + crlf +
|
199
|
-
'Content-Type: ' + file.type + crlf + crlf +
|
200
|
-
file.content + crlf;
|
201
|
-
});
|
202
|
-
formData += doubleDash + boundary + doubleDash + crlf;
|
203
|
-
return formData;
|
204
|
-
},
|
205
|
-
|
206
|
-
fileReaderUpload = function (files, xhr, settings) {
|
207
|
-
var boundary = '----MultiPartFormBoundary' + (new Date()).getTime(),
|
208
|
-
loader,
|
209
|
-
i;
|
210
|
-
xhr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + boundary);
|
211
|
-
loader = new MultiLoader(function () {
|
212
|
-
xhr.sendAsBinary(buildMultiPartFormData(
|
213
|
-
boundary,
|
214
|
-
files,
|
215
|
-
getFormData(settings)
|
216
|
-
));
|
217
|
-
}, files.length);
|
218
|
-
for (i = 0; i < files.length; i += 1) {
|
219
|
-
loadFileContent(files[i], loader.complete);
|
220
|
-
}
|
221
|
-
},
|
222
|
-
|
223
|
-
upload = function (files, index, xhr, settings) {
|
224
|
-
var sameDomain = isSameDomain(settings.url),
|
225
|
-
filesToUpload;
|
226
|
-
initUploadEventHandlers(files, index, xhr, settings);
|
227
|
-
xhr.open(settings.method, settings.url, true);
|
228
|
-
if (sameDomain) {
|
229
|
-
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
230
|
-
} else if (settings.withCredentials) {
|
231
|
-
xhr.withCredentials = true;
|
232
|
-
}
|
233
|
-
if (!settings.multipart) {
|
234
|
-
nonMultipartUpload(files[index], xhr, sameDomain);
|
235
|
-
} else {
|
236
|
-
if (typeof index === num) {
|
237
|
-
filesToUpload = [files[index]];
|
238
|
-
} else {
|
239
|
-
filesToUpload = files;
|
240
|
-
}
|
241
|
-
if (typeof FormData !== undef) {
|
242
|
-
formDataUpload(filesToUpload, xhr, settings);
|
243
|
-
} else if (typeof FileReader !== undef) {
|
244
|
-
fileReaderUpload(filesToUpload, xhr, settings);
|
245
|
-
} else {
|
246
|
-
$.error('Browser does neither support FormData nor FileReader interface');
|
247
|
-
}
|
248
|
-
}
|
249
|
-
},
|
250
|
-
|
251
|
-
handleUpload = function (event, files, index) {
|
252
|
-
var xhr = new XMLHttpRequest(),
|
253
|
-
uploadSettings = $.extend({}, settings);
|
254
|
-
if (typeof settings.initUpload === func) {
|
255
|
-
settings.initUpload(
|
256
|
-
event,
|
257
|
-
files,
|
258
|
-
index,
|
259
|
-
xhr,
|
260
|
-
uploadSettings,
|
261
|
-
function () {
|
262
|
-
upload(files, index, xhr, uploadSettings);
|
263
|
-
}
|
264
|
-
);
|
265
|
-
} else {
|
266
|
-
upload(files, index, xhr, uploadSettings);
|
267
|
-
}
|
268
|
-
},
|
269
|
-
|
270
|
-
handleFiles = function (event, files) {
|
271
|
-
var i;
|
272
|
-
if (settings.multiFileRequest) {
|
273
|
-
handleUpload(event, files);
|
274
|
-
} else {
|
275
|
-
for (i = 0; i < files.length; i += 1) {
|
276
|
-
handleUpload(event, files, i);
|
277
|
-
}
|
278
|
-
}
|
279
|
-
},
|
280
|
-
|
281
|
-
legacyUploadFormDataInit = function (input, settings) {
|
282
|
-
var formData = getFormData(settings);
|
283
|
-
uploadForm.find(':input').not(':disabled')
|
284
|
-
.attr('disabled', true)
|
285
|
-
.addClass(settings.namespace + '_disabled');
|
286
|
-
$.each(formData, function (index, field) {
|
287
|
-
$('<input type="hidden"/>')
|
288
|
-
.attr('name', field.name)
|
289
|
-
.val(field.value)
|
290
|
-
.addClass(settings.namespace + '_form_data')
|
291
|
-
.insertBefore(fileInput);
|
292
|
-
});
|
293
|
-
input.insertAfter(fileInput);
|
294
|
-
},
|
295
|
-
|
296
|
-
legacyUploadFormDataReset = function (input, settings) {
|
297
|
-
input.remove();
|
298
|
-
uploadForm.find('.' + settings.namespace + '_disabled')
|
299
|
-
.removeAttr('disabled')
|
300
|
-
.removeClass(settings.namespace + '_disabled');
|
301
|
-
uploadForm.find('.' + settings.namespace + '_form_data').remove();
|
302
|
-
},
|
303
|
-
|
304
|
-
legacyUpload = function (input, iframe, settings) {
|
305
|
-
iframe
|
306
|
-
.unbind('abort')
|
307
|
-
.bind('abort', function (e) {
|
308
|
-
iframe.readyState = 0;
|
309
|
-
// javascript:false as iframe src prevents warning popups on HTTPS in IE6
|
310
|
-
// concat is used here to prevent the "Script URL" JSLint error:
|
311
|
-
iframe.unbind('load').attr('src', 'javascript'.concat(':false;'));
|
312
|
-
if (typeof settings.onAbort === func) {
|
313
|
-
settings.onAbort(e, [{name: input.val(), type: null, size: null}], 0, iframe, settings);
|
314
|
-
}
|
315
|
-
})
|
316
|
-
.unbind('load')
|
317
|
-
.bind('load', function (e) {
|
318
|
-
iframe.readyState = 4;
|
319
|
-
if (typeof settings.onLoad === func) {
|
320
|
-
settings.onLoad(e, [{name: input.val(), type: null, size: null}], 0, iframe, settings);
|
321
|
-
}
|
322
|
-
});
|
323
|
-
uploadForm
|
324
|
-
.attr('action', settings.url)
|
325
|
-
.attr('target', iframe.attr('name'));
|
326
|
-
legacyUploadFormDataInit(input, settings);
|
327
|
-
iframe.readyState = 2;
|
328
|
-
uploadForm.get(0).submit();
|
329
|
-
legacyUploadFormDataReset(input, settings);
|
330
|
-
},
|
331
|
-
|
332
|
-
handleLegacyUpload = function (event, input) {
|
333
|
-
// javascript:false as iframe src prevents warning popups on HTTPS in IE6:
|
334
|
-
var iframe = $('<iframe src="javascript:false;" style="display:none" name="iframe_' +
|
335
|
-
settings.namespace + '_' + (new Date()).getTime() + '"></iframe>'),
|
336
|
-
uploadSettings = $.extend({}, settings);
|
337
|
-
iframe.readyState = 0;
|
338
|
-
iframe.abort = function () {
|
339
|
-
iframe.trigger('abort');
|
340
|
-
};
|
341
|
-
iframe.bind('load', function () {
|
342
|
-
iframe.unbind('load');
|
343
|
-
if (typeof settings.initUpload === func) {
|
344
|
-
settings.initUpload(
|
345
|
-
event,
|
346
|
-
[{name: input.val(), type: null, size: null}],
|
347
|
-
0,
|
348
|
-
iframe,
|
349
|
-
uploadSettings,
|
350
|
-
function () {
|
351
|
-
legacyUpload(input, iframe, uploadSettings);
|
352
|
-
}
|
353
|
-
);
|
354
|
-
} else {
|
355
|
-
legacyUpload(input, iframe, uploadSettings);
|
356
|
-
}
|
357
|
-
}).appendTo(uploadForm);
|
358
|
-
},
|
359
|
-
|
360
|
-
resetFileInput = function () {
|
361
|
-
var inputClone = fileInput.clone(true);
|
362
|
-
$('<form/>').append(inputClone).get(0).reset();
|
363
|
-
fileInput.replaceWith(inputClone);
|
364
|
-
fileInput = inputClone;
|
365
|
-
};
|
366
|
-
|
367
|
-
this.onDocumentDragOver = function (e) {
|
368
|
-
if (typeof settings.onDocumentDragOver === func &&
|
369
|
-
settings.onDocumentDragOver(e) === false) {
|
370
|
-
return false;
|
371
|
-
}
|
372
|
-
e.preventDefault();
|
373
|
-
};
|
374
|
-
|
375
|
-
this.onDocumentDrop = function (e) {
|
376
|
-
if (typeof settings.onDocumentDrop === func &&
|
377
|
-
settings.onDocumentDrop(e) === false) {
|
378
|
-
return false;
|
379
|
-
}
|
380
|
-
e.preventDefault();
|
381
|
-
};
|
382
|
-
|
383
|
-
this.onDragOver = function (e) {
|
384
|
-
if (typeof settings.onDragOver === func &&
|
385
|
-
settings.onDragOver(e) === false) {
|
386
|
-
return false;
|
387
|
-
}
|
388
|
-
var dataTransfer = e.originalEvent.dataTransfer;
|
389
|
-
if (dataTransfer) {
|
390
|
-
dataTransfer.dropEffect = dataTransfer.effectAllowed = 'copy';
|
391
|
-
}
|
392
|
-
e.preventDefault();
|
393
|
-
};
|
394
|
-
|
395
|
-
this.onDrop = function (e) {
|
396
|
-
if (typeof settings.onDrop === func &&
|
397
|
-
settings.onDrop(e) === false) {
|
398
|
-
return false;
|
399
|
-
}
|
400
|
-
var dataTransfer = e.originalEvent.dataTransfer;
|
401
|
-
if (dataTransfer && dataTransfer.files && isXHRUploadCapable()) {
|
402
|
-
handleFiles(e, dataTransfer.files);
|
403
|
-
}
|
404
|
-
e.preventDefault();
|
405
|
-
};
|
406
|
-
|
407
|
-
this.onChange = function (e) {
|
408
|
-
if (typeof settings.onChange === func &&
|
409
|
-
settings.onChange(e) === false) {
|
410
|
-
return false;
|
411
|
-
}
|
412
|
-
if (!settings.forceIframeUpload && e.target.files && isXHRUploadCapable()) {
|
413
|
-
handleFiles(e, e.target.files);
|
414
|
-
} else {
|
415
|
-
handleLegacyUpload(e, $(e.target));
|
416
|
-
}
|
417
|
-
resetFileInput();
|
418
|
-
};
|
419
|
-
|
420
|
-
this.init = function (options) {
|
421
|
-
if (options) {
|
422
|
-
$.extend(settings, options);
|
423
|
-
}
|
424
|
-
if (container.data(settings.namespace)) {
|
425
|
-
$.error('FileUpload with namespace "' + settings.namespace + '" already assigned to this element');
|
426
|
-
return;
|
427
|
-
}
|
428
|
-
container
|
429
|
-
.data(settings.namespace, fileUpload)
|
430
|
-
.addClass(settings.cssClass);
|
431
|
-
settings.dropZone.addClass(settings.cssClass);
|
432
|
-
initEventHandlers();
|
433
|
-
};
|
434
|
-
|
435
|
-
this.destroy = function () {
|
436
|
-
removeEventHandlers();
|
437
|
-
container
|
438
|
-
.removeData(settings.namespace)
|
439
|
-
.removeClass(settings.cssClass);
|
440
|
-
settings.dropZone.removeClass(settings.cssClass);
|
441
|
-
};
|
442
|
-
};
|
443
|
-
|
444
|
-
methods = {
|
445
|
-
init : function (options) {
|
446
|
-
return this.each(function () {
|
447
|
-
(new FileUpload($(this))).init(options);
|
448
|
-
});
|
449
|
-
},
|
450
|
-
|
451
|
-
destroy : function (namespace) {
|
452
|
-
return this.each(function () {
|
453
|
-
namespace = namespace ? namespace : 'file_upload';
|
454
|
-
var fileUpload = $(this).data(namespace);
|
455
|
-
if (fileUpload) {
|
456
|
-
fileUpload.destroy();
|
457
|
-
} else {
|
458
|
-
$.error('No FileUpload with namespace "' + namespace + '" assigned to this element');
|
459
|
-
}
|
460
|
-
});
|
461
|
-
|
462
|
-
}
|
463
|
-
};
|
464
|
-
|
465
|
-
$.fn.fileUpload = function (method) {
|
466
|
-
if (methods[method]) {
|
467
|
-
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
468
|
-
} else if (typeof method === 'object' || !method) {
|
469
|
-
return methods.init.apply(this, arguments);
|
470
|
-
} else {
|
471
|
-
$.error('Method ' + method + ' does not exist on jQuery.fileUpload');
|
472
|
-
}
|
473
|
-
};
|
474
|
-
|
475
|
-
}(jQuery));
|