25dbdcf8adfda4e728ac4aed1721bd8aed99f71d

Author: José Lorenzo Rodríguez

Date: 2009-04-15 10:11:19 -0430

Adding drag & drop for moving questions inside a quiz Updating jquery.ui plugins to match most recent version

diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/COPYING b/COPYING old mode 100644 new mode 100755 diff --git a/config/latex.php b/config/latex.php old mode 100644 new mode 100755 diff --git a/config/permissions.php b/config/permissions.php old mode 100644 new mode 100755 diff --git a/config/plugin_descriptions.php b/config/plugin_descriptions.php old mode 100644 new mode 100755 diff --git a/config/sql/osmosis.sql b/config/sql/osmosis.sql old mode 100644 new mode 100755 diff --git a/config/sql/schema.php b/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/controllers/components/html_purifier.php b/controllers/components/html_purifier.php old mode 100644 new mode 100755 diff --git a/controllers/components/init_acl.php b/controllers/components/init_acl.php old mode 100644 new mode 100755 diff --git a/controllers/components/installer.php b/controllers/components/installer.php old mode 100644 new mode 100755 diff --git a/controllers/components/osmosis_components.php b/controllers/components/osmosis_components.php old mode 100644 new mode 100755 diff --git a/controllers/components/osmosis_mailer.php b/controllers/components/osmosis_mailer.php old mode 100644 new mode 100755 diff --git a/controllers/components/placeholder.php b/controllers/components/placeholder.php old mode 100644 new mode 100755 diff --git a/controllers/components/placeholder_data.php b/controllers/components/placeholder_data.php old mode 100644 new mode 100755 diff --git a/controllers/components/swift_email.php b/controllers/components/swift_email.php old mode 100644 new mode 100755 diff --git a/controllers/components/zip.php b/controllers/components/zip.php old mode 100644 new mode 100755 diff --git a/controllers/courses_controller.php b/controllers/courses_controller.php old mode 100644 new mode 100755 diff --git a/controllers/dashboards_controller.php b/controllers/dashboards_controller.php old mode 100644 new mode 100755 diff --git a/controllers/departments_controller.php b/controllers/departments_controller.php old mode 100644 new mode 100755 diff --git a/controllers/init_acl_controller.php b/controllers/init_acl_controller.php old mode 100644 new mode 100755 diff --git a/controllers/installer_controller.php b/controllers/installer_controller.php old mode 100644 new mode 100755 diff --git a/controllers/members_controller.php b/controllers/members_controller.php old mode 100644 new mode 100755 diff --git a/controllers/plugins_controller.php b/controllers/plugins_controller.php old mode 100644 new mode 100755 diff --git a/file_header.txt b/file_header.txt old mode 100644 new mode 100755 diff --git a/locale/default.pot b/locale/default.pot old mode 100644 new mode 100755 diff --git a/locale/spa/LC_MESSAGES/default.po b/locale/spa/LC_MESSAGES/default.po old mode 100644 new mode 100755 diff --git a/models/behaviors/hookable.php b/models/behaviors/hookable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/importable.php b/models/behaviors/importable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/loggable.php b/models/behaviors/loggable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/ratable.php b/models/behaviors/ratable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/sluggable.php b/models/behaviors/sluggable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/taggable.php b/models/behaviors/taggable.php old mode 100644 new mode 100755 diff --git a/models/behaviors/transaction.php b/models/behaviors/transaction.php old mode 100644 new mode 100755 diff --git a/models/behaviors/visitable.php b/models/behaviors/visitable.php old mode 100644 new mode 100755 diff --git a/models/course.php b/models/course.php old mode 100644 new mode 100755 diff --git a/models/department.php b/models/department.php old mode 100644 new mode 100755 diff --git a/models/enrollment.php b/models/enrollment.php old mode 100644 new mode 100755 diff --git a/models/member.php b/models/member.php old mode 100644 new mode 100755 diff --git a/models/model_log.php b/models/model_log.php old mode 100644 new mode 100755 diff --git a/models/plugin.php b/models/plugin.php old mode 100644 new mode 100755 diff --git a/models/role.php b/models/role.php old mode 100644 new mode 100755 diff --git a/models/setting.php b/models/setting.php old mode 100644 new mode 100755 diff --git a/models/tag.php b/models/tag.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/agenda_app_controller.php b/plugins/agenda/agenda_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/agenda_app_model.php b/plugins/agenda/agenda_app_model.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/config/description.php b/plugins/agenda/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/config/sql/schema.php b/plugins/agenda/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/controllers/components/agenda_holder.php b/plugins/agenda/controllers/components/agenda_holder.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/controllers/events_controller.php b/plugins/agenda/controllers/events_controller.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/locale/agenda.pot b/plugins/agenda/locale/agenda.pot old mode 100644 new mode 100755 diff --git a/plugins/agenda/locale/por/LC_MESSAGES/agenda.po b/plugins/agenda/locale/por/LC_MESSAGES/agenda.po old mode 100644 new mode 100755 diff --git a/plugins/agenda/locale/spa/LC_MESSAGES/agenda.po b/plugins/agenda/locale/spa/LC_MESSAGES/agenda.po old mode 100644 new mode 100755 diff --git a/plugins/agenda/models/event.php b/plugins/agenda/models/event.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/tests/cases/controllers/events_controller.test.php b/plugins/agenda/tests/cases/controllers/events_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/tests/cases/models/event.test.php b/plugins/agenda/tests/cases/models/event.test.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/tests/fixtures/event_fixture.php b/plugins/agenda/tests/fixtures/event_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/agenda/vendors/css/agenda.css b/plugins/agenda/vendors/css/agenda.css old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/elements/placeholders/head.ctp b/plugins/agenda/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/events/add.ctp b/plugins/agenda/views/events/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/events/edit.ctp b/plugins/agenda/views/events/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/events/index.ctp b/plugins/agenda/views/events/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/events/view.ctp b/plugins/agenda/views/events/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/agenda/views/helpers/calendar.php b/plugins/agenda/views/helpers/calendar.php old mode 100644 new mode 100755 diff --git a/plugins/blog/config/description.php b/plugins/blog/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/blog/config/permissions.php b/plugins/blog/config/permissions.php old mode 100644 new mode 100755 diff --git a/plugins/blog/config/sql/blog.sql b/plugins/blog/config/sql/blog.sql old mode 100644 new mode 100755 diff --git a/plugins/blog/config/sql/schema.php b/plugins/blog/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/blog/controllers/blogs_controller.php b/plugins/blog/controllers/blogs_controller.php old mode 100644 new mode 100755 diff --git a/plugins/blog/controllers/comments_controller.php b/plugins/blog/controllers/comments_controller.php old mode 100644 new mode 100755 diff --git a/plugins/blog/controllers/components/blog_holder.php b/plugins/blog/controllers/components/blog_holder.php old mode 100644 new mode 100755 diff --git a/plugins/blog/controllers/components/blog_member_hook.php b/plugins/blog/controllers/components/blog_member_hook.php old mode 100644 new mode 100755 diff --git a/plugins/blog/controllers/posts_controller.php b/plugins/blog/controllers/posts_controller.php old mode 100644 new mode 100755 diff --git a/plugins/blog/locale/blog.pot b/plugins/blog/locale/blog.pot old mode 100644 new mode 100755 diff --git a/plugins/blog/locale/por/LC_MESSAGES/blog.po b/plugins/blog/locale/por/LC_MESSAGES/blog.po old mode 100644 new mode 100755 diff --git a/plugins/blog/locale/spa/LC_MESSAGES/blog.po b/plugins/blog/locale/spa/LC_MESSAGES/blog.po old mode 100644 new mode 100755 diff --git a/plugins/blog/models/blog.php b/plugins/blog/models/blog.php old mode 100644 new mode 100755 diff --git a/plugins/blog/models/comment.php b/plugins/blog/models/comment.php old mode 100644 new mode 100755 diff --git a/plugins/blog/models/post.php b/plugins/blog/models/post.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/cases/models/blog.test.php b/plugins/blog/tests/cases/models/blog.test.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/cases/models/comment.test.php b/plugins/blog/tests/cases/models/comment.test.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/cases/models/post.test.php b/plugins/blog/tests/cases/models/post.test.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/fixtures/blog_fixture.php b/plugins/blog/tests/fixtures/blog_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/fixtures/comment_fixture.php b/plugins/blog/tests/fixtures/comment_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/blog/tests/fixtures/post_fixture.php b/plugins/blog/tests/fixtures/post_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/blog/vendors/css/blog.css b/plugins/blog/vendors/css/blog.css old mode 100644 new mode 100755 diff --git a/plugins/blog/views/blogs/add.ctp b/plugins/blog/views/blogs/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/blogs/edit.ctp b/plugins/blog/views/blogs/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/blogs/index.ctp b/plugins/blog/views/blogs/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/blogs/view.ctp b/plugins/blog/views/blogs/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/comments/add.ctp b/plugins/blog/views/comments/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/comments/edit.ctp b/plugins/blog/views/comments/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/comments/index.ctp b/plugins/blog/views/comments/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/comments/view.ctp b/plugins/blog/views/comments/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/add_comment.ctp b/plugins/blog/views/elements/add_comment.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/comments/add_comment.ctp b/plugins/blog/views/elements/comments/add_comment.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/placeholders/head.ctp b/plugins/blog/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/placeholders/messages_dashboard.ctp b/plugins/blog/views/elements/placeholders/messages_dashboard.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/placeholders/profile_connect.ctp b/plugins/blog/views/elements/placeholders/profile_connect.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/elements/post.ctp b/plugins/blog/views/elements/post.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/posts/add.ctp b/plugins/blog/views/posts/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/posts/edit.ctp b/plugins/blog/views/posts/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/posts/index.ctp b/plugins/blog/views/posts/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/blog/views/posts/view.ctp b/plugins/blog/views/posts/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/chat_app_controller.php b/plugins/chat/chat_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/chat/chat_app_model.php b/plugins/chat/chat_app_model.php old mode 100644 new mode 100755 diff --git a/plugins/chat/config/description.php b/plugins/chat/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/chat/config/sql/chat.sql b/plugins/chat/config/sql/chat.sql old mode 100644 new mode 100755 diff --git a/plugins/chat/config/sql/schema.php b/plugins/chat/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/chat/controllers/chats_controller.php b/plugins/chat/controllers/chats_controller.php old mode 100644 new mode 100755 diff --git a/plugins/chat/controllers/components/chat_holder.php b/plugins/chat/controllers/components/chat_holder.php old mode 100644 new mode 100755 diff --git a/plugins/chat/controllers/messages_controller.php b/plugins/chat/controllers/messages_controller.php old mode 100644 new mode 100755 diff --git a/plugins/chat/locale/chat.pot b/plugins/chat/locale/chat.pot old mode 100644 new mode 100755 diff --git a/plugins/chat/locale/por/LC_MESSAGES/chat.po b/plugins/chat/locale/por/LC_MESSAGES/chat.po old mode 100644 new mode 100755 diff --git a/plugins/chat/locale/spa/LC_MESSAGES/chat.po b/plugins/chat/locale/spa/LC_MESSAGES/chat.po old mode 100644 new mode 100755 diff --git a/plugins/chat/models/message.php b/plugins/chat/models/message.php old mode 100644 new mode 100755 diff --git a/plugins/chat/tests/cases/controllers/chat_messages_controller.test.php b/plugins/chat/tests/cases/controllers/chat_messages_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/chat/tests/cases/models/message.test.php b/plugins/chat/tests/cases/models/message.test.php old mode 100644 new mode 100755 diff --git a/plugins/chat/tests/fixtures/chat_message_fixture.php b/plugins/chat/tests/fixtures/chat_message_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/chat/vendors/css/chat.css b/plugins/chat/vendors/css/chat.css old mode 100644 new mode 100755 diff --git a/plugins/chat/vendors/js/jquery.minmax.js b/plugins/chat/vendors/js/jquery.minmax.js old mode 100644 new mode 100755 diff --git a/plugins/chat/vendors/js/jquery.wresize.js b/plugins/chat/vendors/js/jquery.wresize.js old mode 100644 new mode 100755 diff --git a/plugins/chat/vendors/js/osmosis_chat.js b/plugins/chat/vendors/js/osmosis_chat.js old mode 100644 new mode 100755 diff --git a/plugins/chat/views/chats/xml/connect.ctp b/plugins/chat/views/chats/xml/connect.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/views/chats/xml/user.ctp b/plugins/chat/views/chats/xml/user.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/views/elements/placeholders/course_sidebar.ctp b/plugins/chat/views/elements/placeholders/course_sidebar.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/views/elements/placeholders/head.ctp b/plugins/chat/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/views/messages/xml/receive.ctp b/plugins/chat/views/messages/xml/receive.ctp old mode 100644 new mode 100755 diff --git a/plugins/chat/views/messages/xml/send.ctp b/plugins/chat/views/messages/xml/send.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/config/description.php b/plugins/forum/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/forum/config/permissions.php b/plugins/forum/config/permissions.php old mode 100644 new mode 100755 diff --git a/plugins/forum/config/sql/forum.sql b/plugins/forum/config/sql/forum.sql old mode 100644 new mode 100755 diff --git a/plugins/forum/config/sql/schema.php b/plugins/forum/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/forum/controllers/components/forum_holder.php b/plugins/forum/controllers/components/forum_holder.php old mode 100644 new mode 100755 diff --git a/plugins/forum/controllers/discussions_controller.php b/plugins/forum/controllers/discussions_controller.php old mode 100644 new mode 100755 diff --git a/plugins/forum/controllers/responses_controller.php b/plugins/forum/controllers/responses_controller.php old mode 100644 new mode 100755 diff --git a/plugins/forum/controllers/topics_controller.php b/plugins/forum/controllers/topics_controller.php old mode 100644 new mode 100755 diff --git a/plugins/forum/forum_app_controller.php b/plugins/forum/forum_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/forum/forum_app_model.php b/plugins/forum/forum_app_model.php old mode 100644 new mode 100755 diff --git a/plugins/forum/locale/forum.pot b/plugins/forum/locale/forum.pot old mode 100644 new mode 100755 diff --git a/plugins/forum/locale/spa/LC_MESSAGES/forum.po b/plugins/forum/locale/spa/LC_MESSAGES/forum.po old mode 100644 new mode 100755 diff --git a/plugins/forum/models/discussion.php b/plugins/forum/models/discussion.php old mode 100644 new mode 100755 diff --git a/plugins/forum/models/response.php b/plugins/forum/models/response.php old mode 100644 new mode 100755 diff --git a/plugins/forum/models/topic.php b/plugins/forum/models/topic.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/cases/models/discussion.test.php b/plugins/forum/tests/cases/models/discussion.test.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/cases/models/response.test.php b/plugins/forum/tests/cases/models/response.test.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/cases/models/subject.test.php b/plugins/forum/tests/cases/models/subject.test.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/fixtures/discussion_fixture.php b/plugins/forum/tests/fixtures/discussion_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/fixtures/response_fixture.php b/plugins/forum/tests/fixtures/response_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/forum/tests/fixtures/topic_fixture.php b/plugins/forum/tests/fixtures/topic_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/forum/vendors/css/forum.css b/plugins/forum/vendors/css/forum.css old mode 100644 new mode 100755 diff --git a/plugins/forum/views/discussions/add.ctp b/plugins/forum/views/discussions/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/discussions/edit.ctp b/plugins/forum/views/discussions/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/discussions/view.ctp b/plugins/forum/views/discussions/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/Discussion.updates.ctp b/plugins/forum/views/elements/Discussion.updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/Response.updates.ctp b/plugins/forum/views/elements/Response.updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/Topic.updates.ctp b/plugins/forum/views/elements/Topic.updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/discussion_responses.ctp b/plugins/forum/views/elements/discussion_responses.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/forum_message.ctp b/plugins/forum/views/elements/forum_message.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/placeholders/course_dashboard.ctp b/plugins/forum/views/elements/placeholders/course_dashboard.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/placeholders/head.ctp b/plugins/forum/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/placeholders/plugin_updates.ctp b/plugins/forum/views/elements/placeholders/plugin_updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/elements/quick_response.ctp b/plugins/forum/views/elements/quick_response.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/responses/edit.ctp b/plugins/forum/views/responses/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/subjects/add.ctp b/plugins/forum/views/subjects/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/subjects/edit.ctp b/plugins/forum/views/subjects/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/subjects/index.ctp b/plugins/forum/views/subjects/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/subjects/view.ctp b/plugins/forum/views/subjects/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/topics/add.ctp b/plugins/forum/views/topics/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/topics/edit.ctp b/plugins/forum/views/topics/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/topics/index.ctp b/plugins/forum/views/topics/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/forum/views/topics/view.ctp b/plugins/forum/views/topics/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/config/description.php b/plugins/locker/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/locker/config/permissions.php b/plugins/locker/config/permissions.php old mode 100644 new mode 100755 diff --git a/plugins/locker/config/sql/locker.sql b/plugins/locker/config/sql/locker.sql old mode 100644 new mode 100755 diff --git a/plugins/locker/config/sql/schema.php b/plugins/locker/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/locker/controllers/components/locker_holder.php b/plugins/locker/controllers/components/locker_holder.php old mode 100644 new mode 100755 diff --git a/plugins/locker/controllers/documents_controller.php b/plugins/locker/controllers/documents_controller.php old mode 100644 new mode 100755 diff --git a/plugins/locker/controllers/folders_controller.php b/plugins/locker/controllers/folders_controller.php old mode 100644 new mode 100755 diff --git a/plugins/locker/controllers/installer_controller.php b/plugins/locker/controllers/installer_controller.php old mode 100644 new mode 100755 diff --git a/plugins/locker/locale/locker.pot b/plugins/locker/locale/locker.pot old mode 100644 new mode 100755 diff --git a/plugins/locker/locale/spa/LC_MESSAGES/locker.po b/plugins/locker/locale/spa/LC_MESSAGES/locker.po old mode 100644 new mode 100755 diff --git a/plugins/locker/locker_app_controller.php b/plugins/locker/locker_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/locker/locker_app_model.php b/plugins/locker/locker_app_model.php old mode 100644 new mode 100755 diff --git a/plugins/locker/models/locker_document.php b/plugins/locker/models/locker_document.php old mode 100644 new mode 100755 diff --git a/plugins/locker/models/locker_folder.php b/plugins/locker/models/locker_folder.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/controllers/directories_controller.test.php b/plugins/locker/tests/cases/controllers/directories_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/controllers/documents_controller.test.php b/plugins/locker/tests/cases/controllers/documents_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/controllers/locker_documents_controller.test.php b/plugins/locker/tests/cases/controllers/locker_documents_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/controllers/locker_folders_controller.test.php b/plugins/locker/tests/cases/controllers/locker_folders_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/models/directory.test.php b/plugins/locker/tests/cases/models/directory.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/models/document.test.php b/plugins/locker/tests/cases/models/document.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/models/locker_document.test.php b/plugins/locker/tests/cases/models/locker_document.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/cases/models/locker_folder.test.php b/plugins/locker/tests/cases/models/locker_folder.test.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/fixtures/directory_fixture.php b/plugins/locker/tests/fixtures/directory_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/fixtures/document_fixture.php b/plugins/locker/tests/fixtures/document_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/fixtures/locker_document_fixture.php b/plugins/locker/tests/fixtures/locker_document_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/locker/tests/fixtures/locker_folder_fixture.php b/plugins/locker/tests/fixtures/locker_folder_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/locker/vendors/css/locker.css b/plugins/locker/vendors/css/locker.css old mode 100644 new mode 100755 diff --git a/plugins/locker/views/document.php b/plugins/locker/views/document.php old mode 100644 new mode 100755 diff --git a/plugins/locker/views/documents/add.ctp b/plugins/locker/views/documents/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/documents/ajax/view.ctp b/plugins/locker/views/documents/ajax/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/documents/edit.ctp b/plugins/locker/views/documents/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/documents/json/edit.ctp b/plugins/locker/views/documents/json/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/documents/view.ctp b/plugins/locker/views/documents/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/file_info.ctp b/plugins/locker/views/elements/file_info.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/folder_actions.ctp b/plugins/locker/views/elements/folder_actions.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/folder_contents.ctp b/plugins/locker/views/elements/folder_contents.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/folder_path.ctp b/plugins/locker/views/elements/folder_path.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/placeholders/connections_dashboard.ctp b/plugins/locker/views/elements/placeholders/connections_dashboard.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/placeholders/head.ctp b/plugins/locker/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/elements/placeholders/profile_connect.ctp b/plugins/locker/views/elements/placeholders/profile_connect.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/folders/ajax/view.ctp b/plugins/locker/views/folders/ajax/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/folders/edit.ctp b/plugins/locker/views/folders/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/folders/json/edit.ctp b/plugins/locker/views/folders/json/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/folders/json/move.ctp b/plugins/locker/views/folders/json/move.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/folders/view.ctp b/plugins/locker/views/folders/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/locker/views/helpers/mime.php b/plugins/locker/views/helpers/mime.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/config/description.php b/plugins/quiz/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/config/sql/schema.php b/plugins/quiz/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/controllers/components/quiz_holder.php b/plugins/quiz/controllers/components/quiz_holder.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/controllers/quizzes_controller.php b/plugins/quiz/controllers/quizzes_controller.php index ccbd084..93309df 100755 --- a/plugins/quiz/controllers/quizzes_controller.php +++ b/plugins/quiz/controllers/quizzes_controller.php @@ -177,8 +177,8 @@ class QuizzesController extends QuizAppController { } } - function move_question($quizQuestion,$direction) { - $directions = array('up','down','bottom','top'); + function move_question($quizQuestion,$direction,$position = null) { + $directions = array('up','down','bottom','top','to'); if (!in_array($direction,$directions)) { $this->Session->setFlash(__('Unexpected method', true), 'default', array('class' => 'error')); $this->redirect( @@ -187,7 +187,7 @@ class QuizzesController extends QuizAppController { } $this->Quiz->QuizQuestion->id = $quizQuestion; $question = $this->Quiz->QuizQuestion->read(); - if (!empty($question) && $this->Quiz->moveQuestion($quizQuestion,$direction)) { + if (!empty($question) && $this->Quiz->moveQuestion($quizQuestion,$direction,$position)) { $this->Session->setFlash(__('The question was moved', true), 'default', array('class' => 'success')); $this->redirect( array('controller' => 'quizzes', 'action' => 'edit',$question['QuizQuestion']['quiz_id'],'course_id' => $this->activeCourse) diff --git a/plugins/quiz/models/behaviors/sortable.php b/plugins/quiz/models/behaviors/sortable.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/choice_answer.php b/plugins/quiz/models/choice_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/choice_question_answer.php b/plugins/quiz/models/choice_question_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/matching_answer.php b/plugins/quiz/models/matching_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/matching_question_answer.php b/plugins/quiz/models/matching_question_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/ordering_answer.php b/plugins/quiz/models/ordering_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/ordering_question_answer.php b/plugins/quiz/models/ordering_question_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/question.php b/plugins/quiz/models/question.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/quiz.php b/plugins/quiz/models/quiz.php index e09fe11..a5b7d24 100755 --- a/plugins/quiz/models/quiz.php +++ b/plugins/quiz/models/quiz.php @@ -120,7 +120,13 @@ class Quiz extends QuizAppModel { return $this->QuizQuestion->del($quizQuestion); } - function moveQuestion($quizQuestion,$direction) { + function moveQuestion($quizQuestion,$direction,$position = null) { + if ($direction == 'to') { + if (is_numeric($position) && $position > 0) + return $this->QuizQuestion->setPosition($quizQuestion,$position); + else + return false; + } return $this->QuizQuestion->{'move'.Inflector::camelize($direction)}($quizQuestion); } diff --git a/plugins/quiz/models/quiz_question.php b/plugins/quiz/models/quiz_question.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/models/text_question_answer.php b/plugins/quiz/models/text_question_answer.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/choice_question_fixture.php b/plugins/quiz/tests/fixtures/choice_question_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/matching_choice_fixture.php b/plugins/quiz/tests/fixtures/matching_choice_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/matching_question_choices_fixture.php b/plugins/quiz/tests/fixtures/matching_question_choices_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/matching_question_fixture.php b/plugins/quiz/tests/fixtures/matching_question_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/ordering_question_fixture.php b/plugins/quiz/tests/fixtures/ordering_question_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/quiz_fixture.php b/plugins/quiz/tests/fixtures/quiz_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/tests/fixtures/text_question_fixture.php b/plugins/quiz/tests/fixtures/text_question_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/quiz/vendors/css/quiz.css b/plugins/quiz/vendors/css/quiz.css old mode 100644 new mode 100755 index 6fa569b..09df281 --- a/plugins/quiz/vendors/css/quiz.css +++ b/plugins/quiz/vendors/css/quiz.css @@ -376,4 +376,9 @@ ol.quiz-question-list li a.quiz-question-action { ol.quiz-question-list li a.quiz-question-action.hidden { display:none; +} + +.quiz-question-placeholder { + border:1px solid #FCEFA1; + background:#6EA6D5; } \ No newline at end of file diff --git a/plugins/quiz/views/choice_questions/preview.ctp b/plugins/quiz/views/choice_questions/preview.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/TextQuestion.association_list.ctp b/plugins/quiz/views/elements/TextQuestion.association_list.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/TextQuestion.view.ctp b/plugins/quiz/views/elements/TextQuestion.view.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/answering/choice_question.ctp b/plugins/quiz/views/elements/answering/choice_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/answering/matching_question.ctp b/plugins/quiz/views/elements/answering/matching_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/answering/ordering_question.ctp b/plugins/quiz/views/elements/answering/ordering_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/answering/text_question.ctp b/plugins/quiz/views/elements/answering/text_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/json.ctp b/plugins/quiz/views/elements/json.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/listing/choice_question.ctp b/plugins/quiz/views/elements/listing/choice_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/listing/matching_question.ctp b/plugins/quiz/views/elements/listing/matching_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/listing/ordering_question.ctp b/plugins/quiz/views/elements/listing/ordering_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/listing/text_question.ctp b/plugins/quiz/views/elements/listing/text_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/placeholders/head.ctp b/plugins/quiz/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/previewing/choice_question.ctp b/plugins/quiz/views/elements/previewing/choice_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/previewing/matching_question.ctp b/plugins/quiz/views/elements/previewing/matching_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/previewing/ordering_question.ctp b/plugins/quiz/views/elements/previewing/ordering_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/previewing/text_question.ctp b/plugins/quiz/views/elements/previewing/text_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/question_drop_list.ctp b/plugins/quiz/views/elements/question_drop_list.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/elements/selection_list.add_question.ctp b/plugins/quiz/views/elements/selection_list.add_question.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/matching_questions/preview.ctp b/plugins/quiz/views/matching_questions/preview.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/ordering_questions/preview.ctp b/plugins/quiz/views/ordering_questions/preview.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/quizzes/answer.ctp b/plugins/quiz/views/quizzes/answer.ctp old mode 100644 new mode 100755 diff --git a/plugins/quiz/views/quizzes/edit.ctp b/plugins/quiz/views/quizzes/edit.ctp index 728b038..7a33883 100755 --- a/plugins/quiz/views/quizzes/edit.ctp +++ b/plugins/quiz/views/quizzes/edit.ctp @@ -1,3 +1,4 @@ +<?php $javascript->link(array('jquery/plugins/jquery.ui.core','jquery/plugins/jquery.ui.sortable'),false); ?> <h1><?php echo sprintf(__('Edit %s %s', true), __('Quiz', true), $form->value('Quiz.name'));?></h1> <div class="question-list"> <?php @@ -49,7 +50,7 @@ $total = count($this->data['Question']); foreach ($this->data['Question'] as $index => $question) { echo - '<li>', + "<li id='".$question['QuizQuestion']['id']."'", '<h3>' , __(Inflector::humanize(Inflector::underscore($question['type'])), true) , '</h3>' , @@ -76,12 +77,37 @@ </div> <script type="text/javascript"> $(document).ready(function(){ + var setPositionURL = '<?php echo $html->url(array('controller' => 'quizzes','action' => 'move_question')); ?>'; function jsonSucces(json) { return ('flash' in json) && ('params' in json.flash) && ('class' in json.flash.params) && (json.flash.params.class == 'success'); } + + function fixMoveButtons(question) { + question + .parent() + .children('li:first-child') + .children('a.question-move-up').hide() + .end() + .children('a.question-move-down').show() + .end() + .next() + .children('a.question-move-up').show() + .end() + .children('a.question-move-down').show() + .end() + .end() + .end() + .children('li:last-child') + .children('a.question-move-up').show() + .end() + .children('a.question-move-down').hide() + .end() + .prev() + .children('a.question-move-down').show(); + } function questionPreview() { var link = $(this); if (!link.hasClass('content-loaded')) { @@ -137,36 +163,16 @@ $(document).ready(function(){ success : function(data,status) { if (jsonSucces(data)) { var question = link.parent('li').hide('slow',function() { - var previous = question.prev('li'); - var next = question.next('li'); + var previous = question.prev('li'); + var next = question.next('li'); + + if ($(event.target).is('a.question-move-up')) + previous.before(question); + else + next.after(question); - if ($(event.target).is('a.question-move-up')) - previous.before(question); - else - next.after(question); + fixMoveButtons(question); - question - .parent() - .children('li:first-child') - .children('a.question-move-up').hide() - .end() - .children('a.question-move-down').show() - .end() - .next() - .children('a.question-move-up').show() - .end() - .children('a.question-move-down').show() - .end() - .end() - .end() - .children('li:last-child') - .children('a.question-move-up').show() - .end() - .children('a.question-move-down').hide() - .end() - .prev() - .children('a.question-move-down').show(); - question.show('slow',function() { question.css('display','list-item'); }); @@ -185,6 +191,33 @@ $(document).ready(function(){ $('#questions .list ul li a.question-preview-link').click(questionPreview); $('ol.quiz-question-list a.question-remove').live('click',removeQuestion); $('ol.quiz-question-list a.question-move-up, ol.quiz-question-list a.question-move-down').live('click',moveQuestion); - + $(".quiz-question-list").sortable({ + handle:'h3', + placeholder: 'quiz-question-placeholder', + opacity: 0.5, + axis: 'y', + cursor: 'move', + update: function (event,element) { + var newOrder = $(".quiz-question-list").sortable('toArray'); + var item = $(element.item); + var position = $.inArray(item.attr('id'),newOrder) + 1; + $.ajax({ + url : setPositionURL + '/' + item.attr('id') + '/to/' + position + '.json', + dataType : 'json', + success : function(data,status) { + if (jsonSucces(data)) { + fixMoveButtons(item); + } + }, + beforeSend : function() { + item.children(':first-child :header').addClass('loading'); + }, + complete : function() { + item.children(':first-child :header').removeClass('loading'); + } + }); + + } + }); }); </script> \ No newline at end of file diff --git a/plugins/quiz/views/text_questions/preview.ctp b/plugins/quiz/views/text_questions/preview.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/config/description.php b/plugins/scorm/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/config/permissions.php b/plugins/scorm/config/permissions.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/config/sql/schema.php b/plugins/scorm/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/config/sql/scorm.sql b/plugins/scorm/config/sql/scorm.sql old mode 100644 new mode 100755 diff --git a/plugins/scorm/controllers/components/scorm_holder.php b/plugins/scorm/controllers/components/scorm_holder.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/controllers/scorm_attendee_trackings_controller.php b/plugins/scorm/controllers/scorm_attendee_trackings_controller.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/controllers/scorms_controller.php b/plugins/scorm/controllers/scorms_controller.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/controllers/scos_controller.php b/plugins/scorm/controllers/scos_controller.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/locale/por/LC_MESSAGES/default.po b/plugins/scorm/locale/por/LC_MESSAGES/default.po old mode 100644 new mode 100755 diff --git a/plugins/scorm/locale/scorm.pot b/plugins/scorm/locale/scorm.pot old mode 100644 new mode 100755 diff --git a/plugins/scorm/locale/spa/LC_MESSAGES/scorm.po b/plugins/scorm/locale/spa/LC_MESSAGES/scorm.po old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/choice_consideration.php b/plugins/scorm/models/choice_consideration.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/condition.php b/plugins/scorm/models/condition.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/control_mode.php b/plugins/scorm/models/control_mode.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/delivery_control.php b/plugins/scorm/models/delivery_control.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/map_info.php b/plugins/scorm/models/map_info.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/objective.php b/plugins/scorm/models/objective.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/randomization.php b/plugins/scorm/models/randomization.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/rollup.php b/plugins/scorm/models/rollup.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/rollup_consideration.php b/plugins/scorm/models/rollup_consideration.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/rule.php b/plugins/scorm/models/rule.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/sco.php b/plugins/scorm/models/sco.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/sco_presentation.php b/plugins/scorm/models/sco_presentation.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/scorm.php b/plugins/scorm/models/scorm.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/models/scorm_attendee_tracking.php b/plugins/scorm/models/scorm_attendee_tracking.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/scorm_app_controller.php b/plugins/scorm/scorm_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/scorm_app_model.php b/plugins/scorm/scorm_app_model.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/helpers/empty b/plugins/scorm/tests/cases/helpers/empty old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/choice_consideration.test.php b/plugins/scorm/tests/cases/models/choice_consideration.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/condition.test.php b/plugins/scorm/tests/cases/models/condition.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/control_mode.test.php b/plugins/scorm/tests/cases/models/control_mode.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/delivery_control.test.php b/plugins/scorm/tests/cases/models/delivery_control.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/map_info.test.php b/plugins/scorm/tests/cases/models/map_info.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/objective.test.php b/plugins/scorm/tests/cases/models/objective.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/randomization.test.php b/plugins/scorm/tests/cases/models/randomization.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/rollup.test.php b/plugins/scorm/tests/cases/models/rollup.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/rollup_consideration.test.php b/plugins/scorm/tests/cases/models/rollup_consideration.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/rule.test.php b/plugins/scorm/tests/cases/models/rule.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/sco.test.php b/plugins/scorm/tests/cases/models/sco.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/sco_presentation.test.php b/plugins/scorm/tests/cases/models/sco_presentation.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/cases/models/scorm.test.php b/plugins/scorm/tests/cases/models/scorm.test.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/choice_consideration_fixture.php b/plugins/scorm/tests/fixtures/choice_consideration_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/condition_fixture.php b/plugins/scorm/tests/fixtures/condition_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/control_mode_fixture.php b/plugins/scorm/tests/fixtures/control_mode_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/delivery_control_fixture.php b/plugins/scorm/tests/fixtures/delivery_control_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/empty b/plugins/scorm/tests/fixtures/empty old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/map_info_fixture.php b/plugins/scorm/tests/fixtures/map_info_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/objective_fixture.php b/plugins/scorm/tests/fixtures/objective_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/randomization_fixture.php b/plugins/scorm/tests/fixtures/randomization_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/rollup_consideration_fixture.php b/plugins/scorm/tests/fixtures/rollup_consideration_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/rollup_fixture.php b/plugins/scorm/tests/fixtures/rollup_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/rule_fixture.php b/plugins/scorm/tests/fixtures/rule_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/sco_fixture.php b/plugins/scorm/tests/fixtures/sco_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/sco_presentation_fixture.php b/plugins/scorm/tests/fixtures/sco_presentation_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/fixtures/scorm_fixture.php b/plugins/scorm/tests/fixtures/scorm_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/groups/empty b/plugins/scorm/tests/groups/empty old mode 100644 new mode 100755 diff --git a/plugins/scorm/tests/groups/models.group.php b/plugins/scorm/tests/groups/models.group.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/vendors/css/jquery.treeview.css b/plugins/scorm/vendors/css/jquery.treeview.css old mode 100644 new mode 100755 diff --git a/plugins/scorm/vendors/css/scorm.css b/plugins/scorm/vendors/css/scorm.css old mode 100644 new mode 100755 diff --git a/plugins/scorm/vendors/js/controls.js b/plugins/scorm/vendors/js/controls.js old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/elements/placeholders/head.ctp b/plugins/scorm/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/elements/scorms/scorm_toc.ctp b/plugins/scorm/views/elements/scorms/scorm_toc.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/layouts/js/default.ctp b/plugins/scorm/views/layouts/js/default.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/layouts/viewport.ctp b/plugins/scorm/views/layouts/viewport.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorm.php b/plugins/scorm/views/scorm.php old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorms/add.ctp b/plugins/scorm/views/scorms/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorms/edit.ctp b/plugins/scorm/views/scorms/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorms/index.ctp b/plugins/scorm/views/scorms/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorms/toc.ctp b/plugins/scorm/views/scorms/toc.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scorms/view.ctp b/plugins/scorm/views/scorms/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scos/js/api.ctp b/plugins/scorm/views/scos/js/api.ctp old mode 100644 new mode 100755 diff --git a/plugins/scorm/views/scos/json/completed.ctp b/plugins/scorm/views/scos/json/completed.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/config/description.php b/plugins/wiki/config/description.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/config/permissions.php b/plugins/wiki/config/permissions.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/config/sql/schema.php b/plugins/wiki/config/sql/schema.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/config/sql/wiki.sql b/plugins/wiki/config/sql/wiki.sql old mode 100644 new mode 100755 diff --git a/plugins/wiki/controllers/components/diff.php b/plugins/wiki/controllers/components/diff.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/controllers/components/wiki_holder.php b/plugins/wiki/controllers/components/wiki_holder.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/controllers/entries_controller.php b/plugins/wiki/controllers/entries_controller.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/controllers/revisions_controller.php b/plugins/wiki/controllers/revisions_controller.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/controllers/wikis_controller.php b/plugins/wiki/controllers/wikis_controller.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/locale/spa/LC_MESSAGES/wiki.po b/plugins/wiki/locale/spa/LC_MESSAGES/wiki.po old mode 100644 new mode 100755 diff --git a/plugins/wiki/locale/wiki.pot b/plugins/wiki/locale/wiki.pot old mode 100644 new mode 100755 diff --git a/plugins/wiki/models/entry.php b/plugins/wiki/models/entry.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/models/revision.php b/plugins/wiki/models/revision.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/models/wiki.php b/plugins/wiki/models/wiki.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/cases/controllers/entries_controller.test.php b/plugins/wiki/tests/cases/controllers/entries_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/cases/controllers/wikis_controller.test.php b/plugins/wiki/tests/cases/controllers/wikis_controller.test.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/cases/models/entry.test.php b/plugins/wiki/tests/cases/models/entry.test.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/cases/models/revision.test.php b/plugins/wiki/tests/cases/models/revision.test.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/cases/models/wiki.test.php b/plugins/wiki/tests/cases/models/wiki.test.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/fixtures/entry_fixture.php b/plugins/wiki/tests/fixtures/entry_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/fixtures/revision_fixture.php b/plugins/wiki/tests/fixtures/revision_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/tests/fixtures/wiki_fixture.php b/plugins/wiki/tests/fixtures/wiki_fixture.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/vendors/css/wiki.css b/plugins/wiki/vendors/css/wiki.css old mode 100644 new mode 100755 diff --git a/plugins/wiki/vendors/diff/diff_engine.php b/plugins/wiki/vendors/diff/diff_engine.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/entry.ctp b/plugins/wiki/views/elements/entry.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/placeholders/course_dashboard.ctp b/plugins/wiki/views/elements/placeholders/course_dashboard.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/placeholders/head.ctp b/plugins/wiki/views/elements/placeholders/head.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/placeholders/plugin_updates.ctp b/plugins/wiki/views/elements/placeholders/plugin_updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/recent_entry.ctp b/plugins/wiki/views/elements/recent_entry.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/elements/updates.ctp b/plugins/wiki/views/elements/updates.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/entries/add.ctp b/plugins/wiki/views/entries/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/entries/edit.ctp b/plugins/wiki/views/entries/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/entries/index.ctp b/plugins/wiki/views/entries/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/entries/view.ctp b/plugins/wiki/views/entries/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/helpers/wiki.php b/plugins/wiki/views/helpers/wiki.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/revisions/diff.ctp b/plugins/wiki/views/revisions/diff.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/revisions/history.ctp b/plugins/wiki/views/revisions/history.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/revisions/view.ctp b/plugins/wiki/views/revisions/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/wikis/add.ctp b/plugins/wiki/views/wikis/add.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/wikis/edit.ctp b/plugins/wiki/views/wikis/edit.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/wikis/index.ctp b/plugins/wiki/views/wikis/index.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/views/wikis/view.ctp b/plugins/wiki/views/wikis/view.ctp old mode 100644 new mode 100755 diff --git a/plugins/wiki/wiki_app_controller.php b/plugins/wiki/wiki_app_controller.php old mode 100644 new mode 100755 diff --git a/plugins/wiki/wiki_app_model.php b/plugins/wiki/wiki_app_model.php old mode 100644 new mode 100755 diff --git a/tests/cases/behaviors/hookable.test.php b/tests/cases/behaviors/hookable.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/behaviors/sluggable.test.php b/tests/cases/behaviors/sluggable.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/behaviors/taggable.test.php b/tests/cases/behaviors/taggable.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/components/placeholder_component.test.php b/tests/cases/components/placeholder_component.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/components/placeholder_data_component.test.php b/tests/cases/components/placeholder_data_component.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/components/zip_component.test.php b/tests/cases/components/zip_component.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/controllers/courses_controller.test.php b/tests/cases/controllers/courses_controller.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/controllers/departments_controller.test.php b/tests/cases/controllers/departments_controller.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/helpers/placeholder.test.php b/tests/cases/helpers/placeholder.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/helpers/simple_html_dom.test.php b/tests/cases/helpers/simple_html_dom.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/course.test.php b/tests/cases/models/course.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/department.test.php b/tests/cases/models/department.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/member.test.php b/tests/cases/models/member.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/model_log.test.php b/tests/cases/models/model_log.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/role.test.php b/tests/cases/models/role.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/setting.test.php b/tests/cases/models/setting.test.php old mode 100644 new mode 100755 diff --git a/tests/cases/models/tag.test.php b/tests/cases/models/tag.test.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/course_fixture.php b/tests/fixtures/course_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/department_fixture.php b/tests/fixtures/department_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/hookable_fixture.php b/tests/fixtures/hookable_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/hookable_model_fixture.php b/tests/fixtures/hookable_model_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/images_tag_fixture.php b/tests/fixtures/images_tag_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/member_fixture.php b/tests/fixtures/member_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/model_log_fixture.php b/tests/fixtures/model_log_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugin_fixture.php b/tests/fixtures/plugin_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake/controllers/components/fake_holder.php b/tests/fixtures/plugins/fake/controllers/components/fake_holder.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake/controllers/components/fake_menu_holder.php b/tests/fixtures/plugins/fake/controllers/components/fake_menu_holder.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake/views/elements/placeholders/menu.ctp b/tests/fixtures/plugins/fake/views/elements/placeholders/menu.ctp old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake2/controllers/components/fake2_holder.php b/tests/fixtures/plugins/fake2/controllers/components/fake2_holder.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake2/controllers/components/fake2_other_holder.php b/tests/fixtures/plugins/fake2/controllers/components/fake2_other_holder.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/plugins/fake2/views/elements/placeholders/other.ctp b/tests/fixtures/plugins/fake2/views/elements/placeholders/other.ctp old mode 100644 new mode 100755 diff --git a/tests/fixtures/role_fixture.php b/tests/fixtures/role_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/setting_fixture.php b/tests/fixtures/setting_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/slug_article_fixture.php b/tests/fixtures/slug_article_fixture.php old mode 100644 new mode 100755 diff --git a/tests/fixtures/tag_fixture.php b/tests/fixtures/tag_fixture.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.auto.php b/vendors/htmlpurifier/HTMLPurifier.auto.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.autoload.php b/vendors/htmlpurifier/HTMLPurifier.autoload.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.func.php b/vendors/htmlpurifier/HTMLPurifier.func.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.includes.php b/vendors/htmlpurifier/HTMLPurifier.includes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.kses.php b/vendors/htmlpurifier/HTMLPurifier.kses.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.path.php b/vendors/htmlpurifier/HTMLPurifier.path.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.php b/vendors/htmlpurifier/HTMLPurifier.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier.safe-includes.php b/vendors/htmlpurifier/HTMLPurifier.safe-includes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrCollections.php b/vendors/htmlpurifier/HTMLPurifier/AttrCollections.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/AlphaValue.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/AlphaValue.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Background.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Background.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Border.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Border.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Color.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Color.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Composite.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Composite.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Filter.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Filter.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Font.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Font.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/FontFamily.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/FontFamily.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Length.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Length.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/ListStyle.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/ListStyle.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Multiple.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Multiple.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Number.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Number.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Percentage.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/Percentage.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/TextDecoration.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/TextDecoration.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/URI.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/CSS/URI.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/Enum.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/Enum.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Bool.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Bool.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Color.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Color.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/FrameTarget.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/FrameTarget.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/ID.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/ID.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Length.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Length.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/LinkTypes.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/LinkTypes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/MultiLength.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/MultiLength.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Nmtokens.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Nmtokens.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Pixels.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Pixels.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/Integer.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/Integer.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/Lang.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/Lang.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/Text.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/Text.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Email.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Email.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Host.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/Host.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/IPv4.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/IPv4.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/IPv6.php b/vendors/htmlpurifier/HTMLPurifier/AttrDef/URI/IPv6.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BdoDir.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BdoDir.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BgColor.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BgColor.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Border.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Border.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/EnumToCSS.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/EnumToCSS.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ImgRequired.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ImgRequired.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ImgSpace.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ImgSpace.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Lang.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Lang.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Length.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Length.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Name.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/Name.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ScriptRequired.php b/vendors/htmlpurifier/HTMLPurifier/AttrTransform/ScriptRequired.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrTypes.php b/vendors/htmlpurifier/HTMLPurifier/AttrTypes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/AttrValidator.php b/vendors/htmlpurifier/HTMLPurifier/AttrValidator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Bootstrap.php b/vendors/htmlpurifier/HTMLPurifier/Bootstrap.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/CSSDefinition.php b/vendors/htmlpurifier/HTMLPurifier/CSSDefinition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Chameleon.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Chameleon.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Custom.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Custom.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Empty.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Empty.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Optional.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Optional.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Required.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Required.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/StrictBlockquote.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/StrictBlockquote.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ChildDef/Table.php b/vendors/htmlpurifier/HTMLPurifier/ChildDef/Table.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Config.php b/vendors/htmlpurifier/HTMLPurifier/Config.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigDef.php b/vendors/htmlpurifier/HTMLPurifier/ConfigDef.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigDef/Directive.php b/vendors/htmlpurifier/HTMLPurifier/ConfigDef/Directive.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigDef/DirectiveAlias.php b/vendors/htmlpurifier/HTMLPurifier/ConfigDef/DirectiveAlias.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigDef/Namespace.php b/vendors/htmlpurifier/HTMLPurifier/ConfigDef/Namespace.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Builder/Xml.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Builder/Xml.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Exception.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Exception.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Directive.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Directive.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Id.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Id.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Namespace.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Interchange/Namespace.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/InterchangeBuilder.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/InterchangeBuilder.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Validator.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/Validator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/ValidatorAtom.php b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/ValidatorAtom.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema.ser b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema.ser old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedFrameTargets.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedFrameTargets.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRel.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRel.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRev.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRev.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImage.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImage.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImageAlt.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImageAlt.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultTextDir.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.DefaultTextDir.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.EnableID.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.EnableID.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklist.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklist.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklistRegexp.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklistRegexp.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefix.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefix.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefixLocal.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefixLocal.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Attr.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.AutoParagraph.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.AutoParagraph.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.Custom.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.Custom.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.Linkify.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.Linkify.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormat.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowImportant.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowImportant.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowTricky.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowTricky.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowedProperties.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.AllowedProperties.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.DefinitionRev.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.DefinitionRev.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.Proprietary.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.Proprietary.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/CSS.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.DefinitionImpl.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.DefinitionImpl.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPath.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPath.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Cache.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.AggressivelyFixLt.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.AggressivelyFixLt.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.CollectErrors.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.CollectErrors.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.ColorKeywords.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.ColorKeywords.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.ConvertDocumentToFragment.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.ConvertDocumentToFragment.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.DirectLexLineNumberSyncInterval.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.DirectLexLineNumberSyncInterval.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.Encoding.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.Encoding.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidChildren.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidChildren.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidTags.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidTags.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeNonASCIICharacters.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.EscapeNonASCIICharacters.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.HiddenElements.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.HiddenElements.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.Language.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.Language.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.LexerImpl.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.LexerImpl.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.MaintainLineNumbers.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.MaintainLineNumbers.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.RemoveInvalidImg.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.RemoveInvalidImg.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.RemoveScriptContents.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.RemoveScriptContents.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Core.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.Custom.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.Custom.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.YouTube.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.YouTube.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Filter.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksEscaping.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksEscaping.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksScope.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksScope.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksTidyImpl.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksTidyImpl.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/FilterParam.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Allowed.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Allowed.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedAttributes.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedAttributes.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedElements.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedElements.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedModules.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.AllowedModules.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.BlockWrapper.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.BlockWrapper.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.CoreModules.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.CoreModules.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.CustomDoctype.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.CustomDoctype.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionRev.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionRev.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Doctype.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Doctype.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenAttributes.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenAttributes.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenElements.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenElements.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Parent.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Parent.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Proprietary.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Proprietary.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Strict.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Strict.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyAdd.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyAdd.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyLevel.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyLevel.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyRemove.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.TidyRemove.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Trusted.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.Trusted.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.XHTML.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.XHTML.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/HTML.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.CommentScriptContents.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.CommentScriptContents.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.Newline.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.Newline.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.TidyFormat.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.TidyFormat.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Output.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Test.ForceNoIconv.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Test.ForceNoIconv.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Test.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/Test.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Base.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Base.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefaultScheme.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefaultScheme.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefinitionID.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefinitionID.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefinitionRev.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DefinitionRev.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Disable.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Disable.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableExternal.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableExternal.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableExternalResources.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableExternalResources.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Host.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Host.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.HostBlacklist.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.HostBlacklist.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.MakeAbsolute.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.MakeAbsolute.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Munge.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.Munge.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.OverrideAllowedSchemes.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.OverrideAllowedSchemes.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.txt b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/URI.txt old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/info.ini b/vendors/htmlpurifier/HTMLPurifier/ConfigSchema/schema/info.ini old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ContentSets.php b/vendors/htmlpurifier/HTMLPurifier/ContentSets.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Context.php b/vendors/htmlpurifier/HTMLPurifier/Context.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Definition.php b/vendors/htmlpurifier/HTMLPurifier/Definition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Memory.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Memory.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Template.php.in b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Decorator/Template.php.in old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Null.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Null.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DefinitionCacheFactory.php b/vendors/htmlpurifier/HTMLPurifier/DefinitionCacheFactory.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Doctype.php b/vendors/htmlpurifier/HTMLPurifier/Doctype.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/DoctypeRegistry.php b/vendors/htmlpurifier/HTMLPurifier/DoctypeRegistry.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ElementDef.php b/vendors/htmlpurifier/HTMLPurifier/ElementDef.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Encoder.php b/vendors/htmlpurifier/HTMLPurifier/Encoder.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/EntityLookup.php b/vendors/htmlpurifier/HTMLPurifier/EntityLookup.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/EntityLookup/entities.ser b/vendors/htmlpurifier/HTMLPurifier/EntityLookup/entities.ser old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/EntityParser.php b/vendors/htmlpurifier/HTMLPurifier/EntityParser.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/ErrorCollector.php b/vendors/htmlpurifier/HTMLPurifier/ErrorCollector.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Exception.php b/vendors/htmlpurifier/HTMLPurifier/Exception.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Filter.php b/vendors/htmlpurifier/HTMLPurifier/Filter.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Filter/ExtractStyleBlocks.php b/vendors/htmlpurifier/HTMLPurifier/Filter/ExtractStyleBlocks.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Filter/Ustream.php b/vendors/htmlpurifier/HTMLPurifier/Filter/Ustream.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Filter/YouTube.php b/vendors/htmlpurifier/HTMLPurifier/Filter/YouTube.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Generator.php b/vendors/htmlpurifier/HTMLPurifier/Generator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLDefinition.php b/vendors/htmlpurifier/HTMLPurifier/HTMLDefinition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Bdo.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Bdo.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/CommonAttributes.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/CommonAttributes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Edit.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Edit.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Image.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Image.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Legacy.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Legacy.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/List.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/List.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Object.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Object.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Proprietary.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Proprietary.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Ruby.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Ruby.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Scripting.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Scripting.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/StyleAttribute.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/StyleAttribute.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tables.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tables.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Target.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Target.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Text.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Text.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Proprietary.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Proprietary.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Strict.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Strict.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Transitional.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Transitional.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/XHTML.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/XHTML.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModule/XMLCommonAttributes.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModule/XMLCommonAttributes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/HTMLModuleManager.php b/vendors/htmlpurifier/HTMLPurifier/HTMLModuleManager.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/IDAccumulator.php b/vendors/htmlpurifier/HTMLPurifier/IDAccumulator.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Injector.php b/vendors/htmlpurifier/HTMLPurifier/Injector.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Injector/AutoParagraph.php b/vendors/htmlpurifier/HTMLPurifier/Injector/AutoParagraph.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Injector/Linkify.php b/vendors/htmlpurifier/HTMLPurifier/Injector/Linkify.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Injector/PurifierLinkify.php b/vendors/htmlpurifier/HTMLPurifier/Injector/PurifierLinkify.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Language.php b/vendors/htmlpurifier/HTMLPurifier/Language.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Language/classes/en-x-test.php b/vendors/htmlpurifier/HTMLPurifier/Language/classes/en-x-test.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Language/messages/en-x-test.php b/vendors/htmlpurifier/HTMLPurifier/Language/messages/en-x-test.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Language/messages/en-x-testmini.php b/vendors/htmlpurifier/HTMLPurifier/Language/messages/en-x-testmini.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Language/messages/en.php b/vendors/htmlpurifier/HTMLPurifier/Language/messages/en.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/LanguageFactory.php b/vendors/htmlpurifier/HTMLPurifier/LanguageFactory.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Lexer.php b/vendors/htmlpurifier/HTMLPurifier/Lexer.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Lexer/DOMLex.php b/vendors/htmlpurifier/HTMLPurifier/Lexer/DOMLex.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Lexer/DirectLex.php b/vendors/htmlpurifier/HTMLPurifier/Lexer/DirectLex.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Lexer/PEARSax3.php b/vendors/htmlpurifier/HTMLPurifier/Lexer/PEARSax3.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Lexer/PH5P.php b/vendors/htmlpurifier/HTMLPurifier/Lexer/PH5P.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/PercentEncoder.php b/vendors/htmlpurifier/HTMLPurifier/PercentEncoder.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer.php b/vendors/htmlpurifier/HTMLPurifier/Printer.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer/CSSDefinition.php b/vendors/htmlpurifier/HTMLPurifier/Printer/CSSDefinition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.css b/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.css old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.js b/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.js old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.php b/vendors/htmlpurifier/HTMLPurifier/Printer/ConfigForm.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Printer/HTMLDefinition.php b/vendors/htmlpurifier/HTMLPurifier/Printer/HTMLDefinition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy.php b/vendors/htmlpurifier/HTMLPurifier/Strategy.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/Composite.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/Composite.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/Core.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/Core.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/FixNesting.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/FixNesting.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/MakeWellFormed.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/MakeWellFormed.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/RemoveForeignElements.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/RemoveForeignElements.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Strategy/ValidateAttributes.php b/vendors/htmlpurifier/HTMLPurifier/Strategy/ValidateAttributes.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/StringHash.php b/vendors/htmlpurifier/HTMLPurifier/StringHash.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/StringHashParser.php b/vendors/htmlpurifier/HTMLPurifier/StringHashParser.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/TagTransform.php b/vendors/htmlpurifier/HTMLPurifier/TagTransform.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/TagTransform/Font.php b/vendors/htmlpurifier/HTMLPurifier/TagTransform/Font.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/TagTransform/Simple.php b/vendors/htmlpurifier/HTMLPurifier/TagTransform/Simple.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token.php b/vendors/htmlpurifier/HTMLPurifier/Token.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/Comment.php b/vendors/htmlpurifier/HTMLPurifier/Token/Comment.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/Empty.php b/vendors/htmlpurifier/HTMLPurifier/Token/Empty.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/End.php b/vendors/htmlpurifier/HTMLPurifier/Token/End.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/Start.php b/vendors/htmlpurifier/HTMLPurifier/Token/Start.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/Tag.php b/vendors/htmlpurifier/HTMLPurifier/Token/Tag.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/Token/Text.php b/vendors/htmlpurifier/HTMLPurifier/Token/Text.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/TokenFactory.php b/vendors/htmlpurifier/HTMLPurifier/TokenFactory.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URI.php b/vendors/htmlpurifier/HTMLPurifier/URI.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIDefinition.php b/vendors/htmlpurifier/HTMLPurifier/URIDefinition.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIFilter.php b/vendors/htmlpurifier/HTMLPurifier/URIFilter.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIFilter/DisableExternal.php b/vendors/htmlpurifier/HTMLPurifier/URIFilter/DisableExternal.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIFilter/DisableExternalResources.php b/vendors/htmlpurifier/HTMLPurifier/URIFilter/DisableExternalResources.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIFilter/HostBlacklist.php b/vendors/htmlpurifier/HTMLPurifier/URIFilter/HostBlacklist.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIFilter/MakeAbsolute.php b/vendors/htmlpurifier/HTMLPurifier/URIFilter/MakeAbsolute.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIParser.php b/vendors/htmlpurifier/HTMLPurifier/URIParser.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/ftp.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/ftp.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/http.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/http.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/https.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/https.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/mailto.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/mailto.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/news.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/news.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URIScheme/nntp.php b/vendors/htmlpurifier/HTMLPurifier/URIScheme/nntp.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/URISchemeRegistry.php b/vendors/htmlpurifier/HTMLPurifier/URISchemeRegistry.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/VarParser.php b/vendors/htmlpurifier/HTMLPurifier/VarParser.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/VarParser/Flexible.php b/vendors/htmlpurifier/HTMLPurifier/VarParser/Flexible.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/VarParser/Native.php b/vendors/htmlpurifier/HTMLPurifier/VarParser/Native.php old mode 100644 new mode 100755 diff --git a/vendors/htmlpurifier/HTMLPurifier/VarParserException.php b/vendors/htmlpurifier/HTMLPurifier/VarParserException.php old mode 100644 new mode 100755 diff --git a/vendors/latexrender/latex_render.php b/vendors/latexrender/latex_render.php old mode 100644 new mode 100755 diff --git a/vendors/shells/osmosis.php b/vendors/shells/osmosis.php old mode 100644 new mode 100755 diff --git a/views/courses/add.ctp b/views/courses/add.ctp old mode 100644 new mode 100755 diff --git a/views/courses/admin_add.ctp b/views/courses/admin_add.ctp old mode 100644 new mode 100755 diff --git a/views/courses/admin_edit.ctp b/views/courses/admin_edit.ctp old mode 100644 new mode 100755 diff --git a/views/courses/admin_enroll.ctp b/views/courses/admin_enroll.ctp old mode 100644 new mode 100755 diff --git a/views/courses/admin_index.ctp b/views/courses/admin_index.ctp old mode 100644 new mode 100755 diff --git a/views/courses/admin_view.ctp b/views/courses/admin_view.ctp old mode 100644 new mode 100755 diff --git a/views/courses/edit.ctp b/views/courses/edit.ctp old mode 100644 new mode 100755 diff --git a/views/courses/index.ctp b/views/courses/index.ctp old mode 100644 new mode 100755 diff --git a/views/courses/tools.ctp b/views/courses/tools.ctp old mode 100644 new mode 100755 diff --git a/views/courses/view.ctp b/views/courses/view.ctp old mode 100644 new mode 100755 diff --git a/views/dashboards/admin_dashboard.ctp b/views/dashboards/admin_dashboard.ctp old mode 100644 new mode 100755 diff --git a/views/dashboards/connections.ctp b/views/dashboards/connections.ctp old mode 100644 new mode 100755 diff --git a/views/dashboards/messages.ctp b/views/dashboards/messages.ctp old mode 100644 new mode 100755 diff --git a/views/departments/add.ctp b/views/departments/add.ctp old mode 100644 new mode 100755 diff --git a/views/departments/admin_add.ctp b/views/departments/admin_add.ctp old mode 100644 new mode 100755 diff --git a/views/departments/admin_edit.ctp b/views/departments/admin_edit.ctp old mode 100644 new mode 100755 diff --git a/views/departments/admin_index.ctp b/views/departments/admin_index.ctp old mode 100644 new mode 100755 diff --git a/views/departments/admin_view.ctp b/views/departments/admin_view.ctp old mode 100644 new mode 100755 diff --git a/views/departments/edit.ctp b/views/departments/edit.ctp old mode 100644 new mode 100755 diff --git a/views/departments/index.ctp b/views/departments/index.ctp old mode 100644 new mode 100755 diff --git a/views/departments/view.ctp b/views/departments/view.ctp old mode 100644 new mode 100755 diff --git a/views/elements/course_description.ctp b/views/elements/course_description.ctp old mode 100644 new mode 100755 diff --git a/views/elements/dashboard/profile.ctp b/views/elements/dashboard/profile.ctp old mode 100644 new mode 100755 diff --git a/views/elements/email/html/password_recover.ctp b/views/elements/email/html/password_recover.ctp old mode 100644 new mode 100755 diff --git a/views/elements/email/html/styles_simple_email.ctp b/views/elements/email/html/styles_simple_email.ctp old mode 100644 new mode 100755 diff --git a/views/elements/email/html/welcome.ctp b/views/elements/email/html/welcome.ctp old mode 100644 new mode 100755 diff --git a/views/elements/email/text/password_recover.ctp b/views/elements/email/text/password_recover.ctp old mode 100644 new mode 100755 diff --git a/views/elements/email/text/welcome.ctp b/views/elements/email/text/welcome.ctp old mode 100644 new mode 100755 diff --git a/views/elements/layout/common_header.ctp b/views/elements/layout/common_header.ctp old mode 100644 new mode 100755 diff --git a/views/elements/layout/conectivism.ctp b/views/elements/layout/conectivism.ctp old mode 100644 new mode 100755 diff --git a/views/elements/layout/logo.ctp b/views/elements/layout/logo.ctp old mode 100644 new mode 100755 diff --git a/views/elements/layout/top_nav.ctp b/views/elements/layout/top_nav.ctp old mode 100644 new mode 100755 diff --git a/views/elements/layout/user_courses.ctp b/views/elements/layout/user_courses.ctp old mode 100644 new mode 100755 diff --git a/views/elements/plugin_box.ctp b/views/elements/plugin_box.ctp old mode 100644 new mode 100755 diff --git a/views/elements/professor_list.ctp b/views/elements/professor_list.ctp old mode 100644 new mode 100755 diff --git a/views/elements/ui/editor.ctp b/views/elements/ui/editor.ctp old mode 100644 new mode 100755 diff --git a/views/errors/missing_table.ctp b/views/errors/missing_table.ctp old mode 100644 new mode 100755 diff --git a/views/helpers/dynamicjs.php b/views/helpers/dynamicjs.php old mode 100644 new mode 100755 diff --git a/views/helpers/filter.php b/views/helpers/filter.php old mode 100644 new mode 100755 diff --git a/views/helpers/filters/latex.php b/views/helpers/filters/latex.php old mode 100644 new mode 100755 diff --git a/views/helpers/placeholder.php b/views/helpers/placeholder.php old mode 100644 new mode 100755 diff --git a/views/helpers/rating.php b/views/helpers/rating.php old mode 100644 new mode 100755 diff --git a/views/helpers/simple_html_dom.php b/views/helpers/simple_html_dom.php old mode 100644 new mode 100755 diff --git a/views/helpers/tree.php b/views/helpers/tree.php old mode 100644 new mode 100755 diff --git a/views/installer/configure_mailing.ctp b/views/installer/configure_mailing.ctp old mode 100644 new mode 100755 diff --git a/views/installer/database_info.ctp b/views/installer/database_info.ctp old mode 100644 new mode 100755 diff --git a/views/installer/init_acl.ctp b/views/installer/init_acl.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/admin.ctp b/views/layouts/admin.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/default.ctp b/views/layouts/default.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/email/html/default.ctp b/views/layouts/email/html/default.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/email/text/default.ctp b/views/layouts/email/text/default.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/install.ctp b/views/layouts/install.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/json/admin.ctp b/views/layouts/json/admin.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/json/default.ctp b/views/layouts/json/default.ctp old mode 100644 new mode 100755 diff --git a/views/layouts/no_course.ctp b/views/layouts/no_course.ctp old mode 100644 new mode 100755 diff --git a/views/members/add.ctp b/views/members/add.ctp old mode 100644 new mode 100755 diff --git a/views/members/admin_add.ctp b/views/members/admin_add.ctp old mode 100644 new mode 100755 diff --git a/views/members/admin_batch_load.ctp b/views/members/admin_batch_load.ctp old mode 100644 new mode 100755 diff --git a/views/members/admin_edit.ctp b/views/members/admin_edit.ctp old mode 100644 new mode 100755 diff --git a/views/members/admin_index.ctp b/views/members/admin_index.ctp old mode 100644 new mode 100755 diff --git a/views/members/admin_view.ctp b/views/members/admin_view.ctp old mode 100644 new mode 100755 diff --git a/views/members/edit.ctp b/views/members/edit.ctp old mode 100644 new mode 100755 diff --git a/views/members/json/admin_index.ctp b/views/members/json/admin_index.ctp old mode 100644 new mode 100755 diff --git a/views/members/login.ctp b/views/members/login.ctp old mode 100644 new mode 100755 diff --git a/views/members/recover.ctp b/views/members/recover.ctp old mode 100644 new mode 100755 diff --git a/views/members/recover_ask_question.ctp b/views/members/recover_ask_question.ctp old mode 100644 new mode 100755 diff --git a/views/members/recover_complete_change.ctp b/views/members/recover_complete_change.ctp old mode 100644 new mode 100755 diff --git a/views/members/security.ctp b/views/members/security.ctp old mode 100644 new mode 100755 diff --git a/views/members/view.ctp b/views/members/view.ctp old mode 100644 new mode 100755 diff --git a/views/members/xml/online.ctp b/views/members/xml/online.ctp old mode 100644 new mode 100755 diff --git a/views/plugins/admin_add.ctp b/views/plugins/admin_add.ctp old mode 100644 new mode 100755 diff --git a/views/plugins/admin_edit.ctp b/views/plugins/admin_edit.ctp old mode 100644 new mode 100755 diff --git a/views/plugins/admin_index.ctp b/views/plugins/admin_index.ctp old mode 100644 new mode 100755 diff --git a/views/plugins/admin_view.ctp b/views/plugins/admin_view.ctp old mode 100644 new mode 100755 diff --git a/webroot/css/cake.generic.css b/webroot/css/cake.generic.css old mode 100644 new mode 100755 diff --git a/webroot/css/debug.css b/webroot/css/debug.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/admin.css b/webroot/css/default/admin.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/forms.css b/webroot/css/default/forms.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/ie6_layout.css b/webroot/css/default/ie6_layout.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/ie_layout.css b/webroot/css/default/ie_layout.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/install.css b/webroot/css/default/install.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/layout.css b/webroot/css/default/layout.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/styles.css b/webroot/css/default/styles.css old mode 100644 new mode 100755 diff --git a/webroot/css/default/tables.css b/webroot/css/default/tables.css old mode 100644 new mode 100755 diff --git a/webroot/css/diff.css b/webroot/css/diff.css old mode 100644 new mode 100755 diff --git a/webroot/css/jquery.cluetip.css b/webroot/css/jquery.cluetip.css old mode 100644 new mode 100755 diff --git a/webroot/css/jquery.rating.css b/webroot/css/jquery.rating.css old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/jquery.js b/webroot/js/jquery/jquery.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.accordion.js b/webroot/js/jquery/plugins/jquery.accordion.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.autogrow.js b/webroot/js/jquery/plugins/jquery.autogrow.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.blockUI.js b/webroot/js/jquery/plugins/jquery.blockUI.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.cluetip.js b/webroot/js/jquery/plugins/jquery.cluetip.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.dimensions.js b/webroot/js/jquery/plugins/jquery.dimensions.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.easing.js b/webroot/js/jquery/plugins/jquery.easing.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.fieldselection.js b/webroot/js/jquery/plugins/jquery.fieldselection.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.flydom.js b/webroot/js/jquery/plugins/jquery.flydom.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.hoverIntent.js b/webroot/js/jquery/plugins/jquery.hoverIntent.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.jeditable.autogrow.js b/webroot/js/jquery/plugins/jquery.jeditable.autogrow.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.jeditable.js b/webroot/js/jquery/plugins/jquery.jeditable.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.lockerItem.js b/webroot/js/jquery/plugins/jquery.lockerItem.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.scrollTo.js b/webroot/js/jquery/plugins/jquery.scrollTo.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/jquery.ui.core.js b/webroot/js/jquery/plugins/jquery.ui.core.js index d911728..6be9993 100755 --- a/webroot/js/jquery/plugins/jquery.ui.core.js +++ b/webroot/js/jquery/plugins/jquery.ui.core.js @@ -1,289 +1,519 @@ -/* - * jQuery UI 1.5 - * - * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - * - */ -;(function($) { - -$.ui = { - plugin: { - add: function(module, option, set) { - var proto = $.ui[module].prototype; - for(var i in set) { - proto.plugins[i] = proto.plugins[i] || []; - proto.plugins[i].push([option, set[i]]); - } - }, - call: function(instance, name, args) { - var set = instance.plugins[name]; - if(!set) { return; } - - for (var i = 0; i < set.length; i++) { - if (instance.options[set[i][0]]) { - set[i][1].apply(instance.element, args); - } - } - } - }, - cssCache: {}, - css: function(name) { - if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; } - var tmp = $('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); - - //if (!$.browser.safari) - //tmp.appendTo('body'); - - //Opera and Safari set width and height to 0px instead of auto - //Safari returns rgba(0,0,0,0) when bgcolor is not set - $.ui.cssCache[name] = !!( - (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || - !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) - ); - try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){} - return $.ui.cssCache[name]; - }, - disableSelection: function(e) { - e.unselectable = "on"; - e.onselectstart = function() { return false; }; - if (e.style) { e.style.MozUserSelect = "none"; } - }, - enableSelection: function(e) { - e.unselectable = "off"; - e.onselectstart = function() { return true; }; - if (e.style) { e.style.MozUserSelect = ""; } - }, - hasScroll: function(e, a) { - var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false; - if (e[scroll] > 0) return true; e[scroll] = 1; - has = e[scroll] > 0 ? true : false; e[scroll] = 0; - return has; - } -}; - - -/** jQuery core modifications and additions **/ - -var _remove = $.fn.remove; -$.fn.remove = function() { - $("*", this).add(this).trigger("remove"); - return _remove.apply(this, arguments ); -}; - -// $.widget is a factory to create jQuery plugins -// taking some boilerplate code out of the plugin code -// created by Scott González and Jörn Zaefferer -function getter(namespace, plugin, method) { - var methods = $[namespace][plugin].getter || []; - methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods); - return ($.inArray(method, methods) != -1); -} - -$.widget = function(name, prototype) { - var namespace = name.split(".")[0]; - name = name.split(".")[1]; - - // create plugin method - $.fn[name] = function(options) { - var isMethodCall = (typeof options == 'string'), - args = Array.prototype.slice.call(arguments, 1); - - if (isMethodCall && getter(namespace, name, options)) { - var instance = $.data(this[0], name); - return (instance ? instance[options].apply(instance, args) - : undefined); - } - - return this.each(function() { - var instance = $.data(this, name); - if (isMethodCall && instance && $.isFunction(instance[options])) { - instance[options].apply(instance, args); - } else if (!isMethodCall) { - $.data(this, name, new $[namespace][name](this, options)); - } - }); - }; - - // create widget constructor - $[namespace][name] = function(element, options) { - var self = this; - - this.widgetName = name; - this.widgetBaseClass = namespace + '-' + name; - - this.options = $.extend({ disabled: false }, $[namespace][name].defaults, options); - this.element = $(element) - .bind('setData.' + name, function(e, key, value) { - return self.setData(key, value); - }) - .bind('getData.' + name, function(e, key) { - return self.getData(key); - }) - .bind('remove', function() { - return self.destroy(); - }); - this.init(); - }; - - // add widget prototype - $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); -}; - -$.widget.prototype = { - init: function() {}, - destroy: function() { - this.element.removeData(this.widgetName); - }, - - getData: function(key) { - return this.options[key]; - }, - setData: function(key, value) { - this.options[key] = value; - - if (key == 'disabled') { - this.element[value ? 'addClass' : 'removeClass']( - this.widgetBaseClass + '-disabled'); - } - }, - - enable: function() { - this.setData('disabled', false); - }, - disable: function() { - this.setData('disabled', true); - } -}; - - -/** Mouse Interaction Plugin **/ - -$.ui.mouse = { - mouseInit: function() { - var self = this; - - this.element.bind('mousedown.'+this.widgetName, function(e) { - return self.mouseDown(e); - }); - - // Prevent text selection in IE - if ($.browser.msie) { - this._mouseUnselectable = this.element.attr('unselectable'); - this.element.attr('unselectable', 'on'); - } - - this.started = false; - }, - - // TODO: make sure destroying one instance of mouse doesn't mess with - // other instances of mouse - mouseDestroy: function() { - this.element.unbind('.'+this.widgetName); - - // Restore text selection in IE - ($.browser.msie - && this.element.attr('unselectable', this._mouseUnselectable)); - }, - - mouseDown: function(e) { - // we may have missed mouseup (out of window) - (this._mouseStarted && this.mouseUp(e)); - - this._mouseDownEvent = e; - - var self = this, - btnIsLeft = (e.which == 1), - elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false); - if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) { - return true; - } - - this._mouseDelayMet = !this.options.delay; - if (!this._mouseDelayMet) { - this._mouseDelayTimer = setTimeout(function() { - self._mouseDelayMet = true; - }, this.options.delay); - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = (this.mouseStart(e) !== false); - if (!this._mouseStarted) { e.preventDefault(); return true; } - } - - // these delegates are required to keep context - this._mouseMoveDelegate = function(e) { - return self.mouseMove(e); - }; - this._mouseUpDelegate = function(e) { - return self.mouseUp(e); - }; - $(document) - .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - return false; - }, - - mouseMove: function(e) { - // IE mouseup check - mouseup happened when mouse was out of window - if ($.browser.msie && !e.button) { - return this.mouseUp(e); - } - - if (this._mouseStarted) { - this.mouseDrag(e); - return false; - } - - if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) { - this._mouseStarted = - (this.mouseStart(this._mouseDownEvent, e) !== false); - (this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e)); - } - - return !this._mouseStarted; - }, - - mouseUp: function(e) { - $(document) - .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - if (this._mouseStarted) { - this._mouseStarted = false; - this.mouseStop(e); - } - - return false; - }, - - mouseDistanceMet: function(e) { - return (Math.max( - Math.abs(this._mouseDownEvent.pageX - e.pageX), - Math.abs(this._mouseDownEvent.pageY - e.pageY) - ) >= this.options.distance - ); - }, - - mouseDelayMet: function(e) { - return this._mouseDelayMet; - }, - - // These are placeholder methods, to be overriden by extending plugin - mouseStart: function(e) {}, - mouseDrag: function(e) {}, - mouseStop: function(e) {}, - mouseCapture: function(e) { return true; } -}; - -$.ui.mouse.defaults = { - cancel: null, - distance: 1, - delay: 0 -}; - -})(jQuery); +/* + * jQuery UI 1.7.1 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ +;jQuery.ui || (function($) { + +var _remove = $.fn.remove, + isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); + +//Helper functions and ui object +$.ui = { + version: "1.7.1", + + // $.ui.plugin is deprecated. Use the proxy pattern instead. + plugin: { + add: function(module, option, set) { + var proto = $.ui[module].prototype; + for(var i in set) { + proto.plugins[i] = proto.plugins[i] || []; + proto.plugins[i].push([option, set[i]]); + } + }, + call: function(instance, name, args) { + var set = instance.plugins[name]; + if(!set || !instance.element[0].parentNode) { return; } + + for (var i = 0; i < set.length; i++) { + if (instance.options[set[i][0]]) { + set[i][1].apply(instance.element, args); + } + } + } + }, + + contains: function(a, b) { + return document.compareDocumentPosition + ? a.compareDocumentPosition(b) & 16 + : a !== b && a.contains(b); + }, + + hasScroll: function(el, a) { + + //If overflow is hidden, the element might have extra content, but the user wants to hide it + if ($(el).css('overflow') == 'hidden') { return false; } + + var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop', + has = false; + + if (el[scroll] > 0) { return true; } + + // TODO: determine which cases actually cause this to happen + // if the element doesn't have the scroll set, see if it's possible to + // set the scroll + el[scroll] = 1; + has = (el[scroll] > 0); + el[scroll] = 0; + return has; + }, + + isOverAxis: function(x, reference, size) { + //Determines when x coordinate is over "b" element axis + return (x > reference) && (x < (reference + size)); + }, + + isOver: function(y, x, top, left, height, width) { + //Determines when x, y coordinates is over "b" element + return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width); + }, + + keyCode: { + BACKSPACE: 8, + CAPS_LOCK: 20, + COMMA: 188, + CONTROL: 17, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + INSERT: 45, + LEFT: 37, + NUMPAD_ADD: 107, + NUMPAD_DECIMAL: 110, + NUMPAD_DIVIDE: 111, + NUMPAD_ENTER: 108, + NUMPAD_MULTIPLY: 106, + NUMPAD_SUBTRACT: 109, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SHIFT: 16, + SPACE: 32, + TAB: 9, + UP: 38 + } +}; + +// WAI-ARIA normalization +if (isFF2) { + var attr = $.attr, + removeAttr = $.fn.removeAttr, + ariaNS = "http://www.w3.org/2005/07/aaa", + ariaState = /^aria-/, + ariaRole = /^wairole:/; + + $.attr = function(elem, name, value) { + var set = value !== undefined; + + return (name == 'role' + ? (set + ? attr.call(this, elem, name, "wairole:" + value) + : (attr.apply(this, arguments) || "").replace(ariaRole, "")) + : (ariaState.test(name) + ? (set + ? elem.setAttributeNS(ariaNS, + name.replace(ariaState, "aaa:"), value) + : attr.call(this, elem, name.replace(ariaState, "aaa:"))) + : attr.apply(this, arguments))); + }; + + $.fn.removeAttr = function(name) { + return (ariaState.test(name) + ? this.each(function() { + this.removeAttributeNS(ariaNS, name.replace(ariaState, "")); + }) : removeAttr.call(this, name)); + }; +} + +//jQuery plugins +$.fn.extend({ + remove: function() { + // Safari has a native remove event which actually removes DOM elements, + // so we have to use triggerHandler instead of trigger (#3037). + $("*", this).add(this).each(function() { + $(this).triggerHandler("remove"); + }); + return _remove.apply(this, arguments ); + }, + + enableSelection: function() { + return this + .attr('unselectable', 'off') + .css('MozUserSelect', '') + .unbind('selectstart.ui'); + }, + + disableSelection: function() { + return this + .attr('unselectable', 'on') + .css('MozUserSelect', 'none') + .bind('selectstart.ui', function() { return false; }); + }, + + scrollParent: function() { + var scrollParent; + if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { + scrollParent = this.parents().filter(function() { + return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } else { + scrollParent = this.parents().filter(function() { + return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } + + return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; + } +}); + + +//Additional selectors +$.extend($.expr[':'], { + data: function(elem, i, match) { + return !!$.data(elem, match[3]); + }, + + focusable: function(element) { + var nodeName = element.nodeName.toLowerCase(), + tabIndex = $.attr(element, 'tabindex'); + return (/input|select|textarea|button|object/.test(nodeName) + ? !element.disabled + : 'a' == nodeName || 'area' == nodeName + ? element.href || !isNaN(tabIndex) + : !isNaN(tabIndex)) + // the element and all of its ancestors must be visible + // the browser may report that the area is hidden + && !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length; + }, + + tabbable: function(element) { + var tabIndex = $.attr(element, 'tabindex'); + return (isNaN(tabIndex) || tabIndex >= 0) && $(element).is(':focusable'); + } +}); + + +// $.widget is a factory to create jQuery plugins +// taking some boilerplate code out of the plugin code +function getter(namespace, plugin, method, args) { + function getMethods(type) { + var methods = $[namespace][plugin][type] || []; + return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods); + } + + var methods = getMethods('getter'); + if (args.length == 1 && typeof args[0] == 'string') { + methods = methods.concat(getMethods('getterSetter')); + } + return ($.inArray(method, methods) != -1); +} + +$.widget = function(name, prototype) { + var namespace = name.split(".")[0]; + name = name.split(".")[1]; + + // create plugin method + $.fn[name] = function(options) { + var isMethodCall = (typeof options == 'string'), + args = Array.prototype.slice.call(arguments, 1); + + // prevent calls to internal methods + if (isMethodCall && options.substring(0, 1) == '_') { + return this; + } + + // handle getter methods + if (isMethodCall && getter(namespace, name, options, args)) { + var instance = $.data(this[0], name); + return (instance ? instance[options].apply(instance, args) + : undefined); + } + + // handle initialization and non-getter methods + return this.each(function() { + var instance = $.data(this, name); + + // constructor + (!instance && !isMethodCall && + $.data(this, name, new $[namespace][name](this, options))._init()); + + // method call + (instance && isMethodCall && $.isFunction(instance[options]) && + instance[options].apply(instance, args)); + }); + }; + + // create widget constructor + $[namespace] = $[namespace] || {}; + $[namespace][name] = function(element, options) { + var self = this; + + this.namespace = namespace; + this.widgetName = name; + this.widgetEventPrefix = $[namespace][name].eventPrefix || name; + this.widgetBaseClass = namespace + '-' + name; + + this.options = $.extend({}, + $.widget.defaults, + $[namespace][name].defaults, + $.metadata && $.metadata.get(element)[name], + options); + + this.element = $(element) + .bind('setData.' + name, function(event, key, value) { + if (event.target == element) { + return self._setData(key, value); + } + }) + .bind('getData.' + name, function(event, key) { + if (event.target == element) { + return self._getData(key); + } + }) + .bind('remove', function() { + return self.destroy(); + }); + }; + + // add widget prototype + $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); + + // TODO: merge getter and getterSetter properties from widget prototype + // and plugin prototype + $[namespace][name].getterSetter = 'option'; +}; + +$.widget.prototype = { + _init: function() {}, + destroy: function() { + this.element.removeData(this.widgetName) + .removeClass(this.widgetBaseClass + '-disabled' + ' ' + this.namespace + '-state-disabled') + .removeAttr('aria-disabled'); + }, + + option: function(key, value) { + var options = key, + self = this; + + if (typeof key == "string") { + if (value === undefined) { + return this._getData(key); + } + options = {}; + options[key] = value; + } + + $.each(options, function(key, value) { + self._setData(key, value); + }); + }, + _getData: function(key) { + return this.options[key]; + }, + _setData: function(key, value) { + this.options[key] = value; + + if (key == 'disabled') { + this.element + [value ? 'addClass' : 'removeClass']( + this.widgetBaseClass + '-disabled' + ' ' + + this.namespace + '-state-disabled') + .attr("aria-disabled", value); + } + }, + + enable: function() { + this._setData('disabled', false); + }, + disable: function() { + this._setData('disabled', true); + }, + + _trigger: function(type, event, data) { + var callback = this.options[type], + eventName = (type == this.widgetEventPrefix + ? type : this.widgetEventPrefix + type); + + event = $.Event(event); + event.type = eventName; + + // copy original event properties over to the new event + // this would happen if we could call $.event.fix instead of $.Event + // but we don't have a way to force an event to be fixed multiple times + if (event.originalEvent) { + for (var i = $.event.props.length, prop; i;) { + prop = $.event.props[--i]; + event[prop] = event.originalEvent[prop]; + } + } + + this.element.trigger(event, data); + + return !($.isFunction(callback) && callback.call(this.element[0], event, data) === false + || event.isDefaultPrevented()); + } +}; + +$.widget.defaults = { + disabled: false +}; + + +/** Mouse Interaction Plugin **/ + +$.ui.mouse = { + _mouseInit: function() { + var self = this; + + this.element + .bind('mousedown.'+this.widgetName, function(event) { + return self._mouseDown(event); + }) + .bind('click.'+this.widgetName, function(event) { + if(self._preventClickEvent) { + self._preventClickEvent = false; + event.stopImmediatePropagation(); + return false; + } + }); + + // Prevent text selection in IE + if ($.browser.msie) { + this._mouseUnselectable = this.element.attr('unselectable'); + this.element.attr('unselectable', 'on'); + } + + this.started = false; + }, + + // TODO: make sure destroying one instance of mouse doesn't mess with + // other instances of mouse + _mouseDestroy: function() { + this.element.unbind('.'+this.widgetName); + + // Restore text selection in IE + ($.browser.msie + && this.element.attr('unselectable', this._mouseUnselectable)); + }, + + _mouseDown: function(event) { + // don't let more than one widget handle mouseStart + // TODO: figure out why we have to use originalEvent + event.originalEvent = event.originalEvent || {}; + if (event.originalEvent.mouseHandled) { return; } + + // we may have missed mouseup (out of window) + (this._mouseStarted && this._mouseUp(event)); + + this._mouseDownEvent = event; + + var self = this, + btnIsLeft = (event.which == 1), + elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false); + if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { + return true; + } + + this.mouseDelayMet = !this.options.delay; + if (!this.mouseDelayMet) { + this._mouseDelayTimer = setTimeout(function() { + self.mouseDelayMet = true; + }, this.options.delay); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = (this._mouseStart(event) !== false); + if (!this._mouseStarted) { + event.preventDefault(); + return true; + } + } + + // these delegates are required to keep context + this._mouseMoveDelegate = function(event) { + return self._mouseMove(event); + }; + this._mouseUpDelegate = function(event) { + return self._mouseUp(event); + }; + $(document) + .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + // preventDefault() is used to prevent the selection of text here - + // however, in Safari, this causes select boxes not to be selectable + // anymore, so this fix is needed + ($.browser.safari || event.preventDefault()); + + event.originalEvent.mouseHandled = true; + return true; + }, + + _mouseMove: function(event) { + // IE mouseup check - mouseup happened when mouse was out of window + if ($.browser.msie && !event.button) { + return this._mouseUp(event); + } + + if (this._mouseStarted) { + this._mouseDrag(event); + return event.preventDefault(); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = + (this._mouseStart(this._mouseDownEvent, event) !== false); + (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); + } + + return !this._mouseStarted; + }, + + _mouseUp: function(event) { + $(document) + .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + if (this._mouseStarted) { + this._mouseStarted = false; + this._preventClickEvent = (event.target == this._mouseDownEvent.target); + this._mouseStop(event); + } + + return false; + }, + + _mouseDistanceMet: function(event) { + return (Math.max( + Math.abs(this._mouseDownEvent.pageX - event.pageX), + Math.abs(this._mouseDownEvent.pageY - event.pageY) + ) >= this.options.distance + ); + }, + + _mouseDelayMet: function(event) { + return this.mouseDelayMet; + }, + + // These are placeholder methods, to be overriden by extending plugin + _mouseStart: function(event) {}, + _mouseDrag: function(event) {}, + _mouseStop: function(event) {}, + _mouseCapture: function(event) { return true; } +}; + +$.ui.mouse.defaults = { + cancel: null, + distance: 1, + delay: 0 +}; + +})(jQuery); diff --git a/webroot/js/jquery/plugins/jquery.ui.draggable.js b/webroot/js/jquery/plugins/jquery.ui.draggable.js index 2f4be13..f1d2f59 100755 --- a/webroot/js/jquery/plugins/jquery.ui.draggable.js +++ b/webroot/js/jquery/plugins/jquery.ui.draggable.js @@ -1,40 +1,766 @@ +/* + * jQuery UI Draggable 1.7.1 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * ui.core.js + */ +(function($) { -(function($){$.widget("ui.draggable",$.extend($.ui.mouse,{init:function(){var o=this.options;if(o.helper=='original'&&!(/(relative|absolute|fixed)/).test(this.element.css('position'))) -this.element.css('position','relative');this.element.addClass('ui-draggable');(o.disabled&&this.element.addClass('ui-draggable-disabled'));this.mouseInit();},mouseStart:function(e){var o=this.options;if(this.helper||o.disabled||$(e.target).is('.ui-resizable-handle'))return false;var handle=!this.options.handle||!$(this.options.handle,this.element).length?true:false;$(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==e.target)handle=true;});if(!handle)return false;if($.ui.ddmanager)$.ui.ddmanager.current=this;this.helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[e])):(o.helper=='clone'?this.element.clone():this.element);if(!this.helper.parents('body').length)this.helper.appendTo((o.appendTo=='parent'?this.element[0].parentNode:o.appendTo));if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position")))this.helper.css("position","absolute");this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&$.browser.mozilla)po={top:0,left:0};this.offset.parent={top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};var p=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(e);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(o.cursorAt){if(o.cursorAt.left!=undefined)this.offset.click.left=o.cursorAt.left+this.margins.left;if(o.cursorAt.right!=undefined)this.offset.click.left=this.helperProportions.width-o.cursorAt.right+this.margins.left;if(o.cursorAt.top!=undefined)this.offset.click.top=o.cursorAt.top+this.margins.top;if(o.cursorAt.bottom!=undefined)this.offset.click.top=this.helperProportions.height-o.cursorAt.bottom+this.margins.top;} -if(o.containment){if(o.containment=='parent')o.containment=this.helper[0].parentNode;if(o.containment=='document'||o.containment=='window')this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,$(o.containment=='document'?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),($(o.containment=='document'?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)];if(!(/^(document|window|parent)$/).test(o.containment)){var ce=$(o.containment)[0];var co=$(o.containment).offset();this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,co.top+(parseInt($(ce).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,co.left+Math.max(ce.scrollWidth,ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),co.top+Math.max(ce.scrollHeight,ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)];}} -this.propagate("start",e);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if($.ui.ddmanager&&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this.mouseDrag(e);return true;},convertPositionTo:function(d,pos){if(!pos)pos=this.position;var mod=d=="absolute"?1:-1;return{top:(pos.top -+this.offset.relative.top*mod -+this.offset.parent.top*mod --(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*mod -+(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)*mod -+this.margins.top*mod),left:(pos.left -+this.offset.relative.left*mod -+this.offset.parent.left*mod --(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*mod -+(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0)*mod -+this.margins.left*mod)};},generatePosition:function(e){var o=this.options;var position={top:(e.pageY --this.offset.click.top --this.offset.relative.top --this.offset.parent.top -+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop) --(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)),left:(e.pageX --this.offset.click.left --this.offset.relative.left --this.offset.parent.left -+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft) --(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0))};if(!this.originalPosition)return position;if(this.containment){if(position.left<this.containment[0])position.left=this.containment[0];if(position.top<this.containment[1])position.top=this.containment[1];if(position.left>this.containment[2])position.left=this.containment[2];if(position.top>this.containment[3])position.top=this.containment[3];} -if(o.grid){var top=this.originalPosition.top+Math.round((position.top-this.originalPosition.top)/o.grid[1])*o.grid[1];position.top=this.containment?(!(top<this.containment[1]||top>this.containment[3])?top:(!(top<this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;var left=this.originalPosition.left+Math.round((position.left-this.originalPosition.left)/o.grid[0])*o.grid[0];position.left=this.containment?(!(left<this.containment[0]||left>this.containment[2])?left:(!(left<this.containment[0])?left-o.grid[0]:left+o.grid[0])):left;} -return position;},mouseDrag:function(e){this.position=this.generatePosition(e);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",e)||this.position;if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+'px';if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+'px';if($.ui.ddmanager)$.ui.ddmanager.drag(this,e);return false;},mouseStop:function(e){if($.ui.ddmanager&&!this.options.dropBehaviour) -$.ui.ddmanager.drop(this,e);if(this.options.revert){var self=this;$(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){self.propagate("stop",e);self.clear();});}else{this.propagate("stop",e);this.clear();} -return false;},clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.options.helper!='original'&&!this.cancelHelperRemoval)this.helper.remove();this.helper=null;this.cancelHelperRemoval=false;},plugins:{},uiHash:function(e){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options};},propagate:function(n,e){$.ui.plugin.call(this,n,[e,this.uiHash()]);return this.element.triggerHandler(n=="drag"?n:"drag"+n,[e,this.uiHash()],this.options[n]);},destroy:function(){if(!this.element.data('draggable'))return;this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable');this.mouseDestroy();}}));$.extend($.ui.draggable,{defaults:{appendTo:"parent",axis:false,cancel:":input,button",delay:0,distance:0,helper:"original"}});$.ui.plugin.add("draggable","cursor",{start:function(e,ui){var t=$('body');if(t.css("cursor"))ui.options._cursor=t.css("cursor");t.css("cursor",ui.options.cursor);},stop:function(e,ui){if(ui.options._cursor)$('body').css("cursor",ui.options._cursor);}});$.ui.plugin.add("draggable","zIndex",{start:function(e,ui){var t=$(ui.helper);if(t.css("zIndex"))ui.options._zIndex=t.css("zIndex");t.css('zIndex',ui.options.zIndex);},stop:function(e,ui){if(ui.options._zIndex)$(ui.helper).css('zIndex',ui.options._zIndex);}});$.ui.plugin.add("draggable","opacity",{start:function(e,ui){var t=$(ui.helper);if(t.css("opacity"))ui.options._opacity=t.css("opacity");t.css('opacity',ui.options.opacity);},stop:function(e,ui){if(ui.options._opacity)$(ui.helper).css('opacity',ui.options._opacity);}});$.ui.plugin.add("draggable","iframeFix",{start:function(e,ui){$(ui.options.iframeFix===true?"iframe":ui.options.iframeFix).each(function(){$('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css($(this).offset()).appendTo("body");});},stop:function(e,ui){$("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this);});}});$.ui.plugin.add("draggable","scroll",{start:function(e,ui){var o=ui.options;var i=$(this).data("draggable");o.scrollSensitivity=o.scrollSensitivity||20;o.scrollSpeed=o.scrollSpeed||20;i.overflowY=function(el){do{if(/auto|scroll/.test(el.css('overflow'))||(/auto|scroll/).test(el.css('overflow-y')))return el;el=el.parent();}while(el[0].parentNode);return $(document);}(this);i.overflowX=function(el){do{if(/auto|scroll/.test(el.css('overflow'))||(/auto|scroll/).test(el.css('overflow-x')))return el;el=el.parent();}while(el[0].parentNode);return $(document);}(this);if(i.overflowY[0]!=document&&i.overflowY[0].tagName!='HTML')i.overflowYOffset=i.overflowY.offset();if(i.overflowX[0]!=document&&i.overflowX[0].tagName!='HTML')i.overflowXOffset=i.overflowX.offset();},drag:function(e,ui){var o=ui.options;var i=$(this).data("draggable");if(i.overflowY[0]!=document&&i.overflowY[0].tagName!='HTML'){if((i.overflowYOffset.top+i.overflowY[0].offsetHeight)-e.pageY<o.scrollSensitivity) -i.overflowY[0].scrollTop=i.overflowY[0].scrollTop+o.scrollSpeed;if(e.pageY-i.overflowYOffset.top<o.scrollSensitivity) -i.overflowY[0].scrollTop=i.overflowY[0].scrollTop-o.scrollSpeed;}else{if(e.pageY-$(document).scrollTop()<o.scrollSensitivity) -$(document).scrollTop($(document).scrollTop()-o.scrollSpeed);if($(window).height()-(e.pageY-$(document).scrollTop())<o.scrollSensitivity) -$(document).scrollTop($(document).scrollTop()+o.scrollSpeed);} -if(i.overflowX[0]!=document&&i.overflowX[0].tagName!='HTML'){if((i.overflowXOffset.left+i.overflowX[0].offsetWidth)-e.pageX<o.scrollSensitivity) -i.overflowX[0].scrollLeft=i.overflowX[0].scrollLeft+o.scrollSpeed;if(e.pageX-i.overflowXOffset.left<o.scrollSensitivity) -i.overflowX[0].scrollLeft=i.overflowX[0].scrollLeft-o.scrollSpeed;}else{if(e.pageX-$(document).scrollLeft()<o.scrollSensitivity) -$(document).scrollLeft($(document).scrollLeft()-o.scrollSpeed);if($(window).width()-(e.pageX-$(document).scrollLeft())<o.scrollSensitivity) -$(document).scrollLeft($(document).scrollLeft()+o.scrollSpeed);}}});$.ui.plugin.add("draggable","snap",{start:function(e,ui){var inst=$(this).data("draggable");inst.snapElements=[];$(ui.options.snap===true?'.ui-draggable':ui.options.snap).each(function(){var $t=$(this);var $o=$t.offset();if(this!=inst.element[0])inst.snapElements.push({item:this,width:$t.outerWidth(),height:$t.outerHeight(),top:$o.top,left:$o.left});});},drag:function(e,ui){var inst=$(this).data("draggable");var d=ui.options.snapTolerance||20;var x1=ui.absolutePosition.left,x2=x1+inst.helperProportions.width,y1=ui.absolutePosition.top,y2=y1+inst.helperProportions.height;for(var i=inst.snapElements.length-1;i>=0;i--){var l=inst.snapElements[i].left,r=l+inst.snapElements[i].width,t=inst.snapElements[i].top,b=t+inst.snapElements[i].height;if(!((l-d<x1&&x1<r+d&&t-d<y1&&y1<b+d)||(l-d<x1&&x1<r+d&&t-d<y2&&y2<b+d)||(l-d<x2&&x2<r+d&&t-d<y1&&y1<b+d)||(l-d<x2&&x2<r+d&&t-d<y2&&y2<b+d)))continue;if(ui.options.snapMode!='inner'){var ts=Math.abs(t-y2)<=20;var bs=Math.abs(b-y1)<=20;var ls=Math.abs(l-x2)<=20;var rs=Math.abs(r-x1)<=20;if(ts)ui.position.top=inst.convertPositionTo("relative",{top:t-inst.helperProportions.height,left:0}).top;if(bs)ui.position.top=inst.convertPositionTo("relative",{top:b,left:0}).top;if(ls)ui.position.left=inst.convertPositionTo("relative",{top:0,left:l-inst.helperProportions.width}).left;if(rs)ui.position.left=inst.convertPositionTo("relative",{top:0,left:r}).left;} -if(ui.options.snapMode!='outer'){var ts=Math.abs(t-y1)<=20;var bs=Math.abs(b-y2)<=20;var ls=Math.abs(l-x1)<=20;var rs=Math.abs(r-x2)<=20;if(ts)ui.position.top=inst.convertPositionTo("relative",{top:t,left:0}).top;if(bs)ui.position.top=inst.convertPositionTo("relative",{top:b-inst.helperProportions.height,left:0}).top;if(ls)ui.position.left=inst.convertPositionTo("relative",{top:0,left:l}).left;if(rs)ui.position.left=inst.convertPositionTo("relative",{top:0,left:r-inst.helperProportions.width}).left;}};}});$.ui.plugin.add("draggable","connectToSortable",{start:function(e,ui){var inst=$(this).data("draggable");inst.sortables=[];$(ui.options.connectToSortable).each(function(){if($.data(this,'sortable')){var sortable=$.data(this,'sortable');inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refresh();sortable.propagate("activate",e,inst);}});},stop:function(e,ui){var inst=$(this).data("draggable");$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance.mouseStop(e);this.instance.element.triggerHandler("sortreceive",[e,$.extend(this.instance.ui(),{sender:inst.element})],this.instance.options["receive"]);this.instance.options.helper=this.instance.options._helper;}else{this.instance.propagate("deactivate",e,inst);}});},drag:function(e,ui){var inst=$(this).data("draggable"),self=this;var checkPos=function(o){var l=o.left,r=l+o.width,t=o.top,b=t+o.height;return(l<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.left+this.offset.click.left)<r&&t<(this.positionAbs.top+this.offset.click.top)&&(this.positionAbs.top+this.offset.click.top)<b);};$.each(inst.sortables,function(i){if(checkPos.call(inst,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(self).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0];};e.target=this.instance.currentItem[0];this.instance.mouseCapture(e,true,true);this.instance.mouseStart(e,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst.propagate("toSortable",e);} -if(this.instance.currentItem)this.instance.mouseDrag(e);}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance.mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder.remove();inst.propagate("fromSortable",e);}};});}});$.ui.plugin.add("draggable","stack",{start:function(e,ui){var group=$.makeArray($(ui.options.stack.group)).sort(function(a,b){return(parseInt($(a).css("zIndex"),10)||ui.options.stack.min)-(parseInt($(b).css("zIndex"),10)||ui.options.stack.min);});$(group).each(function(i){this.style.zIndex=ui.options.stack.min+i;});this[0].style.zIndex=ui.options.stack.min+group.length;}});})(jQuery); \ No newline at end of file +$.widget("ui.draggable", $.extend({}, $.ui.mouse, { + + _init: function() { + + if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position"))) + this.element[0].style.position = 'relative'; + + (this.options.addClasses && this.element.addClass("ui-draggable")); + (this.options.disabled && this.element.addClass("ui-draggable-disabled")); + + this._mouseInit(); + + }, + + destroy: function() { + if(!this.element.data('draggable')) return; + this.element + .removeData("draggable") + .unbind(".draggable") + .removeClass("ui-draggable" + + " ui-draggable-dragging" + + " ui-draggable-disabled"); + this._mouseDestroy(); + }, + + _mouseCapture: function(event) { + + var o = this.options; + + if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle')) + return false; + + //Quit if we're not on a valid handle + this.handle = this._getHandle(event); + if (!this.handle) + return false; + + return true; + + }, + + _mouseStart: function(event) { + + var o = this.options; + + //Create and append the visible helper + this.helper = this._createHelper(event); + + //Cache the helper size + this._cacheHelperProportions(); + + //If ddmanager is used for droppables, set the global draggable + if($.ui.ddmanager) + $.ui.ddmanager.current = this; + + /* + * - Position generation - + * This block generates everything position related - it's the core of draggables. + */ + + //Cache the margins of the original element + this._cacheMargins(); + + //Store the helper's css position + this.cssPosition = this.helper.css("position"); + this.scrollParent = this.helper.scrollParent(); + + //The element's absolute position on the page minus margins + this.offset = this.element.offset(); + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }; + + $.extend(this.offset, { + click: { //Where the click happened, relative to the element + left: event.pageX - this.offset.left, + top: event.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper + }); + + //Generate the original position + this.originalPosition = this._generatePosition(event); + this.originalPageX = event.pageX; + this.originalPageY = event.pageY; + + //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied + if(o.cursorAt) + this._adjustOffsetFromHelper(o.cursorAt); + + //Set a containment if given in the options + if(o.containment) + this._setContainment(); + + //Call plugins and callbacks + this._trigger("start", event); + + //Recache the helper size + this._cacheHelperProportions(); + + //Prepare the droppable offsets + if ($.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(this, event); + + this.helper.addClass("ui-draggable-dragging"); + this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position + return true; + }, + + _mouseDrag: function(event, noPropagation) { + + //Compute the helpers position + this.position = this._generatePosition(event); + this.positionAbs = this._convertPositionTo("absolute"); + + //Call plugins and callbacks and use the resulting position if something is returned + if (!noPropagation) { + var ui = this._uiHash(); + this._trigger('drag', event, ui); + this.position = ui.position; + } + + if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; + if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; + if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); + + return false; + }, + + _mouseStop: function(event) { + + //If we are using droppables, inform the manager about the drop + var dropped = false; + if ($.ui.ddmanager && !this.options.dropBehaviour) + dropped = $.ui.ddmanager.drop(this, event); + + //if a drop comes from outside (a sortable) + if(this.dropped) { + dropped = this.dropped; + this.dropped = false; + } + + if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { + var self = this; + $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() { + self._trigger("stop", event); + self._clear(); + }); + } else { + this._trigger("stop", event); + this._clear(); + } + + return false; + }, + + _getHandle: function(event) { + + var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false; + $(this.options.handle, this.element) + .find("*") + .andSelf() + .each(function() { + if(this == event.target) handle = true; + }); + + return handle; + + }, + + _createHelper: function(event) { + + var o = this.options; + var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone() : this.element); + + if(!helper.parents('body').length) + helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); + + if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) + helper.css("position", "absolute"); + + return helper; + + }, + + _adjustOffsetFromHelper: function(obj) { + if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left; + if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; + if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top; + if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; + }, + + _getParentOffset: function() { + + //Get the offsetParent and cache its position + this.offsetParent = this.helper.offsetParent(); + var po = this.offsetParent.offset(); + + // This is a special case where we need to modify a offset calculated on start, since the following happened: + // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent + // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that + // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag + if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) { + po.left += this.scrollParent.scrollLeft(); + po.top += this.scrollParent.scrollTop(); + } + + if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information + || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix + po = { top: 0, left: 0 }; + + return { + top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), + left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) + }; + + }, + + _getRelativeOffset: function() { + + if(this.cssPosition == "relative") { + var p = this.element.position(); + return { + top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), + left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() + }; + } else { + return { top: 0, left: 0 }; + } + + }, + + _cacheMargins: function() { + this.margins = { + left: (parseInt(this.element.css("marginLeft"),10) || 0), + top: (parseInt(this.element.css("marginTop"),10) || 0) + }; + }, + + _cacheHelperProportions: function() { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight() + }; + }, + + _setContainment: function() { + + var o = this.options; + if(o.containment == 'parent') o.containment = this.helper[0].parentNode; + if(o.containment == 'document' || o.containment == 'window') this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left, + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top + ]; + + if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) { + var ce = $(o.containment)[0]; if(!ce) return; + var co = $(o.containment).offset(); + var over = ($(ce).css("overflow") != 'hidden'); + + this.containment = [ + co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left, + co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top, + co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left, + co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top + ]; + } else if(o.containment.constructor == Array) { + this.containment = o.containment; + } + + }, + + _convertPositionTo: function(d, pos) { + + if(!pos) pos = this.position; + var mod = d == "absolute" ? 1 : -1; + var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + return { + top: ( + pos.top // The absolute mouse position + + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) + - ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod) + ), + left: ( + pos.left // The absolute mouse position + + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) + - ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod) + ) + }; + + }, + + _generatePosition: function(event) { + + var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + // This is another very weird special case that only happens for relative elements: + // 1. If the css position is relative + // 2. and the scroll parent is the document or similar to the offset parent + // we have to refresh the relative offset during the scroll so there are no jumps + if(this.cssPosition == 'relative' && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) { + this.offset.relative = this._getRelativeOffset(); + } + + var pageX = event.pageX; + var pageY = event.pageY; + + /* + * - Position constraining - + * Constrain the position to a mix of grid, containment. + */ + + if(this.originalPosition) { //If we are not dragging yet, we won't check for options + + if(this.containment) { + if(event.pageX - this.offset.click.left < this.containment[0]) pageX = this.containment[0] + this.offset.click.left; + if(event.pageY - this.offset.click.top < this.containment[1]) pageY = this.containment[1] + this.offset.click.top; + if(event.pageX - this.offset.click.left > this.containment[2]) pageX = this.containment[2] + this.offset.click.left; + if(event.pageY - this.offset.click.top > this.containment[3]) pageY = this.containment[3] + this.offset.click.top; + } + + if(o.grid) { + var top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1]; + pageY = this.containment ? (!(top - this.offset.click.top < this.containment[1] || top - this.offset.click.top > this.containment[3]) ? top : (!(top - this.offset.click.top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; + + var left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0]; + pageX = this.containment ? (!(left - this.offset.click.left < this.containment[0] || left - this.offset.click.left > this.containment[2]) ? left : (!(left - this.offset.click.left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; + } + + } + + return { + top: ( + pageY // The absolute mouse position + - this.offset.click.top // Click offset (relative to the element) + - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + + ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) )) + ), + left: ( + pageX // The absolute mouse position + - this.offset.click.left // Click offset (relative to the element) + - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + + ($.browser.safari && this.cssPosition == 'fixed' ? 0 : ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() )) + ) + }; + + }, + + _clear: function() { + this.helper.removeClass("ui-draggable-dragging"); + if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove(); + //if($.ui.ddmanager) $.ui.ddmanager.current = null; + this.helper = null; + this.cancelHelperRemoval = false; + }, + + // From now on bulk stuff - mainly helpers + + _trigger: function(type, event, ui) { + ui = ui || this._uiHash(); + $.ui.plugin.call(this, type, [event, ui]); + if(type == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins + return $.widget.prototype._trigger.call(this, type, event, ui); + }, + + plugins: {}, + + _uiHash: function(event) { + return { + helper: this.helper, + position: this.position, + absolutePosition: this.positionAbs, //deprecated + offset: this.positionAbs + }; + } + +})); + +$.extend($.ui.draggable, { + version: "1.7.1", + eventPrefix: "drag", + defaults: { + addClasses: true, + appendTo: "parent", + axis: false, + cancel: ":input,option", + connectToSortable: false, + containment: false, + cursor: "auto", + cursorAt: false, + delay: 0, + distance: 1, + grid: false, + handle: false, + helper: "original", + iframeFix: false, + opacity: false, + refreshPositions: false, + revert: false, + revertDuration: 500, + scope: "default", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: false, + snapMode: "both", + snapTolerance: 20, + stack: false, + zIndex: false + } +}); + +$.ui.plugin.add("draggable", "connectToSortable", { + start: function(event, ui) { + + var inst = $(this).data("draggable"), o = inst.options, + uiSortable = $.extend({}, ui, { item: inst.element }); + inst.sortables = []; + $(o.connectToSortable).each(function() { + var sortable = $.data(this, 'sortable'); + if (sortable && !sortable.options.disabled) { + inst.sortables.push({ + instance: sortable, + shouldRevert: sortable.options.revert + }); + sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache + sortable._trigger("activate", event, uiSortable); + } + }); + + }, + stop: function(event, ui) { + + //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper + var inst = $(this).data("draggable"), + uiSortable = $.extend({}, ui, { item: inst.element }); + + $.each(inst.sortables, function() { + if(this.instance.isOver) { + + this.instance.isOver = 0; + + inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance + this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work) + + //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: 'valid/invalid' + if(this.shouldRevert) this.instance.options.revert = true; + + //Trigger the stop of the sortable + this.instance._mouseStop(event); + + this.instance.options.helper = this.instance.options._helper; + + //If the helper has been the original item, restore properties in the sortable + if(inst.options.helper == 'original') + this.instance.currentItem.css({ top: 'auto', left: 'auto' }); + + } else { + this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance + this.instance._trigger("deactivate", event, uiSortable); + } + + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"), self = this; + + var checkPos = function(o) { + var dyClick = this.offset.click.top, dxClick = this.offset.click.left; + var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left; + var itemHeight = o.height, itemWidth = o.width; + var itemTop = o.top, itemLeft = o.left; + + return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth); + }; + + $.each(inst.sortables, function(i) { + + //Copy over some variables to allow calling the sortable's native _intersectsWith + this.instance.positionAbs = inst.positionAbs; + this.instance.helperProportions = inst.helperProportions; + this.instance.offset.click = inst.offset.click; + + if(this.instance._intersectsWith(this.instance.containerCache)) { + + //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once + if(!this.instance.isOver) { + + this.instance.isOver = 1; + //Now we fake the start of dragging for the sortable instance, + //by cloning the list group item, appending it to the sortable and using it as inst.currentItem + //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) + this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true); + this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it + this.instance.options.helper = function() { return ui.helper[0]; }; + + event.target = this.instance.currentItem[0]; + this.instance._mouseCapture(event, true); + this.instance._mouseStart(event, true, true); + + //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes + this.instance.offset.click.top = inst.offset.click.top; + this.instance.offset.click.left = inst.offset.click.left; + this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; + this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; + + inst._trigger("toSortable", event); + inst.dropped = this.instance.element; //draggable revert needs that + //hack so receive/update callbacks work (mostly) + inst.currentItem = inst.element; + this.instance.fromOutside = inst; + + } + + //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable + if(this.instance.currentItem) this.instance._mouseDrag(event); + + } else { + + //If it doesn't intersect with the sortable, and it intersected before, + //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval + if(this.instance.isOver) { + + this.instance.isOver = 0; + this.instance.cancelHelperRemoval = true; + + //Prevent reverting on this forced stop + this.instance.options.revert = false; + + // The out event needs to be triggered independently + this.instance._trigger('out', event, this.instance._uiHash(this.instance)); + + this.instance._mouseStop(event, true); + this.instance.options.helper = this.instance.options._helper; + + //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size + this.instance.currentItem.remove(); + if(this.instance.placeholder) this.instance.placeholder.remove(); + + inst._trigger("fromSortable", event); + inst.dropped = false; //draggable revert needs that + } + + }; + + }); + + } +}); + +$.ui.plugin.add("draggable", "cursor", { + start: function(event, ui) { + var t = $('body'), o = $(this).data('draggable').options; + if (t.css("cursor")) o._cursor = t.css("cursor"); + t.css("cursor", o.cursor); + }, + stop: function(event, ui) { + var o = $(this).data('draggable').options; + if (o._cursor) $('body').css("cursor", o._cursor); + } +}); + +$.ui.plugin.add("draggable", "iframeFix", { + start: function(event, ui) { + var o = $(this).data('draggable').options; + $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() { + $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>') + .css({ + width: this.offsetWidth+"px", height: this.offsetHeight+"px", + position: "absolute", opacity: "0.001", zIndex: 1000 + }) + .css($(this).offset()) + .appendTo("body"); + }); + }, + stop: function(event, ui) { + $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers + } +}); + +$.ui.plugin.add("draggable", "opacity", { + start: function(event, ui) { + var t = $(ui.helper), o = $(this).data('draggable').options; + if(t.css("opacity")) o._opacity = t.css("opacity"); + t.css('opacity', o.opacity); + }, + stop: function(event, ui) { + var o = $(this).data('draggable').options; + if(o._opacity) $(ui.helper).css('opacity', o._opacity); + } +}); + +$.ui.plugin.add("draggable", "scroll", { + start: function(event, ui) { + var i = $(this).data("draggable"); + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); + }, + drag: function(event, ui) { + + var i = $(this).data("draggable"), o = i.options, scrolled = false; + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { + + if(!o.axis || o.axis != 'x') { + if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; + else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; + } + + if(!o.axis || o.axis != 'y') { + if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; + else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; + } + + } else { + + if(!o.axis || o.axis != 'x') { + if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); + else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); + } + + if(!o.axis || o.axis != 'y') { + if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); + else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); + } + + } + + if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(i, event); + + } +}); + +$.ui.plugin.add("draggable", "snap", { + start: function(event, ui) { + + var i = $(this).data("draggable"), o = i.options; + i.snapElements = []; + + $(o.snap.constructor != String ? ( o.snap.items || ':data(draggable)' ) : o.snap).each(function() { + var $t = $(this); var $o = $t.offset(); + if(this != i.element[0]) i.snapElements.push({ + item: this, + width: $t.outerWidth(), height: $t.outerHeight(), + top: $o.top, left: $o.left + }); + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"), o = inst.options; + var d = o.snapTolerance; + + var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width, + y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height; + + for (var i = inst.snapElements.length - 1; i >= 0; i--){ + + var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, + t = inst.snapElements[i].top, b = t + inst.snapElements[i].height; + + //Yes, I know, this is insane ;) + if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) { + if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = false; + continue; + } + + if(o.snapMode != 'inner') { + var ts = Math.abs(t - y2) <= d; + var bs = Math.abs(b - y1) <= d; + var ls = Math.abs(l - x2) <= d; + var rs = Math.abs(r - x1) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left; + } + + var first = (ts || bs || ls || rs); + + if(o.snapMode != 'outer') { + var ts = Math.abs(t - y1) <= d; + var bs = Math.abs(b - y2) <= d; + var ls = Math.abs(l - x1) <= d; + var rs = Math.abs(r - x2) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left; + } + + if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) + (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = (ts || bs || ls || rs || first); + + }; + + } +}); + +$.ui.plugin.add("draggable", "stack", { + start: function(event, ui) { + + var o = $(this).data("draggable").options; + + var group = $.makeArray($(o.stack.group)).sort(function(a,b) { + return (parseInt($(a).css("zIndex"),10) || o.stack.min) - (parseInt($(b).css("zIndex"),10) || o.stack.min); + }); + + $(group).each(function(i) { + this.style.zIndex = o.stack.min + i; + }); + + this[0].style.zIndex = o.stack.min + group.length; + + } +}); + +$.ui.plugin.add("draggable", "zIndex", { + start: function(event, ui) { + var t = $(ui.helper), o = $(this).data("draggable").options; + if(t.css("zIndex")) o._zIndex = t.css("zIndex"); + t.css('zIndex', o.zIndex); + }, + stop: function(event, ui) { + var o = $(this).data("draggable").options; + if(o._zIndex) $(ui.helper).css('zIndex', o._zIndex); + } +}); + +})(jQuery); diff --git a/webroot/js/jquery/plugins/jquery.ui.droppable.js b/webroot/js/jquery/plugins/jquery.ui.droppable.js index ef76a62..22fcbaf 100755 --- a/webroot/js/jquery/plugins/jquery.ui.droppable.js +++ b/webroot/js/jquery/plugins/jquery.ui.droppable.js @@ -1,281 +1,282 @@ -/* - * jQuery UI Droppable - * - * Copyright (c) 2008 Paul Bakaus - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Droppables - * - * Depends: - * ui.core.js - * ui.draggable.js - * - */ -(function($) { - -$.widget("ui.droppable", { - init: function() { - - this.element.addClass("ui-droppable"); - this.isover = 0; this.isout = 1; - - //Prepare the passed options - var o = this.options, accept = o.accept; - o = $.extend(o, { - accept: o.accept && o.accept.constructor == Function ? o.accept : function(d) { - return $(d).is(accept); - } - }); - - //Store the droppable's proportions - this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() }; - - // Add the reference and positions to the manager - $.ui.ddmanager.droppables.push(this); - - }, - plugins: {}, - ui: function(c) { - return { - draggable: (c.currentItem || c.element), - helper: c.helper, - position: c.position, - absolutePosition: c.positionAbs, - options: this.options, - element: this.element - }; - }, - destroy: function() { - var drop = $.ui.ddmanager.droppables; - for ( var i = 0; i < drop.length; i++ ) - if ( drop[i] == this ) - drop.splice(i, 1); - - this.element - .removeClass("ui-droppable ui-droppable-disabled") - .removeData("droppable") - .unbind(".droppable"); - }, - over: function(e) { - - var draggable = $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element - - if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'over', [e, this.ui(draggable)]); - this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over); - } - - }, - out: function(e) { - - var draggable = $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element - - if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'out', [e, this.ui(draggable)]); - this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out); - } - - }, - drop: function(e,custom) { - - var draggable = custom || $.ui.ddmanager.current; - if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element - - var childrenIntersection = false; - this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() { - var inst = $.data(this, 'droppable'); - if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) { - childrenIntersection = true; return false; - } - }); - if(childrenIntersection) return false; - - if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]); - this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop); - return true; - } - - return false; - - }, - activate: function(e) { - - var draggable = $.ui.ddmanager.current; - $.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]); - if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate); - - }, - deactivate: function(e) { - - var draggable = $.ui.ddmanager.current; - $.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]); - if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate); - - } -}); - -$.extend($.ui.droppable, { - defaults: { - disabled: false, - tolerance: 'intersect' - } -}); - -$.ui.intersect = function(draggable, droppable, toleranceMode) { - - if (!droppable.offset) return false; - - var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, - y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; - var l = droppable.offset.left, r = l + droppable.proportions.width, - t = droppable.offset.top, b = t + droppable.proportions.height; - - switch (toleranceMode) { - case 'fit': - return (l < x1 && x2 < r - && t < y1 && y2 < b); - break; - case 'intersect': - return (l < x1 + (draggable.helperProportions.width / 2) // Right Half - && x2 - (draggable.helperProportions.width / 2) < r // Left Half - && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half - && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half - break; - case 'pointer': - return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r - && t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b); - break; - case 'touch': - return ( - (y1 >= t && y1 <= b) || // Top edge touching - (y2 >= t && y2 <= b) || // Bottom edge touching - (y1 < t && y2 > b) // Surrounded vertically - ) && ( - (x1 >= l && x1 <= r) || // Left edge touching - (x2 >= l && x2 <= r) || // Right edge touching - (x1 < l && x2 > r) // Surrounded horizontally - ); - break; - default: - return false; - break; - } - -}; - -/* - This manager tracks offsets of draggables and droppables -*/ -$.ui.ddmanager = { - current: null, - droppables: [], - prepareOffsets: function(t, e) { - - var m = $.ui.ddmanager.droppables; - var type = e ? e.type : null; // workaround for #2317 - for (var i = 0; i < m.length; i++) { - - if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; - m[i].visible = m[i].element.is(":visible"); if(!m[i].visible) continue; //If the element is not visible, continue - m[i].offset = m[i].element.offset(); - m[i].proportions = { width: m[i].element.outerWidth(), height: m[i].element.outerHeight() }; - - if(type == "dragstart" || type == "sortactivate") m[i].activate.call(m[i], e); //Activate the droppable if used directly from draggables - } - - }, - drop: function(draggable, e) { - - var dropped = false; - $.each($.ui.ddmanager.droppables, function() { - - if(!this.options) return; - if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) - dropped = this.drop.call(this, e); - - if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { - this.isout = 1; this.isover = 0; - this.deactivate.call(this, e); - } - - }); - return dropped; - - }, - drag: function(draggable, e) { - - //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. - if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e); - - //Run through all droppables and check their positions based on specific tolerance options - $.each($.ui.ddmanager.droppables, function() { - - if(this.disabled || this.greedyChild || !this.visible) return; - var intersects = $.ui.intersect(draggable, this, this.options.tolerance); - - var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); - if(!c) return; - - var parentInstance; - if (this.options.greedy) { - var parent = this.element.parents('.ui-droppable:eq(0)'); - if (parent.length) { - parentInstance = $.data(parent[0], 'droppable'); - parentInstance.greedyChild = (c == 'isover' ? 1 : 0); - } - } - - // we just moved into a greedy child - if (parentInstance && c == 'isover') { - parentInstance['isover'] = 0; - parentInstance['isout'] = 1; - parentInstance.out.call(parentInstance, e); - } - - this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; - this[c == "isover" ? "over" : "out"].call(this, e); - - // we just moved out of a greedy child - if (parentInstance && c == 'isout') { - parentInstance['isout'] = 0; - parentInstance['isover'] = 1; - parentInstance.over.call(parentInstance, e); - } - }); - - } -}; - -/* - * Droppable Extensions - */ - -$.ui.plugin.add("droppable", "activeClass", { - activate: function(e, ui) { - $(this).addClass(ui.options.activeClass); - }, - deactivate: function(e, ui) { - $(this).removeClass(ui.options.activeClass); - }, - drop: function(e, ui) { - $(this).removeClass(ui.options.activeClass); - } -}); - -$.ui.plugin.add("droppable", "hoverClass", { - over: function(e, ui) { - $(this).addClass(ui.options.hoverClass); - }, - out: function(e, ui) { - $(this).removeClass(ui.options.hoverClass); - }, - drop: function(e, ui) { - $(this).removeClass(ui.options.hoverClass); - } -}); - -})(jQuery); +/* + * jQuery UI Droppable 1.7.1 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Droppables + * + * Depends: + * ui.core.js + * ui.draggable.js + */ +(function($) { + +$.widget("ui.droppable", { + + _init: function() { + + var o = this.options, accept = o.accept; + this.isover = 0; this.isout = 1; + + this.options.accept = this.options.accept && $.isFunction(this.options.accept) ? this.options.accept : function(d) { + return d.is(accept); + }; + + //Store the droppable's proportions + this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; + + // Add the reference and positions to the manager + $.ui.ddmanager.droppables[this.options.scope] = $.ui.ddmanager.droppables[this.options.scope] || []; + $.ui.ddmanager.droppables[this.options.scope].push(this); + + (this.options.addClasses && this.element.addClass("ui-droppable")); + + }, + + destroy: function() { + var drop = $.ui.ddmanager.droppables[this.options.scope]; + for ( var i = 0; i < drop.length; i++ ) + if ( drop[i] == this ) + drop.splice(i, 1); + + this.element + .removeClass("ui-droppable ui-droppable-disabled") + .removeData("droppable") + .unbind(".droppable"); + }, + + _setData: function(key, value) { + + if(key == 'accept') { + this.options.accept = value && $.isFunction(value) ? value : function(d) { + return d.is(value); + }; + } else { + $.widget.prototype._setData.apply(this, arguments); + } + + }, + + _activate: function(event) { + var draggable = $.ui.ddmanager.current; + if(this.options.activeClass) this.element.addClass(this.options.activeClass); + (draggable && this._trigger('activate', event, this.ui(draggable))); + }, + + _deactivate: function(event) { + var draggable = $.ui.ddmanager.current; + if(this.options.activeClass) this.element.removeClass(this.options.activeClass); + (draggable && this._trigger('deactivate', event, this.ui(draggable))); + }, + + _over: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { + if(this.options.hoverClass) this.element.addClass(this.options.hoverClass); + this._trigger('over', event, this.ui(draggable)); + } + + }, + + _out: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { + if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); + this._trigger('out', event, this.ui(draggable)); + } + + }, + + _drop: function(event,custom) { + + var draggable = custom || $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element + + var childrenIntersection = false; + this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() { + var inst = $.data(this, 'droppable'); + if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) { + childrenIntersection = true; return false; + } + }); + if(childrenIntersection) return false; + + if(this.options.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { + if(this.options.activeClass) this.element.removeClass(this.options.activeClass); + if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass); + this._trigger('drop', event, this.ui(draggable)); + return this.element; + } + + return false; + + }, + + ui: function(c) { + return { + draggable: (c.currentItem || c.element), + helper: c.helper, + position: c.position, + absolutePosition: c.positionAbs, //deprecated + offset: c.positionAbs + }; + } + +}); + +$.extend($.ui.droppable, { + version: "1.7.1", + eventPrefix: 'drop', + defaults: { + accept: '*', + activeClass: false, + addClasses: true, + greedy: false, + hoverClass: false, + scope: 'default', + tolerance: 'intersect' + } +}); + +$.ui.intersect = function(draggable, droppable, toleranceMode) { + + if (!droppable.offset) return false; + + var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, + y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; + var l = droppable.offset.left, r = l + droppable.proportions.width, + t = droppable.offset.top, b = t + droppable.proportions.height; + + switch (toleranceMode) { + case 'fit': + return (l < x1 && x2 < r + && t < y1 && y2 < b); + break; + case 'intersect': + return (l < x1 + (draggable.helperProportions.width / 2) // Right Half + && x2 - (draggable.helperProportions.width / 2) < r // Left Half + && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half + && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half + break; + case 'pointer': + var draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left), + draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top), + isOver = $.ui.isOver(draggableTop, draggableLeft, t, l, droppable.proportions.height, droppable.proportions.width); + return isOver; + break; + case 'touch': + return ( + (y1 >= t && y1 <= b) || // Top edge touching + (y2 >= t && y2 <= b) || // Bottom edge touching + (y1 < t && y2 > b) // Surrounded vertically + ) && ( + (x1 >= l && x1 <= r) || // Left edge touching + (x2 >= l && x2 <= r) || // Right edge touching + (x1 < l && x2 > r) // Surrounded horizontally + ); + break; + default: + return false; + break; + } + +}; + +/* + This manager tracks offsets of draggables and droppables +*/ +$.ui.ddmanager = { + current: null, + droppables: { 'default': [] }, + prepareOffsets: function(t, event) { + + var m = $.ui.ddmanager.droppables[t.options.scope]; + var type = event ? event.type : null; // workaround for #2317 + var list = (t.currentItem || t.element).find(":data(droppable)").andSelf(); + + droppablesLoop: for (var i = 0; i < m.length; i++) { + + if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element[0],(t.currentItem || t.element)))) continue; //No disabled and non-accepted + for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item + m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue + + m[i].offset = m[i].element.offset(); + m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight }; + + if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables + + } + + }, + drop: function(draggable, event) { + + var dropped = false; + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(!this.options) return; + if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) + dropped = this._drop.call(this, event); + + if (!this.options.disabled && this.visible && this.options.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { + this.isout = 1; this.isover = 0; + this._deactivate.call(this, event); + } + + }); + return dropped; + + }, + drag: function(draggable, event) { + + //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. + if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event); + + //Run through all droppables and check their positions based on specific tolerance options + + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(this.options.disabled || this.greedyChild || !this.visible) return; + var intersects = $.ui.intersect(draggable, this, this.options.tolerance); + + var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); + if(!c) return; + + var parentInstance; + if (this.options.greedy) { + var parent = this.element.parents(':data(droppable):eq(0)'); + if (parent.length) { + parentInstance = $.data(parent[0], 'droppable'); + parentInstance.greedyChild = (c == 'isover' ? 1 : 0); + } + } + + // we just moved into a greedy child + if (parentInstance && c == 'isover') { + parentInstance['isover'] = 0; + parentInstance['isout'] = 1; + parentInstance._out.call(parentInstance, event); + } + + this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; + this[c == "isover" ? "_over" : "_out"].call(this, event); + + // we just moved out of a greedy child + if (parentInstance && c == 'isout') { + parentInstance['isout'] = 0; + parentInstance['isover'] = 1; + parentInstance._over.call(parentInstance, event); + } + }); + + } +}; + +})(jQuery); diff --git a/webroot/js/jquery/plugins/treeview/disabled-wiki-examples b/webroot/js/jquery/plugins/treeview/disabled-wiki-examples old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/index.html b/webroot/js/jquery/plugins/treeview/index.html old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/jquery.cookie.js b/webroot/js/jquery/plugins/treeview/jquery.cookie.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/jquery.js b/webroot/js/jquery/plugins/treeview/jquery.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/jquery.treeview.js b/webroot/js/jquery/plugins/treeview/jquery.treeview.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/jquery.treeview.min.js b/webroot/js/jquery/plugins/treeview/jquery.treeview.min.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/jquery.treeview.pack.js b/webroot/js/jquery/plugins/treeview/jquery.treeview.pack.js old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/red-treeview.css b/webroot/js/jquery/plugins/treeview/red-treeview.css old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/screen.css b/webroot/js/jquery/plugins/treeview/screen.css old mode 100644 new mode 100755 diff --git a/webroot/js/jquery/plugins/treeview/todo b/webroot/js/jquery/plugins/treeview/todo old mode 100644 new mode 100755 diff --git a/webroot/js/osmosis/ui.js b/webroot/js/osmosis/ui.js old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/css/content.css b/webroot/js/tiny_mce/plugins/latex/css/content.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/css/latex.css b/webroot/js/tiny_mce/plugins/latex/css/latex.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/editor.html b/webroot/js/tiny_mce/plugins/latex/editor.html old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/editor_plugin.js b/webroot/js/tiny_mce/plugins/latex/editor_plugin.js old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/editor_plugin_src.js b/webroot/js/tiny_mce/plugins/latex/editor_plugin_src.js old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/js/eq_editor.js b/webroot/js/tiny_mce/plugins/latex/js/eq_editor.js old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/plugins/latex/langs/en.js b/webroot/js/tiny_mce/plugins/latex/langs/en.js old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/advanced/skins/osmosis/content.css b/webroot/js/tiny_mce/themes/advanced/skins/osmosis/content.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/advanced/skins/osmosis/dialog.css b/webroot/js/tiny_mce/themes/advanced/skins/osmosis/dialog.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/advanced/skins/osmosis/ui.css b/webroot/js/tiny_mce/themes/advanced/skins/osmosis/ui.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/simple/skins/osmosis/content.css b/webroot/js/tiny_mce/themes/simple/skins/osmosis/content.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/simple/skins/osmosis/dialog.css b/webroot/js/tiny_mce/themes/simple/skins/osmosis/dialog.css old mode 100644 new mode 100755 diff --git a/webroot/js/tiny_mce/themes/simple/skins/osmosis/ui.css b/webroot/js/tiny_mce/themes/simple/skins/osmosis/ui.css old mode 100644 new mode 100755