fat_free_crm 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +5 -13
- data/.travis.yml +3 -3
- data/Gemfile +5 -2
- data/Gemfile.lock +137 -119
- data/MIT-LICENSE +1 -1
- data/README.md +5 -3
- data/app/assets/javascripts/admin/fields.js.coffee +31 -8
- data/app/assets/javascripts/application.js.erb +6 -10
- data/app/assets/javascripts/crm.js.coffee +426 -0
- data/app/assets/javascripts/crm_chosen.js.coffee +19 -38
- data/app/assets/javascripts/crm_classes.js.coffee +215 -0
- data/app/assets/javascripts/crm_comments.js.coffee +20 -58
- data/app/assets/javascripts/crm_loginout.js.coffee +27 -0
- data/app/assets/javascripts/crm_select2.js.coffee +29 -0
- data/app/assets/javascripts/crm_sortable.js.coffee +32 -0
- data/app/assets/javascripts/crm_tags.js.coffee +22 -0
- data/app/assets/javascripts/crm_textarea_autocomplete.js.coffee +33 -0
- data/app/assets/javascripts/datepicker.js.coffee +2 -2
- data/app/assets/javascripts/format_buttons.js.coffee +23 -24
- data/app/assets/javascripts/lists.js.coffee +45 -76
- data/app/assets/javascripts/pagination.js.coffee +16 -0
- data/app/assets/javascripts/search.js.coffee +6 -22
- data/app/assets/javascripts/timeago.js.coffee +21 -0
- data/app/assets/stylesheets/application.css.erb +0 -1
- data/app/assets/stylesheets/common.scss +36 -29
- data/app/assets/stylesheets/lists.css.scss +17 -3
- data/app/controllers/admin/groups_controller.rb +2 -1
- data/app/controllers/application_controller.rb +5 -5
- data/app/controllers/entities/accounts_controller.rb +1 -1
- data/app/controllers/entities/campaigns_controller.rb +1 -1
- data/app/controllers/entities/contacts_controller.rb +1 -1
- data/app/controllers/entities/leads_controller.rb +1 -1
- data/app/controllers/entities/opportunities_controller.rb +1 -1
- data/app/controllers/home_controller.rb +10 -7
- data/app/controllers/tasks_controller.rb +15 -0
- data/app/controllers/users_controller.rb +6 -4
- data/app/helpers/accounts_helper.rb +8 -5
- data/app/helpers/application_helper.rb +53 -39
- data/app/helpers/campaigns_helper.rb +1 -0
- data/app/helpers/leads_helper.rb +3 -3
- data/app/helpers/opportunities_helper.rb +15 -0
- data/app/helpers/remote_link_pagination_helper.rb +8 -0
- data/app/helpers/tags_helper.rb +2 -2
- data/app/helpers/tasks_helper.rb +22 -15
- data/app/helpers/users_helper.rb +3 -2
- data/app/mailers/user_mailer.rb +9 -3
- data/app/models/entities/account_contact.rb +1 -1
- data/app/models/fields/custom_field.rb +1 -1
- data/app/models/list.rb +1 -0
- data/app/models/observers/entity_observer.rb +10 -1
- data/app/models/observers/lead_observer.rb +2 -0
- data/app/models/observers/opportunity_observer.rb +2 -0
- data/app/models/observers/task_observer.rb +2 -0
- data/app/models/polymorphic/avatar.rb +2 -0
- data/app/models/polymorphic/comment.rb +0 -1
- data/app/models/polymorphic/task.rb +41 -9
- data/app/models/users/ability.rb +1 -0
- data/app/models/users/group.rb +0 -5
- data/app/models/users/user.rb +0 -7
- data/app/views/accounts/_edit.html.haml +1 -0
- data/app/views/accounts/_index_brief.html.haml +2 -2
- data/app/views/accounts/_index_long.html.haml +2 -2
- data/app/views/accounts/_new.html.haml +1 -0
- data/app/views/accounts/_sidebar_index.html.haml +1 -1
- data/app/views/accounts/_sidebar_show.html.haml +1 -1
- data/app/views/accounts/_top_section.html.haml +1 -1
- data/app/views/accounts/create.js.haml +9 -9
- data/app/views/accounts/destroy.js.haml +2 -2
- data/app/views/accounts/edit.js.haml +5 -5
- data/app/views/accounts/index.js.haml +5 -5
- data/app/views/accounts/new.js.haml +1 -1
- data/app/views/accounts/show.html.haml +1 -1
- data/app/views/accounts/show.js.haml +1 -1
- data/app/views/accounts/update.js.haml +7 -5
- data/app/views/admin/field_groups/_field_group.html.haml +4 -5
- data/app/views/admin/field_groups/confirm.js.haml +2 -2
- data/app/views/admin/field_groups/create.js.haml +6 -12
- data/app/views/admin/field_groups/destroy.js.haml +3 -3
- data/app/views/admin/field_groups/edit.js.haml +1 -1
- data/app/views/admin/field_groups/new.js.haml +1 -1
- data/app/views/admin/field_groups/update.js.haml +2 -2
- data/app/views/admin/fields/_field.html.haml +1 -1
- data/app/views/admin/fields/_sort_by.html.haml +3 -3
- data/app/views/admin/fields/create.js.haml +9 -9
- data/app/views/admin/fields/destroy.js.haml +4 -4
- data/app/views/admin/fields/edit.js.haml +2 -2
- data/app/views/admin/fields/index.html.haml +1 -8
- data/app/views/admin/fields/show.html.haml +1 -1
- data/app/views/admin/fields/update.js.haml +8 -8
- data/app/views/admin/groups/_form.html.haml +1 -3
- data/app/views/admin/groups/create.js.haml +8 -8
- data/app/views/admin/groups/destroy.js.haml +3 -3
- data/app/views/admin/groups/edit.js.haml +3 -3
- data/app/views/admin/groups/index.js.haml +2 -2
- data/app/views/admin/groups/new.js.haml +2 -2
- data/app/views/admin/groups/update.js.haml +5 -5
- data/app/views/admin/tags/confirm.js.haml +2 -2
- data/app/views/admin/tags/create.js.haml +8 -8
- data/app/views/admin/tags/destroy.js.haml +3 -3
- data/app/views/admin/tags/edit.js.haml +4 -4
- data/app/views/admin/tags/new.js.haml +1 -1
- data/app/views/admin/tags/update.js.haml +5 -5
- data/app/views/admin/users/_profile.html.haml +3 -4
- data/app/views/admin/users/confirm.js.haml +2 -2
- data/app/views/admin/users/create.js.haml +8 -8
- data/app/views/admin/users/destroy.js.haml +3 -3
- data/app/views/admin/users/edit.js.haml +4 -4
- data/app/views/admin/users/index.js.haml +2 -2
- data/app/views/admin/users/new.js.haml +2 -2
- data/app/views/admin/users/reactivate.js.haml +2 -2
- data/app/views/admin/users/suspend.js.haml +2 -2
- data/app/views/admin/users/update.js.haml +5 -5
- data/app/views/campaigns/_edit.html.haml +1 -0
- data/app/views/campaigns/_index_brief.html.haml +1 -1
- data/app/views/campaigns/_index_long.html.haml +1 -1
- data/app/views/campaigns/_new.html.haml +1 -0
- data/app/views/campaigns/_sidebar_index.html.haml +1 -1
- data/app/views/campaigns/_sidebar_show.html.haml +1 -1
- data/app/views/campaigns/_status.html.haml +1 -1
- data/app/views/campaigns/_top_section.html.haml +1 -1
- data/app/views/campaigns/create.js.haml +10 -10
- data/app/views/campaigns/destroy.js.haml +2 -2
- data/app/views/campaigns/edit.js.haml +6 -6
- data/app/views/campaigns/index.js.haml +5 -5
- data/app/views/campaigns/new.js.haml +1 -1
- data/app/views/campaigns/show.html.haml +1 -1
- data/app/views/campaigns/show.js.haml +1 -1
- data/app/views/campaigns/update.js.haml +8 -6
- data/app/views/comments/_edit.html.haml +1 -1
- data/app/views/comments/_new.html.haml +1 -1
- data/app/views/comments/create.js.haml +9 -9
- data/app/views/comments/destroy.js.haml +2 -2
- data/app/views/comments/edit.js.haml +3 -3
- data/app/views/comments/update.js.haml +5 -5
- data/app/views/contacts/_contacts.html.haml +1 -1
- data/app/views/contacts/_edit.html.haml +1 -0
- data/app/views/contacts/_index_brief.html.haml +2 -2
- data/app/views/contacts/_index_full.html.haml +2 -2
- data/app/views/contacts/_index_long.html.haml +2 -2
- data/app/views/contacts/_new.html.haml +1 -0
- data/app/views/contacts/_section_general.html.haml +4 -3
- data/app/views/contacts/_sidebar_show.html.haml +1 -1
- data/app/views/contacts/_top_section.html.haml +1 -1
- data/app/views/contacts/create.js.haml +10 -10
- data/app/views/contacts/destroy.js.haml +3 -3
- data/app/views/contacts/edit.js.haml +5 -5
- data/app/views/contacts/index.js.haml +5 -5
- data/app/views/contacts/new.js.haml +1 -1
- data/app/views/contacts/show.html.haml +1 -1
- data/app/views/contacts/show.js.haml +1 -1
- data/app/views/contacts/update.js.haml +8 -6
- data/app/views/emails/destroy.js.haml +2 -2
- data/app/views/entities/_basic_search.html.haml +15 -12
- data/app/views/entities/_permissions.html.haml +6 -11
- data/app/views/entities/attach.js.haml +3 -3
- data/app/views/entities/contacts.js.haml +2 -2
- data/app/views/entities/discard.js.haml +1 -1
- data/app/views/entities/leads.js.haml +2 -2
- data/app/views/entities/opportunities.js.haml +2 -2
- data/app/views/entities/subscription_update.js.haml +1 -1
- data/app/views/entities/versions.js.haml +2 -2
- data/app/views/fields/group.js.erb +1 -1
- data/app/views/home/_account.html.haml +2 -2
- data/app/views/home/_assets_menu.html.haml +3 -3
- data/app/views/home/_duration_menu.html.haml +3 -3
- data/app/views/home/_events_menu.html.haml +3 -3
- data/app/views/home/_opportunity.html.haml +2 -2
- data/app/views/home/_options.html.haml +0 -1
- data/app/views/home/_users_menu.html.haml +3 -3
- data/app/views/home/index.js.haml +4 -4
- data/app/views/home/options.js.haml +1 -1
- data/app/views/layouts/_about.html.haml +3 -3
- data/app/views/layouts/_footer.html.haml +1 -1
- data/app/views/layouts/_header.html.haml +1 -1
- data/app/views/layouts/_jumpbox.html.haml +23 -21
- data/app/views/layouts/_sidebar.html.haml +1 -2
- data/app/views/layouts/admin/application.html.haml +1 -1
- data/app/views/layouts/application.html.haml +3 -3
- data/app/views/leads/_convert.html.haml +1 -11
- data/app/views/leads/_convert_permissions.html.haml +4 -9
- data/app/views/leads/_edit.html.haml +1 -0
- data/app/views/leads/_index_brief.html.haml +1 -1
- data/app/views/leads/_index_long.html.haml +1 -1
- data/app/views/leads/_leads.html.haml +1 -1
- data/app/views/leads/_new.html.haml +1 -0
- data/app/views/leads/_sidebar_index.html.haml +1 -1
- data/app/views/leads/_sidebar_show.html.haml +1 -1
- data/app/views/leads/_top_section.html.haml +1 -1
- data/app/views/leads/convert.js.haml +5 -5
- data/app/views/leads/create.js.haml +9 -9
- data/app/views/leads/destroy.js.haml +2 -2
- data/app/views/leads/edit.js.haml +5 -5
- data/app/views/leads/index.js.haml +5 -5
- data/app/views/leads/new.js.haml +1 -1
- data/app/views/leads/promote.js.haml +7 -7
- data/app/views/leads/reject.js.haml +2 -2
- data/app/views/leads/show.html.haml +1 -1
- data/app/views/leads/show.js.haml +1 -1
- data/app/views/leads/update.js.haml +9 -7
- data/app/views/lists/_lists.html.haml +6 -0
- data/app/views/lists/_sidebar.html.haml +18 -17
- data/app/views/lists/create.js.haml +6 -7
- data/app/views/lists/destroy.js.haml +1 -1
- data/app/views/opportunities/_edit.html.haml +2 -1
- data/app/views/opportunities/_index_brief.html.haml +1 -1
- data/app/views/opportunities/_index_long.html.haml +1 -1
- data/app/views/opportunities/_new.html.haml +2 -1
- data/app/views/opportunities/_opportunities.html.haml +1 -1
- data/app/views/opportunities/_sidebar_index.html.haml +1 -1
- data/app/views/opportunities/_sidebar_show.html.haml +1 -1
- data/app/views/opportunities/_top_section.html.haml +2 -2
- data/app/views/opportunities/contacts.js.haml +2 -2
- data/app/views/opportunities/create.js.haml +10 -10
- data/app/views/opportunities/destroy.js.haml +3 -3
- data/app/views/opportunities/edit.js.haml +5 -5
- data/app/views/opportunities/index.html.haml +1 -1
- data/app/views/opportunities/index.js.haml +5 -5
- data/app/views/opportunities/new.js.haml +1 -1
- data/app/views/opportunities/show.html.haml +1 -1
- data/app/views/opportunities/show.js.haml +1 -1
- data/app/views/opportunities/update.js.haml +8 -6
- data/app/views/shared/_address.html.haml +1 -1
- data/app/views/shared/_inline_styles.html.haml +1 -1
- data/app/views/shared/_naming.html.haml +3 -3
- data/app/views/shared/_paginate.haml +2 -1
- data/app/views/shared/_paginate_with_per_page.html.haml +10 -12
- data/app/views/shared/_search.html.haml +7 -3
- data/app/views/shared/_select_popup.html.haml +9 -11
- data/app/views/shared/_tags.html.haml +5 -4
- data/app/views/tasks/_completed.html.haml +3 -1
- data/app/views/tasks/_selector.html.haml +1 -1
- data/app/views/tasks/_top_section.html.haml +1 -1
- data/app/views/tasks/complete.js.haml +7 -7
- data/app/views/tasks/create.js.haml +17 -17
- data/app/views/tasks/destroy.js.haml +2 -2
- data/app/views/tasks/discard.js.haml +1 -1
- data/app/views/tasks/edit.js.haml +4 -4
- data/app/views/tasks/filter.js.haml +2 -2
- data/app/views/tasks/new.js.haml +1 -1
- data/app/views/tasks/uncomplete.js.haml +12 -0
- data/app/views/tasks/update.js.haml +4 -4
- data/app/views/users/_avatar.html.haml +1 -1
- data/app/views/users/_languages.html.haml +3 -3
- data/app/views/users/_profile.html.haml +1 -1
- data/app/views/users/avatar.js.haml +1 -1
- data/app/views/users/change_password.js.haml +5 -5
- data/app/views/users/edit.js.haml +1 -1
- data/app/views/users/password.js.haml +2 -2
- data/app/views/users/show.html.haml +1 -1
- data/app/views/users/update.js.haml +5 -5
- data/app/views/users/upload_avatar.js.haml +3 -3
- data/app/views/versions/_versions.html.haml +1 -1
- data/config/application.rb +3 -0
- data/config/environments/production.rb +1 -1
- data/config/environments/staging.rb +58 -13
- data/config/initializers/locale.rb +2 -0
- data/config/locales/cz_fat_free_crm.yml +1 -0
- data/config/locales/de_fat_free_crm.yml +1 -0
- data/config/locales/en-GB_fat_free_crm.yml +1 -0
- data/config/locales/en-US_fat_free_crm.yml +2 -0
- data/config/locales/es_fat_free_crm.yml +1 -0
- data/config/locales/fr-CA_fat_free_crm.yml +1 -0
- data/config/locales/fr_fat_free_crm.yml +1 -0
- data/config/locales/it_fat_free_crm.yml +1 -0
- data/config/locales/ja_fat_free_crm.yml +1 -0
- data/config/locales/pl_fat_free_crm.yml +1 -0
- data/config/locales/pt-BR_fat_free_crm.yml +1 -0
- data/config/locales/ru_fat_free_crm.yml +444 -61
- data/config/locales/sv-SE_fat_free_crm.yml +1 -0
- data/config/locales/th_fat_free_crm.yml +1 -0
- data/config/locales/zh-CN_fat_free_crm.yml +1 -0
- data/config/routes.rb +20 -19
- data/config/settings.default.yml +11 -10
- data/fat_free_crm.gemspec +5 -4
- data/lib/{plugins/country_select/lib/country_select.rb → country_select.rb} +0 -0
- data/lib/fat_free_crm.rb +3 -1
- data/lib/fat_free_crm/engine.rb +2 -4
- data/lib/fat_free_crm/gem_dependencies.rb +1 -1
- data/lib/fat_free_crm/gem_ext.rb +0 -2
- data/lib/fat_free_crm/permissions.rb +2 -3
- data/lib/fat_free_crm/version.rb +1 -1
- data/lib/{plugins/gravatar_image_tag/lib/gravatar_image_tag.rb → gravatar_image_tag.rb} +0 -0
- data/lib/tasks/ffcrm/settings.rake +4 -16
- data/public/favicon.ico +0 -0
- data/spec/controllers/entities/accounts_controller_spec.rb +5 -5
- data/spec/controllers/entities/campaigns_controller_spec.rb +5 -5
- data/spec/controllers/entities/contacts_controller_spec.rb +42 -5
- data/spec/controllers/entities/leads_controller_spec.rb +7 -7
- data/spec/controllers/entities/opportunities_controller_spec.rb +5 -5
- data/spec/controllers/home_controller_spec.rb +3 -3
- data/spec/controllers/tasks_controller_spec.rb +29 -0
- data/spec/factories/shared_factories.rb +1 -3
- data/spec/features/support/selector_helpers.rb +4 -4
- data/spec/helpers/tasks_helper_spec.rb +10 -5
- data/spec/lib/permissions_spec.rb +10 -22
- data/spec/mailers/user_mailer_spec.rb +5 -4
- data/spec/models/observers/entity_observer_spec.rb +13 -8
- data/spec/models/polymorphic/task_spec.rb +111 -32
- data/spec/routing/accounts_routing_spec.rb +1 -1
- data/spec/routing/campaigns_routing_spec.rb +1 -1
- data/spec/routing/contacts_routing_spec.rb +1 -1
- data/spec/routing/leads_routing_spec.rb +1 -1
- data/spec/routing/opportunities_routing_spec.rb +1 -1
- data/spec/shared/controllers.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/views/accounts/create.js.haml_spec.rb +3 -3
- data/spec/views/accounts/index.js.haml_spec.rb +4 -4
- data/spec/views/accounts/update.js.haml_spec.rb +5 -5
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/destroy.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/index.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/suspend.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/update.js.haml_spec.rb +3 -3
- data/spec/views/campaigns/create.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/destroy.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/edit.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/index.js.haml_spec.rb +2 -2
- data/spec/views/campaigns/new.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/update.js.haml_spec.rb +7 -7
- data/spec/views/contacts/create.js.haml_spec.rb +4 -4
- data/spec/views/contacts/edit.js.haml_spec.rb +4 -4
- data/spec/views/contacts/index.js.html_spec.rb +2 -2
- data/spec/views/contacts/new.js.haml_spec.rb +2 -2
- data/spec/views/contacts/update.js.haml_spec.rb +11 -11
- data/spec/views/home/index.js.haml_spec.rb +1 -1
- data/spec/views/home/options.js.haml_spec.rb +3 -3
- data/spec/views/leads/convert.js.haml_spec.rb +3 -3
- data/spec/views/leads/create.js.haml_spec.rb +5 -5
- data/spec/views/leads/destroy.js.haml_spec.rb +1 -1
- data/spec/views/leads/edit.js.haml_spec.rb +4 -4
- data/spec/views/leads/index.js.haml_spec.rb +2 -2
- data/spec/views/leads/new.js.haml_spec.rb +1 -1
- data/spec/views/leads/promote.js.haml_spec.rb +13 -13
- data/spec/views/leads/reject.js.haml_spec.rb +6 -6
- data/spec/views/leads/update.js.haml_spec.rb +11 -11
- data/spec/views/opportunities/create.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/destroy.js.haml_spec.rb +1 -1
- data/spec/views/opportunities/edit.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/index.js.haml_spec.rb +2 -2
- data/spec/views/opportunities/update.js.haml_spec.rb +11 -11
- data/spec/views/tasks/complete.js.haml_spec.rb +5 -5
- data/spec/views/tasks/create.js.haml_spec.rb +13 -13
- data/spec/views/tasks/destroy.js.haml_spec.rb +3 -3
- data/spec/views/tasks/edit.js.haml_spec.rb +4 -4
- data/spec/views/tasks/new.js.haml_spec.rb +2 -2
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +44 -0
- data/spec/views/tasks/update.js.haml_spec.rb +17 -17
- data/spec/views/users/avatar.js.haml_spec.rb +1 -1
- data/spec/views/users/change_password.js.haml_spec.rb +4 -4
- data/spec/views/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/users/password.js.haml_spec.rb +2 -2
- data/spec/views/users/update.js.haml_spec.rb +5 -5
- data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
- data/vendor/assets/javascripts/ajax-chosen.jquery.coffee +166 -76
- data/vendor/assets/javascripts/chosen.jquery.coffee +2 -2
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-pt-BR.js +22 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/{jquery-ui-timepicker-sv.js → jquery-ui-timepicker-sv-SE.js} +0 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-th.js +19 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-fr-CA.js +21 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pt.js +21 -0
- data/vendor/assets/javascripts/rating.js +2 -2
- metadata +101 -122
- data/app/assets/images/facebook-close.gif +0 -0
- data/app/assets/javascripts/crm.js +0 -495
- data/app/assets/javascripts/crm_classes.js +0 -218
- data/app/assets/javascripts/crm_fields.js +0 -34
- data/app/assets/javascripts/crm_loginout.js +0 -29
- data/app/assets/javascripts/crm_textarea_autocomplete.js +0 -32
- data/app/assets/javascripts/groups.js.coffee +0 -8
- data/app/assets/javascripts/jquery-noconflict.js +0 -6
- data/app/assets/javascripts/timeago.js +0 -17
- data/app/views/lists/_personal_sidebar.html.haml +0 -28
- data/lib/fat_free_crm/gem_ext/active_model/serializers/xml/serializer/attribute.rb +0 -17
- data/lib/fat_free_crm/gem_ext/authlogic/session/cookies.rb +0 -16
- data/lib/fat_free_crm/plugin_dependencies.rb +0 -12
- data/lib/plugins/country_select/MIT-LICENSE +0 -20
- data/lib/plugins/country_select/README +0 -14
- data/lib/plugins/country_select/init.rb +0 -1
- data/lib/plugins/country_select/install.rb +0 -2
- data/lib/plugins/country_select/uninstall.rb +0 -2
- data/lib/plugins/gravatar_image_tag/Gemfile +0 -8
- data/lib/plugins/gravatar_image_tag/README.textile +0 -108
- data/lib/plugins/gravatar_image_tag/ROADMAP.textile +0 -33
- data/lib/plugins/gravatar_image_tag/Rakefile +0 -50
- data/lib/plugins/gravatar_image_tag/VERSION +0 -1
- data/lib/plugins/gravatar_image_tag/gravatar_image_tag.gemspec +0 -45
- data/lib/plugins/gravatar_image_tag/init.rb +0 -2
- data/lib/plugins/gravatar_image_tag/spec/gravatar_image_tag_spec.rb +0 -83
- data/lib/plugins/gravatar_image_tag/spec/test_helper.rb +0 -12
- data/lib/tasks/db/migrate.rake +0 -66
- data/lib/tasks/db/schema.rake +0 -20
- data/vendor/assets/javascripts/ajax-chosen-prototype.js +0 -2
- data/vendor/assets/javascripts/ajax-chosen.proto.coffee +0 -98
- data/vendor/assets/javascripts/chosen-prototype.js +0 -3
- data/vendor/assets/javascripts/chosen.proto.coffee +0 -580
- data/vendor/assets/javascripts/event.simulate.js +0 -64
- data/vendor/assets/javascripts/facebooklist.js +0 -548
- data/vendor/assets/javascripts/facebooklist.simulate.js +0 -28
- data/vendor/assets/javascripts/modalbox.js +0 -506
- data/vendor/assets/stylesheets/facebooklist.css +0 -47
@@ -1,218 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
//
|
3
|
-
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
//------------------------------------------------------------------------------
|
6
|
-
if (Object.isUndefined(crm)) {
|
7
|
-
var crm = {};
|
8
|
-
};
|
9
|
-
|
10
|
-
crm.Popup = Class.create({
|
11
|
-
|
12
|
-
//----------------------------------------------------------------------------
|
13
|
-
initialize: function() {
|
14
|
-
this.options = Object.extend({
|
15
|
-
trigger : "trigger", // #id of the element that triggers on_mouseover popup.
|
16
|
-
target : "popup", // #id of the popup div that is shown or hidden.
|
17
|
-
appear : 0, // duration of EffectAppear or 0 for show().
|
18
|
-
fade : 0, // duration of EffectFade or 0 for hide().
|
19
|
-
under : false, // true to show popup right under the trigger div.
|
20
|
-
zindex : 100, // zIndex value for the popup.
|
21
|
-
before_show : Prototype.emptyFunction, // before show callback.
|
22
|
-
before_hide : Prototype.emptyFunction, // before hide callback.
|
23
|
-
after_show : Prototype.emptyFunction, // after show callback.
|
24
|
-
after_hide : Prototype.emptyFunction // after hide callback.
|
25
|
-
}, arguments[0] || {});
|
26
|
-
|
27
|
-
this.popup = $(this.options.target); // actual popup div.
|
28
|
-
|
29
|
-
this.setup_toggle_observer();
|
30
|
-
this.setup_hide_observer();
|
31
|
-
},
|
32
|
-
|
33
|
-
//----------------------------------------------------------------------------
|
34
|
-
setup_toggle_observer: function() {
|
35
|
-
$(this.options.trigger).observe("click", function(e) {
|
36
|
-
this.toggle_popup(e);
|
37
|
-
}.bind(this));
|
38
|
-
},
|
39
|
-
|
40
|
-
//----------------------------------------------------------------------------
|
41
|
-
setup_hide_observer: function() {
|
42
|
-
document.observe("click", function(e) {
|
43
|
-
if (this.popup && this.popup.visible()) {
|
44
|
-
var clicked_on = Event.findElement(e, "div");
|
45
|
-
if (typeof(clicked_on) == "undefined" || clicked_on.id != this.options.target) {
|
46
|
-
this.hide_popup(e);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}.bind(this));
|
50
|
-
},
|
51
|
-
|
52
|
-
//----------------------------------------------------------------------------
|
53
|
-
show_popup: function(e) {
|
54
|
-
e.stop();
|
55
|
-
this.popup.setStyle({ zIndex: this.options.zindex });
|
56
|
-
|
57
|
-
// Add custom "trigger" attribute to the popup div so we could check who has triggered it.
|
58
|
-
this.popup.writeAttribute("trigger", this.options.trigger);
|
59
|
-
|
60
|
-
this.options.before_show(e);
|
61
|
-
if (!this.options.appear) {
|
62
|
-
this.popup.show();
|
63
|
-
this.set_position(e);
|
64
|
-
this.options.after_show(e);
|
65
|
-
} else {
|
66
|
-
this.popup.show();
|
67
|
-
this.set_position(e);
|
68
|
-
this.popup.hide();
|
69
|
-
Effect.Appear(this.popup, { duration: this.options.appear, afterFinish: function(e) { this.options.after_show(e); }.bind(this) });
|
70
|
-
}
|
71
|
-
},
|
72
|
-
|
73
|
-
//----------------------------------------------------------------------------
|
74
|
-
toggle_popup: function(e) {
|
75
|
-
if (this.popup.visible()) {
|
76
|
-
if (this.options.trigger != this.popup.readAttribute("trigger")) {
|
77
|
-
// Currently shown popup was opened by some other trigger: hide it immediately
|
78
|
-
// without any fancy callbacks, then show this popup.
|
79
|
-
this.popup.hide();
|
80
|
-
this.show_popup(e);
|
81
|
-
} else {
|
82
|
-
this.hide_popup(e);
|
83
|
-
}
|
84
|
-
} else {
|
85
|
-
this.show_popup(e);
|
86
|
-
}
|
87
|
-
},
|
88
|
-
|
89
|
-
//----------------------------------------------------------------------------
|
90
|
-
hide_popup: function(e) {
|
91
|
-
this.options.before_hide(e);
|
92
|
-
if (!this.options.fade) {
|
93
|
-
this.popup.hide();
|
94
|
-
this.options.after_hide(e);
|
95
|
-
} else {
|
96
|
-
Effect.Fade(this.popup, { duration: this.options.fade, afterFinish: function(e) { this.options.after_hide(e); }.bind(this) });
|
97
|
-
}
|
98
|
-
},
|
99
|
-
|
100
|
-
set_position: function(e) {
|
101
|
-
if (this.options.under) {
|
102
|
-
var coordinates = $(this.options.under).viewportOffset();
|
103
|
-
var under = $(this.options.under)
|
104
|
-
var popup = $(this.popup)
|
105
|
-
var y_offset = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
|
106
|
-
|
107
|
-
var x = (coordinates[0] + under.offsetWidth - popup.offsetWidth) + "px";
|
108
|
-
var y = (coordinates[1] + under.offsetHeight + y_offset) + "px";
|
109
|
-
this.popup.setStyle({ left: x, top: y });
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
});
|
114
|
-
|
115
|
-
|
116
|
-
crm.Menu = Class.create({
|
117
|
-
|
118
|
-
//----------------------------------------------------------------------------
|
119
|
-
initialize: function() {
|
120
|
-
this.options = Object.extend({
|
121
|
-
trigger : "menu", // #id of the element clicking on which triggers dropdown menu.
|
122
|
-
align : "left", // align the menu left or right
|
123
|
-
appear : 0, // duration of EffectAppear or 0 for show().
|
124
|
-
fade : 0, // duration of EffectFade or 0 for hide().
|
125
|
-
width : 0, // explicit menu width if set to non-zero
|
126
|
-
zindex : 100, // zIndex value for the popup.
|
127
|
-
before_show : Prototype.emptyFunction, // before show callback.
|
128
|
-
before_hide : Prototype.emptyFunction, // before hide callback.
|
129
|
-
after_show : Prototype.emptyFunction, // after show callback.
|
130
|
-
after_hide : Prototype.emptyFunction // after hide callback.
|
131
|
-
}, arguments[0] || {});
|
132
|
-
|
133
|
-
this.build_menu();
|
134
|
-
this.setup_show_observer();
|
135
|
-
this.setup_hide_observer();
|
136
|
-
},
|
137
|
-
|
138
|
-
//----------------------------------------------------------------------------
|
139
|
-
build_menu: function() {
|
140
|
-
var ul = new Element("ul");
|
141
|
-
this.options.menu_items.each(function(item) {
|
142
|
-
var a = new Element("a", { href: "#", title: item.name });
|
143
|
-
if (item.on_select) {
|
144
|
-
a = Object.extend(a, { on_select: item.on_select });
|
145
|
-
}
|
146
|
-
var li = new Element("li").insert(a.observe("click", this.select_menu.bind(this)).update(item.name));
|
147
|
-
ul.insert(li);
|
148
|
-
}.bind(this));
|
149
|
-
|
150
|
-
this.menu = new Element("div", { className: "menu", style: "display:none" });
|
151
|
-
if (this.options.width) {
|
152
|
-
this.menu.setStyle({ width: this.options.width + "px" })
|
153
|
-
}
|
154
|
-
$(document.body).insert(this.menu.insert(ul).observe("click", Event.stop));
|
155
|
-
},
|
156
|
-
|
157
|
-
//----------------------------------------------------------------------------
|
158
|
-
setup_hide_observer: function() {
|
159
|
-
document.observe("click", function(e) {
|
160
|
-
if (this.menu && this.menu.visible()) {
|
161
|
-
this.hide_menu();
|
162
|
-
}
|
163
|
-
}.bind(this));
|
164
|
-
},
|
165
|
-
|
166
|
-
//----------------------------------------------------------------------------
|
167
|
-
setup_show_observer: function() {
|
168
|
-
$(this.options.trigger).observe("click", function(e) {
|
169
|
-
if (this.menu && !this.menu.visible()) {
|
170
|
-
this.show_menu(e);
|
171
|
-
}
|
172
|
-
}.bind(this));
|
173
|
-
},
|
174
|
-
|
175
|
-
//----------------------------------------------------------------------------
|
176
|
-
hide_menu: function(e) {
|
177
|
-
this.options.before_hide(e);
|
178
|
-
if (!this.options.fade) {
|
179
|
-
this.menu.hide();
|
180
|
-
this.options.after_hide(e);
|
181
|
-
} else {
|
182
|
-
Effect.Fade(this.menu, { duration: this.options.fade, afterFinish: function(e) { this.options.after_hide(e); }.bind(this) });
|
183
|
-
}
|
184
|
-
},
|
185
|
-
|
186
|
-
//----------------------------------------------------------------------------
|
187
|
-
show_menu: function(e) {
|
188
|
-
e.stop();
|
189
|
-
|
190
|
-
var dimensions = Event.element(e).getDimensions();
|
191
|
-
var coordinates = Event.element(e).viewportOffset();
|
192
|
-
var x = coordinates[0] + "px";
|
193
|
-
var y = coordinates[1] + dimensions.height + "px";
|
194
|
-
if (this.options.align == "right") {
|
195
|
-
x = (coordinates[0] - (this.options.width - dimensions.width + 1)) + "px";
|
196
|
-
}
|
197
|
-
|
198
|
-
this.menu.setStyle({ left: x, top: y }).setStyle({ zIndex: this.options.zindex });
|
199
|
-
|
200
|
-
this.options.before_show(e);
|
201
|
-
if (!this.options.appear) {
|
202
|
-
this.menu.show();
|
203
|
-
this.options.after_show(e);
|
204
|
-
} else {
|
205
|
-
Effect.Appear(this.menu, { duration: this.options.appear, afterFinish: function(e) { this.options.after_show(e); }.bind(this) });
|
206
|
-
}
|
207
|
-
this.event = e;
|
208
|
-
},
|
209
|
-
|
210
|
-
//----------------------------------------------------------------------------
|
211
|
-
select_menu: function(e) {
|
212
|
-
e.stop();
|
213
|
-
if (e.target.on_select) {
|
214
|
-
this.hide_menu();
|
215
|
-
e.target.on_select(this.event);
|
216
|
-
}
|
217
|
-
}
|
218
|
-
});
|
@@ -1,34 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
//
|
3
|
-
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
//------------------------------------------------------------------------------
|
6
|
-
//----------------------------------------------------------------------------
|
7
|
-
// AJAX loads the form fields for each field group
|
8
|
-
crm.load_field_group = function(controller, tag, asset_id) {
|
9
|
-
new Ajax.Request(crm.base_url + '/' + controller +'/field_group', {
|
10
|
-
asynchronous: true,
|
11
|
-
evalScripts: true,
|
12
|
-
method: 'get',
|
13
|
-
parameters: { tag : tag,
|
14
|
-
asset_id : asset_id,
|
15
|
-
collapsed : "no" }
|
16
|
-
});
|
17
|
-
};
|
18
|
-
|
19
|
-
//----------------------------------------------------------------------------
|
20
|
-
// Remove the form fields for the field group with the given tag
|
21
|
-
crm.remove_field_group = function(tag) {
|
22
|
-
el = $$("#field_groups div[data-tag='"+tag+"']")[0];
|
23
|
-
if (el) el.remove();
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
//----------------------------------------------------------------------------
|
28
|
-
// Fires an 'onclick' event on all '.close' buttons in the DOM.
|
29
|
-
// (closes any current edit forms)
|
30
|
-
crm.close_all_forms = function() {
|
31
|
-
$$('.close').each(function(el){
|
32
|
-
new Ajax.Request(el.href, {asynchronous: true, method: "get"})
|
33
|
-
});
|
34
|
-
};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
//
|
3
|
-
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
//------------------------------------------------------------------------------
|
6
|
-
if (Object.isUndefined(crm)) {
|
7
|
-
var crm = {};
|
8
|
-
};
|
9
|
-
|
10
|
-
//----------------------------------------------------------------------------
|
11
|
-
crm.toggle_open_id_login = function(first_field) {
|
12
|
-
if (arguments.length == 0) {
|
13
|
-
first_field = "authentication_openid_identifier";
|
14
|
-
}
|
15
|
-
$("login").toggle();
|
16
|
-
$("openid").toggle();
|
17
|
-
$("login_link").toggle();
|
18
|
-
$("openid_link").toggle();
|
19
|
-
$(first_field).focus();
|
20
|
-
};
|
21
|
-
|
22
|
-
//----------------------------------------------------------------------------
|
23
|
-
crm.toggle_open_id_signup = function() {
|
24
|
-
$("login").toggle();
|
25
|
-
$("openid").toggle();
|
26
|
-
$("login_link").toggle();
|
27
|
-
$("openid_link").toggle();
|
28
|
-
$('user_email').focus();
|
29
|
-
};
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
//
|
3
|
-
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
//------------------------------------------------------------------------------
|
6
|
-
crm.textarea_user_autocomplete = function(el_id) {
|
7
|
-
if (! jQuery('#areacomplete_' + el_id)[0]) {
|
8
|
-
jQuery('#' + el_id).areacomplete({
|
9
|
-
wordCount: 1,
|
10
|
-
mode: "outter",
|
11
|
-
on: {
|
12
|
-
query: function(text,cb) {
|
13
|
-
// Only autocomplete if search term starts with '@'
|
14
|
-
if (text.indexOf("@") != 0) { return []; }
|
15
|
-
|
16
|
-
var words = [];
|
17
|
-
for( var i=0; i < _ffcrm_users.length; i++ ) {
|
18
|
-
var name_query = text.replace("@",'').toLowerCase();
|
19
|
-
if (_ffcrm_users[i].toLowerCase().indexOf(name_query) != -1 ) {
|
20
|
-
words.push(_ffcrm_users[i]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
cb(words, text.replace("@",''));
|
24
|
-
},
|
25
|
-
selected: function(text, data) {
|
26
|
-
var username_regEx = new RegExp("\\((@[^)]+)\\)");
|
27
|
-
return text.match(username_regEx)[1];
|
28
|
-
}
|
29
|
-
}
|
30
|
-
});
|
31
|
-
}
|
32
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
#
|
3
|
-
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
#------------------------------------------------------------------------------
|
6
|
-
# Place all the behaviors and hooks related to the matching controller here.
|
7
|
-
# All this logic will automatically be available in application.js.
|
8
|
-
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
@@ -1,6 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
//
|
3
|
-
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
//------------------------------------------------------------------------------
|
6
|
-
jQuery.noConflict();
|
@@ -1,17 +0,0 @@
|
|
1
|
-
// Run function on page load
|
2
|
-
jQuery(document).ready(function() {
|
3
|
-
jQuery.timeago.settings.allowFuture = true;
|
4
|
-
// our modification to choose correct language
|
5
|
-
jQuery.timeago.settings.strings = jQuery.timeago.settings.locales[crm.language]
|
6
|
-
jQuery("span.timeago").timeago();
|
7
|
-
// update every minute
|
8
|
-
setInterval(function(){ jQuery("span.timeago").timeago(); }, 60000);
|
9
|
-
});
|
10
|
-
|
11
|
-
// Run after jQuery ajax event
|
12
|
-
jQuery(document).ajaxComplete( function() { jQuery("span.timeago").timeago(); } );
|
13
|
-
|
14
|
-
// Run after prototype ajax event
|
15
|
-
Ajax.Responders.register( {
|
16
|
-
onComplete: function(response) { jQuery("span.timeago").timeago(); }
|
17
|
-
})
|
@@ -1,28 +0,0 @@
|
|
1
|
-
- @personal_lists = List.where(:user_id => current_user.id)
|
2
|
-
- @list = List.new
|
3
|
-
.panel#personal_lists
|
4
|
-
.caption #{t :personal_lists}
|
5
|
-
%ul
|
6
|
-
- if @personal_lists.none?
|
7
|
-
%div #{t :no_saved_lists}
|
8
|
-
- else
|
9
|
-
- @personal_lists.sort.each_with_index do |list, i|
|
10
|
-
%li[list]{ :class => i < @personal_lists.size - 1 ? "" : "last" }
|
11
|
-
%dt= link_to(truncate(list.name, :length => 25), h(list.url), :title => list.name)
|
12
|
-
%tt
|
13
|
-
= link_to(url_for(list), :method => :delete, :confirm => 'Are you sure?', :remote => true, :class => "list_icon delete_on_hover") do
|
14
|
-
%i.fa{:"data-controller" => list.controller, class: get_icon(list.controller)}
|
15
|
-
|
16
|
-
.show_personal_lists_save_form{ hidden_if(!params[:q]) }
|
17
|
-
= link_to(t(:make_current_view_list), '#')
|
18
|
-
|
19
|
-
.save_peronal_list{ hidden }
|
20
|
-
= simple_form_for(@list, :html => one_submit_only, :remote => true) do |f|
|
21
|
-
= f.text_field :name, :size => 25
|
22
|
-
= image_tag("/assets/info_tiny.png", :title => t(:list_name_info), :class => "input_info")
|
23
|
-
= f.hidden_field :url, :id => "personal_list_url"
|
24
|
-
%input{:type => "hidden", :name => "is_global", :value => 0}
|
25
|
-
%div
|
26
|
-
= f.submit(t(:save), :id => "save_personal_list", :style => "vertical-align: bottom;")
|
27
|
-
#{t :or}
|
28
|
-
= link_to(t(:cancel), '#', :class => "hide_lists_save_personal_form")
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
#
|
3
|
-
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
#------------------------------------------------------------------------------
|
6
|
-
# Take into account current time zone when serializing datetime values
|
7
|
-
# See: https://rails.lighthouseapp.com/projects/8994/tickets/6096-to_xml-datetime-format-regression
|
8
|
-
|
9
|
-
ActiveModel::Serializers::Xml::Serializer::Attribute.class_eval do
|
10
|
-
def initialize(name, serializable, raw_value=nil)
|
11
|
-
@name, @serializable = name, serializable
|
12
|
-
raw_value = raw_value.in_time_zone if raw_value.respond_to?(:in_time_zone)
|
13
|
-
@value = raw_value || @serializable.send(name)
|
14
|
-
@type = compute_type
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
#
|
3
|
-
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
#------------------------------------------------------------------------------
|
6
|
-
require 'action_controller'
|
7
|
-
require 'authlogic'
|
8
|
-
|
9
|
-
# Fix bug for default cookie name (use klass_name, instead of guessed_klass_name)
|
10
|
-
# Pull request pending: https://github.com/binarylogic/authlogic/pull/281
|
11
|
-
Authlogic::Session::Base.instance_eval do
|
12
|
-
def cookie_key(value = nil)
|
13
|
-
rw_config(:cookie_key, value, "#{klass_name.underscore}_credentials")
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
-
#
|
3
|
-
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
-
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
-
#------------------------------------------------------------------------------
|
6
|
-
# Plugin dependencies
|
7
|
-
Dir.glob(File.join(File.dirname(__FILE__), '..', 'plugins', '**')).each do |plugin_dir|
|
8
|
-
# Add 'plugin/lib' to $LOAD_PATH
|
9
|
-
$:.unshift File.expand_path(File.join(plugin_dir, 'lib'))
|
10
|
-
require File.basename(plugin_dir) # require 'plugin'
|
11
|
-
require File.join(plugin_dir, 'init') # require 'plugin/init'
|
12
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2008 Michael Koziarski
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|