spree 0.9.4 → 0.10.0.beta
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +185 -0
- data/CONTRIBUTORS +93 -66
- data/LICENSE +1 -1
- data/Rakefile +19 -16
- data/app/controllers/admin/adjustments_controller.rb +32 -0
- data/app/controllers/admin/base_controller.rb +33 -18
- data/app/controllers/admin/checkouts_controller.rb +41 -0
- data/app/controllers/admin/coupons_controller.rb +2 -1
- data/app/controllers/admin/images_controller.rb +28 -19
- data/app/controllers/admin/line_items_controller.rb +55 -0
- data/app/controllers/admin/option_types_controller.rb +7 -4
- data/app/controllers/admin/orders_controller.rb +29 -15
- data/app/controllers/admin/payment_methods_controller.rb +31 -0
- data/app/controllers/admin/payments_controller.rb +99 -0
- data/app/controllers/admin/product_groups_controller.rb +42 -0
- data/app/controllers/admin/product_properties_controller.rb +7 -0
- data/app/controllers/admin/product_scopes_controller.rb +18 -0
- data/app/controllers/admin/products_controller.rb +74 -36
- data/app/controllers/admin/properties_controller.rb +2 -0
- data/app/controllers/admin/prototypes_controller.rb +3 -1
- data/app/controllers/admin/reports_controller.rb +2 -2
- data/app/controllers/admin/return_authorizations_controller.rb +36 -0
- data/app/controllers/admin/shipments_controller.rb +55 -24
- data/app/controllers/admin/shipping_categories_controller.rb +2 -1
- data/app/controllers/admin/shipping_methods_controller.rb +9 -7
- data/app/controllers/admin/shipping_rates_controller.rb +2 -1
- data/app/controllers/admin/states_controller.rb +1 -1
- data/app/controllers/admin/tax_categories_controller.rb +3 -1
- data/app/controllers/admin/tax_rates_controller.rb +12 -8
- data/app/controllers/admin/taxonomies_controller.rb +4 -13
- data/app/controllers/admin/taxons_controller.rb +86 -46
- data/app/controllers/admin/trackers_controller.rb +7 -0
- data/app/controllers/admin/users_controller.rb +29 -19
- data/app/controllers/admin/variants_controller.rb +12 -7
- data/app/controllers/admin/zones_controller.rb +3 -1
- data/app/controllers/application_controller.rb +4 -0
- data/app/controllers/checkouts_controller.rb +195 -131
- data/app/controllers/line_items_controller.rb +11 -6
- data/app/controllers/orders_controller.rb +35 -31
- data/app/controllers/password_resets_controller.rb +6 -1
- data/app/controllers/products_controller.rb +22 -31
- data/app/controllers/spree/base_controller.rb +144 -29
- data/app/controllers/taxons_controller.rb +8 -10
- data/app/controllers/user_sessions_controller.rb +69 -19
- data/app/controllers/users_controller.rb +42 -20
- data/app/helpers/admin/adjustments_helper.rb +2 -0
- data/app/helpers/admin/base_helper.rb +57 -105
- data/app/helpers/admin/checkouts_helper.rb +2 -0
- data/app/helpers/admin/line_items_helper.rb +2 -0
- data/app/helpers/admin/navigation_helper.rb +127 -0
- data/app/helpers/admin/orders_helper.rb +22 -7
- data/app/helpers/admin/payments_helper.rb +7 -0
- data/app/helpers/admin/return_authorizations_helper.rb +2 -0
- data/app/helpers/application_helper.rb +2 -8
- data/app/helpers/checkouts_helper.rb +32 -4
- data/app/helpers/hook_helper.rb +21 -0
- data/app/helpers/products_helper.rb +28 -10
- data/app/helpers/spree/base_helper.rb +43 -43
- data/app/helpers/taxons_helper.rb +3 -3
- data/app/helpers/trackers_helper.rb +2 -0
- data/app/helpers/users_helper.rb +13 -0
- data/app/metal/create_admin_user.rb +1 -1
- data/app/metal/redirect_legacy_product_url.rb +10 -0
- data/app/metal/seo_assist.rb +38 -0
- data/app/models/address.rb +28 -2
- data/app/models/adjustment.rb +57 -18
- data/app/models/app_configuration.rb +8 -3
- data/app/models/billing_integration.rb +23 -0
- data/app/models/calculator.rb +8 -3
- data/app/models/calculator/flat_percent_item_total.rb +6 -5
- data/app/models/calculator/per_item.rb +2 -2
- data/app/models/charge.rb +14 -32
- data/app/models/checkout.rb +118 -26
- data/app/models/coupon.rb +6 -4
- data/app/models/coupon_credit.rb +25 -0
- data/app/models/credit.rb +14 -22
- data/app/models/creditcard.rb +38 -110
- data/app/models/creditcard_txn.rb +7 -4
- data/app/models/inventory_unit.rb +50 -33
- data/app/models/line_item.rb +11 -5
- data/app/models/option_type.rb +2 -1
- data/app/models/order.rb +189 -64
- data/app/models/order_mailer.rb +5 -1
- data/app/models/payment.rb +99 -8
- data/app/models/payment_method.rb +45 -0
- data/app/models/payment_method/check.rb +2 -0
- data/app/models/product.rb +103 -38
- data/app/models/product_group.rb +201 -0
- data/app/models/product_scope.rb +56 -0
- data/app/models/return_authorization.rb +70 -0
- data/app/models/return_authorization_credit.rb +3 -0
- data/app/models/shipment.rb +79 -20
- data/app/models/shipping_charge.rb +23 -0
- data/app/models/shipping_method.rb +17 -8
- data/app/models/state_event.rb +1 -1
- data/app/models/state_monitor.rb +25 -0
- data/app/models/tax_charge.rb +23 -0
- data/app/models/taxon.rb +24 -16
- data/app/models/taxonomy.rb +10 -0
- data/app/models/tracker.rb +5 -0
- data/app/models/transaction.rb +6 -0
- data/app/models/user.rb +32 -6
- data/app/models/user_session.rb +1 -1
- data/app/models/variant.rb +36 -25
- data/app/models/zone.rb +19 -16
- data/bin/spree +3 -5
- data/config/boot.rb +7 -3
- data/config/database.yml +24 -25
- data/config/environment.rb +34 -28
- data/config/environments/staging.rb +13 -8
- data/config/environments/test.rb +2 -6
- data/config/initializers/locales.rb +1 -1
- data/config/initializers/spree.rb +4 -1
- data/config/initializers/touch.rb +9 -0
- data/config/initializers/workarounds_for_ruby19.rb +102 -0
- data/config/locales/cs-CZ.yml +914 -0
- data/config/locales/cs-CZ_rails.yml +202 -0
- data/config/locales/da.yml +305 -5
- data/config/locales/de-CH.yml +305 -5
- data/config/locales/de.yml +479 -179
- data/config/locales/en-AU.yml +914 -0
- data/config/locales/en-AU_rails.yml +202 -0
- data/config/locales/en-GB.yml +306 -6
- data/config/locales/en-US.yml +390 -90
- data/config/locales/en-US_rails.yml +11 -6
- data/config/locales/es.yml +378 -78
- data/config/locales/fi.yml +380 -80
- data/config/locales/fr-FR.yml +489 -189
- data/config/locales/il.yml +306 -6
- data/config/locales/it.yml +306 -6
- data/config/locales/jp.yml +306 -6
- data/config/locales/mx.yml +305 -5
- data/config/locales/nb-NO.yml +305 -5
- data/config/locales/nl-BE.yml +314 -14
- data/config/locales/nl-NL.yml +317 -17
- data/config/locales/nl-NL_rails.yml +45 -45
- data/config/locales/pl.yml +306 -6
- data/config/locales/pt-BR.yml +305 -5
- data/config/locales/pt-PT.yml +305 -5
- data/config/locales/ru-RU.yml +361 -61
- data/config/locales/ru-RU_rails.yml +6 -0
- data/config/locales/th.yml +306 -6
- data/config/locales/vn.yml +914 -0
- data/config/locales/vn_rails.yml +202 -0
- data/config/routes.rb +41 -24
- data/config/spree_permissions.yml +3 -3
- data/db/migrate/20090823005402_spree_zero_nine_zero.rb +452 -0
- data/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
- data/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +30 -0
- data/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
- data/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
- data/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
- data/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
- data/db/migrate/20091016174634_change_preference_value_type.rb +9 -0
- data/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
- data/db/migrate/20091021133257_charge_refactoring.rb +32 -0
- data/db/migrate/20091104151730_add_some_indexes.rb +21 -0
- data/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
- data/db/migrate/20091209153045_state_for_shipments.rb +9 -0
- data/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
- data/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
- data/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
- data/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
- data/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
- data/db/migrate/20100105090147_add_cost_price.rb +9 -0
- data/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +17 -0
- data/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
- data/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
- data/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
- data/db/migrate/20100113203104_create_trackers.rb +14 -0
- data/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
- data/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
- data/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
- data/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
- data/db/migrate/20100209025806_create_payment_methods.rb +20 -0
- data/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
- data/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
- data/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
- data/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
- data/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
- data/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
- data/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
- data/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
- data/db/sample/addresses.yml +21 -18
- data/db/sample/adjustments.yml +8 -10
- data/db/sample/checkouts.yml +11 -5
- data/db/sample/inventory_units.rb +4 -0
- data/db/sample/line_items.yml +26 -11
- data/db/sample/orders.yml +15 -6
- data/db/sample/payment_methods.yml +23 -0
- data/db/sample/payments.rb +25 -0
- data/db/sample/product_groups.yml +9 -0
- data/db/sample/product_scopes.yml +35 -0
- data/db/sample/products.rb +24 -0
- data/db/sample/products.yml +8 -0
- data/db/sample/shipments.yml +4 -3
- data/db/sample/taxons.rb +3 -0
- data/db/sample/taxons.yml +22 -2
- data/db/sample/users.rb +58 -0
- data/db/sample/users.yml +12 -4
- data/db/sample/variants.yml +43 -5
- data/db/schema.rb +87 -47
- data/db/seeds.rb +8 -14
- data/lib/commands/extension.rb +4 -4
- data/lib/custom_fixtures.rb +1 -1
- data/lib/generators/extension/extension_generator.rb +3 -1
- data/lib/generators/extension/templates/RSpecRakefile +18 -1
- data/lib/generators/extension/templates/Rakefile +16 -0
- data/lib/generators/extension/templates/extension.rb +0 -16
- data/lib/generators/extension/templates/extension_hooks.rb +43 -0
- data/lib/generators/extension/templates/seeds.rb +2 -0
- data/lib/generators/extension/templates/tasks.rake +0 -11
- data/lib/generators/extension/templates/test_helper.rb +3 -15
- data/lib/generators/extension_controller/templates/controller.rb +1 -1
- data/lib/generators/extension_controller/templates/functional_test.rb +1 -6
- data/lib/generators/instance/instance_generator.rb +1 -1
- data/lib/generators/instance/templates/instance_rakefile +1 -0
- data/lib/generators/theme/templates/README.markdown +5 -0
- data/lib/generators/theme/theme_generator.rb +56 -0
- data/lib/scopes.rb +68 -0
- data/lib/scopes/dynamic.rb +38 -0
- data/lib/scopes/product.rb +246 -0
- data/lib/scopes/variant.rb +9 -0
- data/lib/spree.rb +5 -3
- data/lib/spree/checkout/action_options.rb +18 -0
- data/lib/spree/checkout/hooks.rb +27 -0
- data/lib/spree/config.rb +13 -2
- data/lib/spree/extension.rb +11 -1
- data/lib/spree/extension_loader.rb +10 -3
- data/lib/spree/extensions.rb +26 -0
- data/lib/spree/file_utilz.rb +3 -1
- data/lib/spree/initializer.rb +15 -17
- data/lib/spree/preferences/mail_settings.rb +1 -1
- data/lib/spree/preferences/model_hooks.rb +6 -1
- data/lib/spree/search.rb +46 -0
- data/lib/spree/search/base.rb +22 -0
- data/lib/spree/support/core_extensions/string.rb +1 -1
- data/lib/spree/theme_support.rb +4 -0
- data/lib/spree/theme_support/hook.rb +51 -0
- data/lib/spree/theme_support/hook_listener.rb +68 -0
- data/lib/spree/theme_support/hook_modifier.rb +35 -0
- data/lib/spree/theme_support/more_patches.rb +117 -0
- data/lib/tasks/database.rake +61 -21
- data/lib/tasks/extensions.rake +105 -9
- data/lib/tasks/rspec.rake +30 -30
- data/lib/tasks/themes.rake +32 -0
- data/lib/tasks/translation.rake +31 -0
- data/lib/tasks/upgrade.rake +1 -1
- data/lib/validation_group.rb +145 -0
- data/public/images/datepicker/backstripes.gif +0 -0
- data/public/images/datepicker/bg_header.jpg +0 -0
- data/public/images/datepicker/bullet1.gif +0 -0
- data/public/images/datepicker/bullet2.gif +0 -0
- data/public/images/datepicker/cal.gif +0 -0
- data/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/public/images/step-progress/completed-completed.gif +0 -0
- data/public/images/step-progress/completed-current.gif +0 -0
- data/public/images/step-progress/completed-first.gif +0 -0
- data/public/images/step-progress/current-first.gif +0 -0
- data/public/images/step-progress/current-incomplete.gif +0 -0
- data/public/images/step-progress/current-right.gif +0 -0
- data/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/public/images/step-progress/incomplete-right.gif +0 -0
- data/public/javascripts/additional-methods.js +236 -0
- data/public/javascripts/admin/address_states.js +25 -0
- data/public/javascripts/admin/checkouts/edit.js +79 -0
- data/public/javascripts/admin/orders/edit.js +96 -0
- data/public/javascripts/admin/orders/edit_form.js +17 -0
- data/public/javascripts/admin/payments/new.js +9 -0
- data/public/javascripts/admin/unobtrusive_handlers.js +15 -0
- data/public/javascripts/checkout.js +48 -520
- data/public/javascripts/dashboard.js +143 -0
- data/public/javascripts/datepicker.js +1445 -0
- data/public/javascripts/gateway.js +13 -0
- data/public/javascripts/jqPlot/excanvas.min.js +1 -0
- data/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
- data/public/javascripts/jquery-and-plugins.js +36 -0
- data/public/javascripts/jquery-ui.js +188 -0
- data/public/javascripts/jquery.autocomplete.min.js +13 -0
- data/public/javascripts/jquery.js +19 -0
- data/public/javascripts/jquery.suggest.js +276 -0
- data/public/javascripts/jquery.template.js +255 -0
- data/public/javascripts/jquery.validate.min.js +4 -4
- data/public/javascripts/jrails.autocomplete.js +274 -0
- data/public/javascripts/jrails.js +1 -0
- data/public/javascripts/jsTree/jquery.tree.js +2058 -0
- data/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +129 -0
- data/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/public/javascripts/jsTree/{source/themes/default/dot.gif → themes/apple/dot_for_ie.gif} +0 -0
- data/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/public/javascripts/jsTree/themes/apple/style.css +34 -0
- data/public/javascripts/jsTree/{source/themes/default → themes/apple}/throbber.gif +0 -0
- data/public/javascripts/lang/af.js +40 -0
- data/public/javascripts/lang/ar.js +50 -0
- data/public/javascripts/lang/de.js +40 -0
- data/public/javascripts/lang/du.js +40 -0
- data/public/javascripts/lang/en.js +42 -0
- data/public/javascripts/lang/es.js +41 -0
- data/public/javascripts/lang/fi.js +40 -0
- data/public/javascripts/lang/fr.js +44 -0
- data/public/javascripts/lang/gr.js +40 -0
- data/public/javascripts/lang/he.js +49 -0
- data/public/javascripts/lang/it.js +13 -0
- data/public/javascripts/lang/nl.js +40 -0
- data/public/javascripts/lang/no.js +40 -0
- data/public/javascripts/lang/pt.js +50 -0
- data/public/javascripts/lang/ro.js +40 -0
- data/public/javascripts/lang/ru.js +40 -0
- data/public/javascripts/lang/sp.js +40 -0
- data/public/javascripts/lang/sv.js +41 -0
- data/public/javascripts/lang/ua.js +40 -0
- data/public/javascripts/localization/messages_cn.js +24 -0
- data/public/javascripts/localization/messages_cs.js +23 -0
- data/public/javascripts/localization/messages_da.js +21 -0
- data/public/javascripts/localization/messages_de.js +21 -0
- data/public/javascripts/localization/messages_es.js +24 -0
- data/public/javascripts/localization/messages_fr.js +23 -0
- data/public/javascripts/localization/messages_hu.js +21 -0
- data/public/javascripts/localization/messages_it.js +26 -0
- data/public/javascripts/localization/messages_kk.js +23 -0
- data/public/javascripts/localization/messages_nl.js +23 -0
- data/public/javascripts/localization/messages_no.js +23 -0
- data/public/javascripts/localization/messages_pl.js +23 -0
- data/public/javascripts/localization/messages_ptbr.js +30 -0
- data/public/javascripts/localization/messages_ro.js +24 -0
- data/public/javascripts/localization/messages_ru.js +23 -0
- data/public/javascripts/localization/messages_se.js +23 -0
- data/public/javascripts/localization/messages_sk.js +21 -0
- data/public/javascripts/localization/messages_tr.js +24 -0
- data/public/javascripts/localization/messages_tw.js +24 -0
- data/public/javascripts/localization/messages_ua.js +24 -0
- data/public/javascripts/open_id.js +15 -0
- data/public/javascripts/product.js +49 -0
- data/public/javascripts/spree.js +37 -2
- data/public/javascripts/taxonomy.js +138 -144
- data/public/javascripts/zone.js +0 -8
- data/public/robots.txt +10 -1
- data/public/stylesheets/admin/admin-tables.css +1 -1
- data/public/stylesheets/admin/admin.css +147 -50
- data/public/stylesheets/admin/dashboard.css +143 -0
- data/public/stylesheets/admin/edit-checkouts.css +57 -0
- data/public/stylesheets/admin/edit_checkouts.css +57 -0
- data/public/stylesheets/admin/edit_orders.css +65 -0
- data/public/stylesheets/bundle_admin.css +484 -0
- data/public/stylesheets/bundle_calendar_date_select.css +137 -0
- data/public/stylesheets/bundle_compiled.css +459 -0
- data/public/stylesheets/compiled/screen.css +1 -19
- data/public/stylesheets/datepicker.css +263 -0
- data/public/stylesheets/jquery.autocomplete.css +48 -0
- data/public/stylesheets/screen.css +1181 -0
- data/spec/controllers/products_controller_spec.rb +1 -11
- data/spec/fixtures/gateways.yml +8 -3
- data/spec/models/property_spec.rb +2 -3
- data/spec/models/prototype_spec.rb +1 -1
- data/spec/spec_helper.rb +10 -11
- data/test/factories/address_factory.rb +3 -3
- data/test/factories/adjustments_factory.rb +6 -11
- data/test/factories/checkout_factory.rb +4 -4
- data/test/factories/creditcard_factory.rb +6 -7
- data/test/factories/inventory_unit_factory.rb +1 -0
- data/test/factories/line_item_factory.rb +2 -2
- data/test/factories/order_factory.rb +4 -2
- data/test/factories/payment_factory.rb +26 -0
- data/test/factories/product_factory.rb +2 -1
- data/test/factories/product_group_factory.rb +10 -0
- data/test/factories/role_factory.rb +6 -2
- data/test/factories/user_factory.rb +9 -1
- data/test/factories/variant_factory.rb +3 -2
- data/test/factories/zone_factory.rb +8 -0
- data/test/fixtures/payment_methods.yml +18 -0
- data/test/functional/admin/adjustments_controller_test.rb +165 -0
- data/test/functional/admin/checkouts_controller_test.rb +86 -0
- data/test/functional/admin/configurations_controller_test.rb +41 -0
- data/test/functional/admin/line_items_controller_test.rb +177 -0
- data/test/functional/admin/payments_controller_test.rb +120 -0
- data/test/functional/admin/product_groups_controller_test.rb +41 -0
- data/test/functional/admin/products_controller_test.rb +166 -0
- data/test/functional/admin/reports_controller_test.rb +28 -0
- data/test/functional/admin/return_authorizations_controller_test.rb +8 -0
- data/test/functional/admin/shipments_controller_test.rb +61 -0
- data/test/functional/checkouts_controller_test.rb +110 -62
- data/test/functional/line_items_controller_test.rb +26 -0
- data/test/functional/products_controller_test.rb +0 -1
- data/test/integration/searching_test.rb +175 -0
- data/test/shoulda_macros/should_redirect.rb +15 -0
- data/test/test_helper.rb +51 -7
- data/test/unit/address_test.rb +22 -2
- data/test/unit/adjustment_test.rb +96 -0
- data/test/unit/charge_test.rb +28 -4
- data/test/unit/checkout_test.rb +99 -3
- data/test/unit/credit_test.rb +2 -3
- data/test/unit/creditcard_payment_test.rb +2 -20
- data/test/unit/creditcard_test.rb +104 -16
- data/test/unit/factories_test.rb +1 -1
- data/test/unit/flat_percent_item_total_test.rb +3 -2
- data/test/unit/helpers/admin/adjustments_helper_test.rb +4 -0
- data/test/unit/helpers/admin/credits_helper_test.rb +4 -0
- data/test/unit/helpers/admin/return_authorizations_helper_test.rb +4 -0
- data/test/unit/inventory_unit_test.rb +4 -6
- data/test/unit/line_item_test.rb +1 -1
- data/test/unit/order_mailer_test.rb +48 -0
- data/test/unit/order_state_test.rb +191 -0
- data/test/unit/order_test.rb +91 -11
- data/test/unit/payment_test.rb +54 -0
- data/test/unit/preference_definition_test.rb +192 -0
- data/test/unit/product_group_test.rb +260 -0
- data/test/unit/product_scope_test.rb +62 -0
- data/test/unit/product_test.rb +20 -11
- data/test/unit/return_authorization_test.rb +104 -0
- data/test/unit/shipment_test.rb +175 -0
- data/test/unit/shipping_method_test.rb +4 -4
- data/test/unit/state_event_test.rb +17 -6
- data/test/unit/tax_rate_test.rb +1 -1
- data/test/unit/variant_test.rb +25 -12
- data/vendor/extensions/api/README.markdown +5 -0
- data/vendor/extensions/api/Rakefile +137 -0
- data/vendor/extensions/api/api_extension.rb +75 -0
- data/vendor/extensions/api/api_hooks.rb +3 -0
- data/vendor/extensions/api/app/controllers/api/base_controller.rb +90 -0
- data/vendor/extensions/api/app/controllers/api/inventory_units_controller.rb +12 -0
- data/vendor/extensions/api/app/controllers/api/line_items_controller.rb +16 -0
- data/vendor/extensions/api/app/controllers/api/orders_controller.rb +17 -0
- data/vendor/extensions/api/app/controllers/api/products_controller.rb +10 -0
- data/vendor/extensions/api/app/controllers/api/shipments_controller.rb +35 -0
- data/vendor/extensions/api/app/helpers/api/shipments_helper.rb +2 -0
- data/vendor/extensions/api/app/views/admin/users/_api_fields.html.erb +16 -0
- data/vendor/extensions/api/config/locales/en-US.yml +16 -0
- data/vendor/extensions/api/config/locales/ru-RU.yml +16 -0
- data/vendor/extensions/api/config/routes.rb +15 -0
- data/vendor/extensions/api/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
- data/vendor/extensions/api/db/seeds.rb +2 -0
- data/vendor/extensions/api/lib/tasks/api_extension_tasks.rake +17 -0
- data/vendor/extensions/api/test/functional/admin/users_controller_test.rb +32 -0
- data/vendor/extensions/api/test/integration/inventory_units_api_test.rb +36 -0
- data/vendor/extensions/api/test/integration/orders_api_test.rb +125 -0
- data/vendor/extensions/api/test/integration/shipments_api_test.rb +117 -0
- data/vendor/extensions/api/test/test_helper.rb +53 -0
- data/vendor/extensions/api/test/unit/user_test.rb +21 -0
- data/vendor/extensions/localization/app/controllers/locale_controller.rb +5 -3
- data/vendor/extensions/localization/localization_extension.rb +1 -1
- data/vendor/extensions/overview_dashboard/README.markdown +3 -0
- data/vendor/extensions/overview_dashboard/Rakefile +137 -0
- data/vendor/extensions/overview_dashboard/app/controllers/admin/overview_controller.rb +142 -0
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +174 -0
- data/vendor/extensions/overview_dashboard/config/routes.rb +5 -0
- data/vendor/extensions/overview_dashboard/db/seeds.rb +2 -0
- data/vendor/extensions/overview_dashboard/lib/tasks/overview_dashboard_extension_tasks.rake +28 -0
- data/vendor/extensions/overview_dashboard/overview_dashboard_extension.rb +9 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/dashboard.js +143 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/excanvas.min.js +1 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/stylesheets/admin/dashboard.css +143 -0
- data/vendor/extensions/overview_dashboard/spec/spec.opts +6 -0
- data/vendor/extensions/overview_dashboard/spec/spec_helper.rb +37 -0
- data/vendor/extensions/payment_gateway/app/models/gateway.rb +47 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net.rb +8 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +104 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/beanstream.rb +164 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/bogus.rb +80 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/linkpoint.rb +8 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/pay_pal.rb +11 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/protx.rb +9 -0
- data/vendor/extensions/payment_gateway/config/locales/en-US.yml +6 -0
- data/vendor/extensions/payment_gateway/config/locales/ru-RU.yml +6 -0
- data/vendor/extensions/payment_gateway/config/routes.rb +2 -4
- data/vendor/extensions/payment_gateway/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
- data/vendor/extensions/payment_gateway/lib/active_merchant/billing/authorize_net_cim.rb +869 -0
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +161 -57
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +22 -4
- data/vendor/extensions/payment_gateway/public/javascripts/gateway.js +13 -0
- data/vendor/extensions/payment_gateway/spec/models/creditcard_spec.rb +1 -10
- data/vendor/extensions/payment_gateway/test/mocks/authorize_net_cim_mock.rb +59 -0
- data/vendor/extensions/payment_gateway/test/test_helper.rb +14 -0
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +85 -0
- data/vendor/extensions/payment_gateway/test/unit/creditcard_with_authorize_net_cim_test.rb +117 -0
- data/vendor/extensions/theme_default/HOOKS.markdown +88 -0
- data/vendor/extensions/theme_default/README.markdown +3 -0
- data/vendor/extensions/theme_default/Rakefile +120 -0
- data/vendor/extensions/theme_default/app/stylesheets/_buttons.less +75 -0
- data/vendor/extensions/theme_default/app/stylesheets/_cart.less +24 -0
- data/vendor/extensions/theme_default/app/stylesheets/_checkout.less +69 -0
- data/vendor/extensions/theme_default/app/stylesheets/_checkout_progress.less +62 -0
- data/vendor/extensions/theme_default/app/stylesheets/_colors.less +16 -0
- data/vendor/extensions/theme_default/app/stylesheets/_forms.less +50 -0
- data/vendor/extensions/theme_default/app/stylesheets/_layout.less +72 -0
- data/vendor/extensions/theme_default/app/stylesheets/_messages.less +32 -0
- data/vendor/extensions/theme_default/app/stylesheets/_mixins.less +71 -0
- data/vendor/extensions/theme_default/app/stylesheets/_navigation.less +130 -0
- data/vendor/extensions/theme_default/app/stylesheets/_prices.less +18 -0
- data/vendor/extensions/theme_default/app/stylesheets/_product_details.less +56 -0
- data/vendor/extensions/theme_default/app/stylesheets/_product_lists.less +66 -0
- data/vendor/extensions/theme_default/app/stylesheets/_registration.less +24 -0
- data/vendor/extensions/theme_default/app/stylesheets/_reset.less +69 -0
- data/vendor/extensions/theme_default/app/stylesheets/_typography.less +158 -0
- data/vendor/extensions/theme_default/app/stylesheets/screen.css +11 -0
- data/vendor/extensions/theme_default/app/stylesheets/screen.less +13 -0
- data/{app → vendor/extensions/theme_default/app}/views/account/login.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/_form.html.erb +21 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/edit.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/index.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/new.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/_form.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/edit.html.erb +21 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/show.html.erb +120 -0
- data/vendor/extensions/theme_default/app/views/admin/configurations/index.html.erb +74 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/configurations/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/coupons/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/new.html.erb +7 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/extensions/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/general_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/general_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/images/_form.html.erb +12 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_settings/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_units/adjust.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/mail_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/mail_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/_form.html.erb +33 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/_option_value.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/available.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/index.html.erb +37 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/selected.html.erb +38 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_form.html.erb +70 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_line_item.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/edit.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/history.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/index.html.erb +96 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/new.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/show.html.erb +45 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +45 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_bill_address_form.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_card_form.html.erb +49 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_form.html.erb +15 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_list.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_transaction_list.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/credit.html.erb +14 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/index.html.erb +27 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/new.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/show.html.erb +10 -0
- data/{app/views/admin/shared/_order_sub_menu.html.erb → vendor/extensions/theme_default/app/views/admin/payments/source_forms/_check.html.erb} +0 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/source_forms/_gateway.html.erb +43 -0
- data/vendor/{plugins/paperclip/test/fixtures/text.txt → extensions/theme_default/app/views/admin/payments/source_views/_check.html.erb} +0 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/source_views/_gateway.html.erb +35 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/_preview.html.erb +34 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/_product_scope.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/edit.html.erb +56 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/index.html.erb +35 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/new.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/show.html.erb +32 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/update.js.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/product_properties/_product_property.html.erb +17 -0
- data/vendor/extensions/theme_default/app/views/admin/product_properties/index.html.erb +59 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/create.js.erb +3 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/destroy.js.erb +2 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/new.html.erb +1 -0
- data/vendor/extensions/theme_default/app/views/admin/products/_form.html.erb +104 -0
- data/vendor/extensions/theme_default/app/views/admin/products/_option_types.html.erb +40 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/_properties_form.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/products/index.html.erb +85 -0
- data/vendor/extensions/theme_default/app/views/admin/products/new.html.erb +53 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/_form.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/filtered.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/properties/index.html.erb +43 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/prototypes/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/available.html.erb +22 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/prototypes/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/select.rjs +7 -0
- data/vendor/extensions/theme_default/app/views/admin/reports/index.html.erb +19 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/reports/sales_total.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/_form.html.erb +64 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/edit.html.erb +27 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb +43 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/new.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_additional_field.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_address.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb +67 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_calculator_fields.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +22 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_edit_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_new_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_order_details.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_sub_menu.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_tabs.html.erb +52 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_sub_menu.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +44 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_report_criteria.html.erb +15 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_show_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_tabs.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/_form.html.erb +76 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/edit.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb +44 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/new.html.erb +18 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shipping_categories/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/index.html.erb +29 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/new.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/edit.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/index.html.erb +46 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/new.html.erb +17 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shipping_rates/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/index.html.erb +32 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/new.html.erb +8 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/states/_form.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/states/_state_list.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/states/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/states/index.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/states/new.html.erb +10 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_categories/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/index.html.erb +37 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/new.html.erb +10 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_categories/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_rates/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/index.html.erb +34 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/new.html.erb +8 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_form.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_js_head.html.erb +11 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_list.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_manage_products.rhtml +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_success.rhtml +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_taxon.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/edit.html.erb +49 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/get_children.json.erb +9 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/_form.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/_taxon_table.html.erb +28 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/edit.html.erb +11 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxons/remove.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxons/select.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/selected.html.erb +42 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/_form.html.erb +26 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/edit.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/index.html.erb +41 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/new.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/admin/users/_form.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/users/edit.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/users/index.html.erb +62 -0
- data/vendor/extensions/theme_default/app/views/admin/users/new.html.erb +16 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/users/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/_form.html.erb +38 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/edit.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/index.html.erb +54 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_country_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_form.html.erb +29 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/zones/_member_type.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_state_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_zone_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/new.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_address.html.erb +163 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_confirm.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_delivery.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_guest_checkout.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_payment.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/checkouts/edit.html.erb +20 -0
- data/vendor/extensions/theme_default/app/views/checkouts/payment/_check.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/checkouts/payment/_gateway.html.erb +31 -0
- data/vendor/extensions/theme_default/app/views/checkouts/register.html.erb +13 -0
- data/{app → vendor/extensions/theme_default/app}/views/content/cvv.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/countries/index.js.erb +0 -0
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +77 -0
- data/vendor/extensions/theme_default/app/views/layouts/spree_application.html.erb +48 -0
- data/{app → vendor/extensions/theme_default/app}/views/order_mailer/cancel.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/order_mailer/confirm.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/orders/_form.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/orders/_line_item.html.erb +43 -0
- data/vendor/extensions/theme_default/app/views/orders/edit.html.erb +29 -0
- data/{app → vendor/extensions/theme_default/app}/views/orders/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/orders/show.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/password_resets/edit.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/password_resets/new.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/products/_cart_form.html.erb +54 -0
- data/{app → vendor/extensions/theme_default/app}/views/products/_image.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/products/_properties.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/products/_taxons.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/products/_thumbnails.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/products/index.html.erb +31 -0
- data/vendor/extensions/theme_default/app/views/products/show.html.erb +29 -0
- data/vendor/extensions/theme_default/app/views/shared/_additional_field.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/shared/_admin_head.html.erb +21 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_edit_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_filters.html.erb +52 -0
- data/vendor/extensions/theme_default/app/views/shared/_footer.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/shared/_google_analytics.html.erb +39 -0
- data/vendor/extensions/theme_default/app/views/shared/_head.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/shared/_login.html.erb +37 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_login_bar.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_nav_bar.html.erb +5 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_new_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_order_details.html.erb +60 -0
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/shared/_search.html.erb +9 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_show_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_store_menu.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_taxonomies.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/shared/_test_hook.html.erb +1 -0
- data/vendor/extensions/theme_default/app/views/shared/_user_form.html.erb +32 -0
- data/{app → vendor/extensions/theme_default/app}/views/states/index.js.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/taxons/_taxon.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/taxons/show.html.erb +17 -0
- data/{app → vendor/extensions/theme_default/app}/views/user_mailer/password_reset_instructions.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/user_sessions/authorization_failure.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/user_sessions/new.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/users/_openid_identifier.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/users/edit.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/users/new.html.erb +22 -0
- data/vendor/extensions/theme_default/app/views/users/show.html.erb +46 -0
- data/vendor/extensions/theme_default/lib/tasks/theme_default_extension_tasks.rake +28 -0
- data/vendor/extensions/theme_default/public/images/add-to-cart.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/active-tab.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/admin_tab_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back-blue.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/flash-error.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/flash-notice.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/green-stripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/green-stripes.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/grid_header_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/grid_header_back_green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header-bg.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header_bg.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/menu-current.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/red-stripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/red-stripes.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/spree_50.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/subnav-divider.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/subnav.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/tab-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/10.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/7.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/8.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/9.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/10.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/11.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/7.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/8.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/9.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/accept.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/add.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/add.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/arrow-down.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/cross.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/delete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/delete.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/drag.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/edit.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/edit.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/email.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/error.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/exclamation.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/feed.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/pdf.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/reorder.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/search.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/send-email.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/stop.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/tick.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/up.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/xls.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/off-left.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/off-right.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/on-left.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/on-right.png +0 -0
- data/vendor/extensions/theme_default/public/images/ajax_loader.gif +0 -0
- data/vendor/extensions/theme_default/public/images/amex_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button-pressed.png +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button.gif +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button.png +0 -0
- data/vendor/extensions/theme_default/public/images/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/body-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/bottom_shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/breadcrumb.gif +0 -0
- data/vendor/extensions/theme_default/public/images/button-dark-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/button-dark.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button-pressed.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button.gif +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/button-dark-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/button-dark.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/top-shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/calendar_date_select/calendar.gif +0 -0
- data/vendor/extensions/theme_default/public/images/cart-empty.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-empty_x32.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-full.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-full_x32.png +0 -0
- data/vendor/extensions/theme_default/public/images/checkout.png +0 -0
- data/vendor/extensions/theme_default/public/images/creditcard.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/backstripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bg_header.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bullet1.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bullet2.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/cal.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/vendor/extensions/theme_default/public/images/discover_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ad.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ae.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/af.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ag.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ai.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/al.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/am.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/an.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ao.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ar.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/as.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/at.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/au.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/aw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ax.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/az.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ba.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/be.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/br.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/by.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ca.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/catalonia.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ch.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ci.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ck.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/co.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cx.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/da.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/de.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/de_CH.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/do.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ec.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ee.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/eg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/eh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/england.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/er.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/es.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/et.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/europeanunion.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fam.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ga.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ge.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ht.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/id.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ie.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/il.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/in.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/io.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/iq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ir.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/is.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/it.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ke.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ki.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/km.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ky.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/la.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/li.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ls.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ly.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ma.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/md.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/me.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ml.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ms.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mx.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/my.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/na.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ne.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ng.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ni.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/no.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/np.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/om.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pe.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ph.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ps.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/py.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/qa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/re.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ro.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/rs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ru.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/rw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/scotland.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/se.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/si.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/so.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/st.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/td.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/th.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/to.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ua.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ug.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/um.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/us.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/uy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/uz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/va.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ve.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/wales.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/wf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ws.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ye.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/yt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/za.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/zm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/zw.png +0 -0
- data/vendor/extensions/theme_default/public/images/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/grid.png +0 -0
- data/vendor/extensions/theme_default/public/images/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/master_cid.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/menu-current.png +0 -0
- data/vendor/extensions/theme_default/public/images/menu-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/mini.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/product.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/small.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/openid-inputicon.gif +0 -0
- data/vendor/extensions/theme_default/public/images/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/progress.gif +0 -0
- data/vendor/extensions/theme_default/public/images/rails.png +0 -0
- data/vendor/extensions/theme_default/public/images/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/separator.png +0 -0
- data/vendor/extensions/theme_default/public/images/shadow-top.png +0 -0
- data/vendor/extensions/theme_default/public/images/shadow_top.png +0 -0
- data/vendor/extensions/theme_default/public/images/spinner.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/spree/progress.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree/spinner.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree/spree.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-completed.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-current.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-first.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-first.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-incomplete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-right.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/incomplete-right.gif +0 -0
- data/vendor/extensions/theme_default/public/images/steps/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/1_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/2_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/3_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/4_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/5_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/6_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/sxsw-ribbon-v1.png +0 -0
- data/vendor/extensions/theme_default/public/images/tab_bottom.gif +0 -0
- data/vendor/extensions/theme_default/public/images/top-shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/bullet.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/minus.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/plus.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/vendor/extensions/theme_default/public/images/update.png +0 -0
- data/vendor/extensions/theme_default/public/images/visa_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/wrapper-back-2.png +0 -0
- data/vendor/extensions/theme_default/public/images/wrapper-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menubaritem_submenuindicator.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_checkbox.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_submenuindicator.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-sprite.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/additional-methods.js +236 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/address_states.js +25 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/checkouts/edit.js +79 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/orders/edit.js +96 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/orders/edit_form.js +17 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/payments/new.js +9 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/unobtrusive_handlers.js +15 -0
- data/vendor/extensions/theme_default/public/javascripts/calculator.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/checkout.js +65 -0
- data/vendor/extensions/theme_default/public/javascripts/datepicker.js +1445 -0
- data/vendor/extensions/theme_default/public/javascripts/gateway.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-1.3.2.min.js +19 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-and-plugins.js +36 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-ui.js +188 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/help.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/important.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/info.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/title.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.autocomplete.min.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.js +19 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.suggest.js +276 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.template.js +255 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.validate.min.js +16 -0
- data/vendor/extensions/theme_default/public/javascripts/jrails.autocomplete.js +274 -0
- data/vendor/extensions/theme_default/public/javascripts/jrails.js +1 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/jquery.tree.js +2058 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +129 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/{public/javascripts/jsTree/source/themes/spree/dot.gif → vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/dot_for_ie.gif} +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/style.css +34 -0
- data/{public/javascripts/jsTree/source/themes/spree → vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple}/throbber.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/af.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ar.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/de.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/du.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/en.js +42 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/es.js +41 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/fi.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/fr.js +44 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/gr.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/he.js +49 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/it.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/nl.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/no.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/pt.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ro.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ru.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/sp.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/sv.js +41 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ua.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_cn.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_cs.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_da.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_de.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_es.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_fr.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_hu.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_it.js +26 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_kk.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_nl.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_no.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_pl.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ptbr.js +30 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ro.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ru.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_se.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_sk.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_tr.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_tw.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ua.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/nested-attribute.js +25 -0
- data/vendor/extensions/theme_default/public/javascripts/open_id.js +15 -0
- data/vendor/extensions/theme_default/public/javascripts/product.js +49 -0
- data/vendor/extensions/theme_default/public/javascripts/spree.js +53 -0
- data/vendor/extensions/theme_default/public/javascripts/taxonomy.js +196 -0
- data/vendor/extensions/theme_default/public/javascripts/zone.js +40 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-forms.css +159 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-reset.css +67 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-tables.css +31 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-typography.css +117 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +556 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/edit_checkouts.css +57 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/edit_orders.css +65 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/grids.css +314 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/yui-includes.css +14 -0
- data/vendor/extensions/theme_default/public/stylesheets/datepicker.css +263 -0
- data/vendor/extensions/theme_default/public/stylesheets/jquery.autocomplete.css +48 -0
- data/vendor/extensions/theme_default/public/stylesheets/scaffold.css +54 -0
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +1181 -0
- data/vendor/extensions/theme_default/spec/spec.opts +6 -0
- data/vendor/extensions/theme_default/spec/spec_helper.rb +37 -0
- data/vendor/extensions/theme_default/theme_default_extension.rb +39 -0
- data/vendor/extensions/theme_default/theme_default_hooks.rb +2 -0
- data/vendor/plugins/attribute_fu/init.rb +10 -2
- data/vendor/plugins/attribute_fu/javascripts/jquery.template.js +255 -0
- data/vendor/plugins/attribute_fu/lib/attribute_fu/associated_form_helper.rb +12 -19
- data/vendor/plugins/attribute_fu/test/associated_form_helper_test.rb +48 -50
- data/vendor/plugins/awesome_nested_set/MIT-LICENSE +20 -0
- data/vendor/plugins/awesome_nested_set/README.rdoc +79 -0
- data/vendor/plugins/awesome_nested_set/Rakefile +54 -0
- data/vendor/plugins/awesome_nested_set/VERSION +1 -0
- data/vendor/plugins/awesome_nested_set/awesome_nested_set.gemspec +68 -0
- data/vendor/plugins/awesome_nested_set/init.rb +1 -0
- data/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb +592 -0
- data/vendor/plugins/awesome_nested_set/lib/awesome_nested_set/helper.rb +40 -0
- data/vendor/plugins/awesome_nested_set/rails/init.rb +12 -0
- data/vendor/plugins/awesome_nested_set/test/application.rb +1 -0
- data/vendor/plugins/awesome_nested_set/test/awesome_nested_set/helper_test.rb +41 -0
- data/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb +758 -0
- data/vendor/plugins/awesome_nested_set/test/db/database.yml +18 -0
- data/vendor/plugins/awesome_nested_set/test/db/schema.rb +30 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/categories.yml +34 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/category.rb +15 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/departments.yml +3 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/notes.yml +38 -0
- data/vendor/plugins/awesome_nested_set/test/test_helper.rb +29 -0
- data/vendor/plugins/has_calculator/lib/has_calculator.rb +2 -2
- data/vendor/plugins/jrails/CHANGELOG +43 -0
- data/vendor/plugins/jrails/LICENSE +18 -0
- data/vendor/plugins/jrails/README.rdoc +21 -0
- data/vendor/plugins/jrails/Rakefile +18 -0
- data/vendor/plugins/jrails/VERSION.yml +4 -0
- data/vendor/plugins/jrails/bin/jrails +30 -0
- data/vendor/plugins/jrails/init.rb +1 -0
- data/vendor/plugins/jrails/install.rb +9 -0
- data/vendor/plugins/jrails/javascripts/jquery-ui.js +188 -0
- data/vendor/plugins/jrails/javascripts/jquery.js +19 -0
- data/vendor/plugins/jrails/javascripts/jrails.js +1 -0
- data/vendor/plugins/jrails/javascripts/sources/jrails.js +197 -0
- data/vendor/plugins/jrails/jrails.gemspec +50 -0
- data/vendor/plugins/jrails/lib/jrails.rb +421 -0
- data/vendor/plugins/jrails/rails/init.rb +15 -0
- data/vendor/plugins/jrails/tasks/jrails.rake +25 -0
- data/vendor/plugins/{acts_as_adjacency_list → jrails_auto_complete}/MIT-LICENSE +0 -0
- data/vendor/plugins/jrails_auto_complete/README +23 -0
- data/vendor/plugins/jrails_auto_complete/Rakefile +22 -0
- data/vendor/plugins/jrails_auto_complete/init.rb +2 -0
- data/vendor/plugins/jrails_auto_complete/install.rb +8 -0
- data/vendor/plugins/jrails_auto_complete/javascripts/jquery.suggest.js +276 -0
- data/vendor/plugins/jrails_auto_complete/javascripts/jrails.autocomplete.js +274 -0
- data/vendor/plugins/jrails_auto_complete/lib/form_helpers.rb +22 -0
- data/vendor/plugins/jrails_auto_complete/lib/jrails_auto_complete.rb +20 -0
- data/vendor/plugins/jrails_auto_complete/lib/jrails_auto_complete_macro_helper.rb +103 -0
- data/vendor/plugins/jrails_auto_complete/tasks/jrails_auto_complete_tasks.rake +4 -0
- data/vendor/plugins/jrails_auto_complete/test/jrails_auto_complete_test.rb +8 -0
- data/vendor/plugins/jrails_auto_complete/uninstall.rb +7 -0
- data/vendor/plugins/open_id_authentication/CHANGELOG +35 -0
- data/vendor/plugins/open_id_authentication/README +231 -0
- data/vendor/plugins/open_id_authentication/Rakefile +22 -0
- data/vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb +11 -0
- data/vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/templates/migration.rb +20 -0
- data/vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb +26 -0
- data/vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb +11 -0
- data/vendor/plugins/open_id_authentication/init.rb +18 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb +240 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb +9 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb +55 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb +5 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/request.rb +23 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb +20 -0
- data/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake +30 -0
- data/vendor/plugins/open_id_authentication/test/normalize_test.rb +32 -0
- data/vendor/plugins/open_id_authentication/test/open_id_authentication_test.rb +46 -0
- data/vendor/plugins/open_id_authentication/test/status_test.rb +14 -0
- data/vendor/plugins/open_id_authentication/test/test_helper.rb +17 -0
- data/vendor/plugins/resource_controller/lib/resource_controller/actions.rb +4 -4
- data/vendor/plugins/resource_controller/lib/resource_controller/controller.rb +17 -17
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/current_objects.rb +1 -1
- data/vendor/plugins/stump/License.txt +20 -0
- data/vendor/plugins/stump/README.rdoc +118 -0
- data/vendor/plugins/stump/init.rb +6 -0
- data/vendor/plugins/stump/lib/stump.rb +11 -0
- data/vendor/plugins/stump/lib/stump/core_ext/test_case.rb +21 -0
- data/vendor/plugins/stump/lib/stump/metaid.rb +17 -0
- data/vendor/plugins/stump/lib/stump/mock.rb +51 -0
- data/vendor/plugins/stump/lib/stump/mocks.rb +23 -0
- data/vendor/plugins/stump/lib/stump/proxy.rb +103 -0
- data/vendor/plugins/stump/lib/stump/stub.rb +34 -0
- data/vendor/plugins/stump/lib/stump/version.rb +9 -0
- data/vendor/plugins/unobtrusive_date_picker/MIT-LICENSE +19 -0
- data/vendor/plugins/unobtrusive_date_picker/README.rdoc +165 -0
- data/vendor/plugins/unobtrusive_date_picker/Rakefile +18 -0
- data/vendor/plugins/unobtrusive_date_picker/about.yml +7 -0
- data/vendor/plugins/unobtrusive_date_picker/init.rb +8 -0
- data/vendor/plugins/unobtrusive_date_picker/install.rb +14 -0
- data/vendor/plugins/unobtrusive_date_picker/lib/12_hour_time.rb +102 -0
- data/vendor/plugins/unobtrusive_date_picker/lib/unobtrusive_date_picker.rb +409 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/backstripes.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bg_header.jpg +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bullet1.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bullet2.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/cal.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/gradient-e5e5e5-ffffff.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/datepicker.js +1445 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/af.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ar.js +50 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/de.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/du.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/en.js +42 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/es.js +41 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/fi.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/fr.js +44 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/gr.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/he.js +49 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/it.js +13 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/nl.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/no.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/pt.js +50 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ro.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ru.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/sp.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/sv.js +41 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ua.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/stylesheets/datepicker.css +263 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/date_picker_tag_spec.rb +122 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/date_picker_text_field_spec.rb +54 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/datepicker_html_class_options_spec.rb +281 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/spec.opts +12 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/spec_helper.rb +52 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/tag_matcher.rb +142 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/unobtrusive_date_picker_spec.rb +129 -0
- data/vendor/plugins/unobtrusive_date_picker/tasks/datepicker_tasks.rake +17 -0
- data/vendor/plugins/unobtrusive_date_picker/uninstall.rb +12 -0
- metadata +1441 -633
- data/app/controllers/admin/creditcard_payments_controller.rb +0 -49
- data/app/controllers/application.rb +0 -94
- data/app/helpers/admin/calculators_helper.rb +0 -2
- data/app/helpers/admin/configurations_helper.rb +0 -2
- data/app/helpers/admin/extensions_helper.rb +0 -2
- data/app/helpers/admin/mail_settings_helper.rb +0 -2
- data/app/helpers/admin/option_values_helper.rb +0 -2
- data/app/helpers/admin/shipping_categories_helper.rb +0 -2
- data/app/helpers/admin/shipping_methods_helper.rb +0 -2
- data/app/helpers/admin/tax_rates_helper.rb +0 -2
- data/app/helpers/admin/taxonomies_helper.rb +0 -3
- data/app/helpers/admin/variants_helper.rb +0 -2
- data/app/models/creditcard_payment.rb +0 -26
- data/app/models/order_observer.rb +0 -15
- data/app/views/admin/configurations/index.html.erb +0 -62
- data/app/views/admin/coupons/edit.html.erb +0 -8
- data/app/views/admin/coupons/index.html.erb +0 -38
- data/app/views/admin/coupons/new.html.erb +0 -9
- data/app/views/admin/creditcard_payments/edit.html.erb +0 -38
- data/app/views/admin/creditcard_payments/new.html.erb +0 -15
- data/app/views/admin/images/_form.html.erb +0 -12
- data/app/views/admin/option_types/_form.html.erb +0 -33
- data/app/views/admin/option_types/index.html.erb +0 -39
- data/app/views/admin/option_types/selected.html.erb +0 -38
- data/app/views/admin/orders/index.html.erb +0 -80
- data/app/views/admin/orders/show.html.erb +0 -70
- data/app/views/admin/overview/index.html.erb +0 -3
- data/app/views/admin/payments/index.html.erb +0 -30
- data/app/views/admin/product_properties/_product_property.html.erb +0 -25
- data/app/views/admin/product_properties/index.html.erb +0 -44
- data/app/views/admin/products/_form.html.erb +0 -92
- data/app/views/admin/products/_option_types.html.erb +0 -42
- data/app/views/admin/products/index.html.erb +0 -74
- data/app/views/admin/products/new.html.erb +0 -53
- data/app/views/admin/properties/index.html.erb +0 -45
- data/app/views/admin/prototypes/available.html.erb +0 -27
- data/app/views/admin/prototypes/index.html.erb +0 -42
- data/app/views/admin/prototypes/new.html.erb +0 -11
- data/app/views/admin/prototypes/select.rjs +0 -7
- data/app/views/admin/reports/index.html.erb +0 -23
- data/app/views/admin/shared/_additional_field.html.erb +0 -5
- data/app/views/admin/shared/_address.html.erb +0 -15
- data/app/views/admin/shared/_calculator_fields.html.erb +0 -15
- data/app/views/admin/shared/_configuration_menu.html.erb +0 -18
- data/app/views/admin/shared/_form_address.html.erb +0 -56
- data/app/views/admin/shared/_order_tabs.html.erb +0 -27
- data/app/views/admin/shared/_product_sub_menu.html.erb +0 -8
- data/app/views/admin/shared/_product_tabs.html.erb +0 -48
- data/app/views/admin/shared/_report_criteria.html.erb +0 -19
- data/app/views/admin/shipments/_details.html.erb +0 -19
- data/app/views/admin/shipments/_form.html.erb +0 -31
- data/app/views/admin/shipments/edit.html.erb +0 -12
- data/app/views/admin/shipments/index.html.erb +0 -22
- data/app/views/admin/shipments/new.html.erb +0 -14
- data/app/views/admin/shipping_categories/edit.html.erb +0 -8
- data/app/views/admin/shipping_categories/index.html.erb +0 -27
- data/app/views/admin/shipping_categories/new.html.erb +0 -10
- data/app/views/admin/shipping_methods/_form.html.erb +0 -12
- data/app/views/admin/shipping_methods/edit.html.erb +0 -8
- data/app/views/admin/shipping_methods/index.html.erb +0 -34
- data/app/views/admin/shipping_methods/new.html.erb +0 -10
- data/app/views/admin/shipping_rates/edit.html.erb +0 -8
- data/app/views/admin/shipping_rates/index.html.erb +0 -30
- data/app/views/admin/shipping_rates/new.html.erb +0 -10
- data/app/views/admin/states/edit.html.erb +0 -12
- data/app/views/admin/states/index.html.erb +0 -25
- data/app/views/admin/states/new.html.erb +0 -12
- data/app/views/admin/tax_categories/edit.html.erb +0 -12
- data/app/views/admin/tax_categories/index.html.erb +0 -37
- data/app/views/admin/tax_categories/new.html.erb +0 -12
- data/app/views/admin/tax_rates/edit.html.erb +0 -8
- data/app/views/admin/tax_rates/index.html.erb +0 -32
- data/app/views/admin/tax_rates/new.html.erb +0 -10
- data/app/views/admin/taxonomies/_form.html.erb +0 -5
- data/app/views/admin/taxonomies/_js_head.html.erb +0 -13
- data/app/views/admin/taxonomies/edit.html.erb +0 -30
- data/app/views/admin/taxons/_taxon_table.html.erb +0 -28
- data/app/views/admin/taxons/available.js.erb +0 -36
- data/app/views/admin/taxons/selected.html.erb +0 -25
- data/app/views/admin/users/_form.html.erb +0 -35
- data/app/views/admin/users/edit.html.erb +0 -9
- data/app/views/admin/users/index.html.erb +0 -48
- data/app/views/admin/users/new.html.erb +0 -11
- data/app/views/admin/variants/_form.html.erb +0 -40
- data/app/views/admin/variants/edit.html.erb +0 -10
- data/app/views/admin/variants/index.html.erb +0 -56
- data/app/views/admin/variants/new.html.erb +0 -8
- data/app/views/admin/zones/_country_member.html.erb +0 -5
- data/app/views/admin/zones/_form.html.erb +0 -29
- data/app/views/admin/zones/_state_member.html.erb +0 -5
- data/app/views/admin/zones/_zone_member.html.erb +0 -5
- data/app/views/admin/zones/edit.html.erb +0 -12
- data/app/views/admin/zones/index.html.erb +0 -40
- data/app/views/admin/zones/new.html.erb +0 -12
- data/app/views/checkouts/_billing.html.erb +0 -66
- data/app/views/checkouts/_confirmation.html.erb +0 -11
- data/app/views/checkouts/_form.html.erb +0 -20
- data/app/views/checkouts/_payment.html.erb +0 -45
- data/app/views/checkouts/_registration.html.erb +0 -60
- data/app/views/checkouts/_shipping.html.erb +0 -68
- data/app/views/checkouts/_shipping_method.html.erb +0 -19
- data/app/views/checkouts/_summary.html.erb +0 -36
- data/app/views/checkouts/edit.html.erb +0 -13
- data/app/views/checkouts/new.html.erb +0 -13
- data/app/views/layouts/admin.html.erb +0 -91
- data/app/views/layouts/application.html.erb +0 -47
- data/app/views/layouts/checkouts.html.erb +0 -17
- data/app/views/line_items/index.html.erb +0 -1
- data/app/views/orders/_form.html.erb +0 -19
- data/app/views/orders/_google_order.html.erb +0 -24
- data/app/views/orders/_line_item.html.erb +0 -23
- data/app/views/orders/edit.html.erb +0 -22
- data/app/views/orders/show.html.erb +0 -19
- data/app/views/password_resets/edit.html.erb +0 -12
- data/app/views/password_resets/new.html.erb +0 -11
- data/app/views/products/_cart_form.html.erb +0 -77
- data/app/views/products/_products.html.erb +0 -14
- data/app/views/products/_properties.html.erb +0 -8
- data/app/views/products/_thumbnails.html.erb +0 -58
- data/app/views/products/index.html.erb +0 -11
- data/app/views/products/show.html.erb +0 -24
- data/app/views/shared/_additional_field.html.erb +0 -7
- data/app/views/shared/_filters.html.erb +0 -52
- data/app/views/shared/_footer.html.erb +0 -21
- data/app/views/shared/_head.html.erb +0 -6
- data/app/views/shared/_login.html.erb +0 -18
- data/app/views/shared/_order_details.html.erb +0 -46
- data/app/views/shared/_order_tabs.html.erb +0 -32
- data/app/views/shared/_product_sub_menu.html.erb +0 -10
- data/app/views/shared/_product_tabs.html.erb +0 -39
- data/app/views/shared/_products.html.erb +0 -22
- data/app/views/shared/_report_criteria.html.erb +0 -33
- data/app/views/shared/_taxonomies.html.erb +0 -10
- data/app/views/taxons/show.html.erb +0 -12
- data/app/views/user_sessions/new.html.erb +0 -6
- data/app/views/users/_form.html.erb +0 -16
- data/app/views/users/edit.html.erb +0 -9
- data/app/views/users/new.html.erb +0 -12
- data/app/views/users/show.html.erb +0 -39
- data/config/environments/demo.rb +0 -22
- data/config/initializers/compass.rb +0 -8
- data/db/migrate/001_create_addresses.rb +0 -20
- data/db/migrate/002_create_cart_items.rb +0 -13
- data/db/migrate/003_create_carts.rb +0 -12
- data/db/migrate/004_create_categories.rb +0 -15
- data/db/migrate/005_create_categories_products.rb +0 -12
- data/db/migrate/006_create_line_items.rb +0 -15
- data/db/migrate/007_create_option_values.rb +0 -15
- data/db/migrate/008_create_orders.rb +0 -23
- data/db/migrate/009_create_products.rb +0 -16
- data/db/migrate/010_create_txns.rb +0 -18
- data/db/migrate/011_create_variants.rb +0 -13
- data/db/migrate/012_create_tax_treatments.rb +0 -24
- data/db/migrate/013_create_countries.rb +0 -11
- data/db/migrate/014_create_states.rb +0 -13
- data/db/migrate/015_create_option_types.rb +0 -13
- data/db/migrate/016_create_product_option_types.rb +0 -14
- data/db/migrate/017_create_option_values_variants.rb +0 -12
- data/db/migrate/018_create_images.rb +0 -20
- data/db/migrate/019_create_credit_cards.rb +0 -20
- data/db/migrate/020_create_order_operations.rb +0 -14
- data/db/migrate/021_create_inventory_units.rb +0 -15
- data/db/migrate/022_create_users.rb +0 -17
- data/db/migrate/023_create_roles.rb +0 -20
- data/db/migrate/024_create_extension_meta.rb +0 -13
- data/db/migrate/025_drop_tax_treatments.rb +0 -11
- data/db/migrate/026_add_user_to_address.rb +0 -9
- data/db/migrate/20080620100001_create_tax_rates.rb +0 -13
- data/db/migrate/20080620113300_create_taxonomies.rb +0 -13
- data/db/migrate/20080620113400_create_taxons.rb +0 -16
- data/db/migrate/20080622173128_drop_extension_meta.rb +0 -13
- data/db/migrate/20080622194800_create_prototypes.rb +0 -13
- data/db/migrate/20080622194830_create_properties.rb +0 -13
- data/db/migrate/20080622195000_create_properties_prototypes.rb +0 -12
- data/db/migrate/20080622195100_create_property_values.rb +0 -14
- data/db/migrate/20080630003326_create_zones.rb +0 -13
- data/db/migrate/20080630150630_create_preferences.rb +0 -19
- data/db/migrate/20080630152702_add_iso_country_information.rb +0 -19
- data/db/migrate/20080630154400_create_countries_zones.rb +0 -12
- data/db/migrate/20080630215310_create_zone_members.rb +0 -13
- data/db/migrate/20080703184654_update_country_rename_name.rb +0 -15
- data/db/migrate/20080704181428_create_app_configurations.rb +0 -12
- data/db/migrate/20080704190355_add_permalink_and_published_to_products.rb +0 -15
- data/db/migrate/20080704192456_update_tax_rates_add_zones_etc.rb +0 -17
- data/db/migrate/20080707002329_create_tax_categories.rb +0 -21
- data/db/migrate/20080708170103_remove_login.rb +0 -9
- data/db/migrate/20080715014028_add_optimistic_locking_to_cart.rb +0 -13
- data/db/migrate/20080716155613_products_taxons.rb +0 -12
- data/db/migrate/20080720190623_rename_txn_table.rb +0 -9
- data/db/migrate/20080729213052_drop_categories.rb +0 -8
- data/db/migrate/20080803010846_remove_prototype_presentation.rb +0 -13
- data/db/migrate/20080807214829_create_product_property.rb +0 -15
- data/db/migrate/20080815173251_remove_cart.rb +0 -10
- data/db/migrate/20080830173354_add_checkout_state_to_order.rb +0 -13
- data/db/migrate/20080901002711_address_refactor.rb +0 -14
- data/db/migrate/20080902001408_create_creditcard_payments.rb +0 -17
- data/db/migrate/20080904150723_refactor_order_state.rb +0 -33
- data/db/migrate/20080904234457_create_state_events.rb +0 -15
- data/db/migrate/20080905012833_add_inventory_state.rb +0 -13
- data/db/migrate/20080906174748_change_inventory_state_type.rb +0 -8
- data/db/migrate/20080909100504_add_state_name_to_address.rb +0 -9
- data/db/migrate/20080915211650_remove_user_address.rb +0 -10
- data/db/migrate/20080918083321_remove_presentation_from_taxonomy.rb +0 -11
- data/db/migrate/20080918140438_rename_app_configuration.rb +0 -16
- data/db/migrate/20081003211336_create_shipping_methods.rb +0 -14
- data/db/migrate/20081003233427_create_shipping_categories.rb +0 -15
- data/db/migrate/20081015001711_create_shipments.rb +0 -14
- data/db/migrate/20081016002224_remove_defunct_order_fields.rb +0 -10
- data/db/migrate/20081016162924_drop_category_id_from_products.rb +0 -9
- data/db/migrate/20081018125019_refactor_images_for_paperclip.rb +0 -40
- data/db/migrate/20081023134446_add_product_dimensions.rb +0 -19
- data/db/migrate/20081120184215_add_permalink_to_taxons.rb +0 -24
- data/db/migrate/20081121192045_additional_paperclip_refactor.rb +0 -37
- data/db/migrate/20081205155619_add_shipped_at_property.rb +0 -17
- data/db/migrate/20081208143817_create_creditcards.rb +0 -20
- data/db/migrate/20081208150007_create_payments_table.rb +0 -42
- data/db/migrate/20081209103127_add_deleted_at_to_products.rb +0 -11
- data/db/migrate/20081212015915_convert_credticard_number_to_text.rb +0 -11
- data/db/migrate/20081219091142_create_indexes.rb +0 -23
- data/db/migrate/20081221201510_create_shipping_addresses.rb +0 -16
- data/db/migrate/20090105152846_add_previous_state_to_events.rb +0 -13
- data/db/migrate/20090204200045_add_order_permalink.rb +0 -13
- data/db/migrate/20090225231119_add_more_needed_keys_items_and_conf.rb +0 -19
- data/db/migrate/20090302221152_give_all_users_user_role.rb +0 -14
- data/db/migrate/20090320113300_authlogic_changes.rb +0 -24
- data/db/migrate/20090324164010_create_option_types_prototypes.rb +0 -12
- data/db/migrate/20090401120636_meta_data_fields_for_products.rb +0 -11
- data/db/migrate/20090401203712_remove_hmp_stuff_in_zones.rb +0 -12
- data/db/migrate/20090401223217_create_eu_vat_zone_again.rb +0 -24
- data/db/migrate/20090402002244_add_user_login.rb +0 -17
- data/db/migrate/20090402161055_add_order_token.rb +0 -13
- data/db/migrate/20090402200317_add_email_to_order.rb +0 -19
- data/db/migrate/20090404192723_add_maestro_fields.rb +0 -12
- data/db/migrate/20090406091357_add_alternative_phone.rb +0 -9
- data/db/migrate/20090406174645_refactor_addresses.rb +0 -53
- data/db/migrate/20090420021303_remove_viewable_id_from_products.rb +0 -10
- data/db/migrate/20090427000000_upgrade_taxons.rb +0 -14
- data/db/migrate/20090525000325_remove_address_orphans.rb +0 -15
- data/db/migrate/20090603153927_create_checkouts.rb +0 -71
- data/db/migrate/20090617181106_change_txn_type_to_int.rb +0 -18
- data/db/migrate/20090618203233_create_charges.rb +0 -61
- data/db/migrate/20090626235303_create_credits.rb +0 -22
- data/db/migrate/20090705101511_add_image_dimensions.rb +0 -12
- data/db/migrate/20090708175306_create_coupons.rb +0 -16
- data/db/migrate/20090708175317_create_discounts.rb +0 -14
- data/db/migrate/20090714094201_add_default_addresses_to_user.rb +0 -11
- data/db/migrate/20090715172345_create_calculators.rb +0 -22
- data/db/migrate/20090731085008_add_charge_source_to_charge.rb +0 -11
- data/db/migrate/20090803072025_create_shipping_rates.rb +0 -12
- data/db/migrate/20090804090559_create_calculators_for_tax_rates.rb +0 -16
- data/db/migrate/20090805131937_drop_credits_and_discounts.rb +0 -9
- data/db/migrate/20090805185015_remove_tax_type.rb +0 -13
- data/db/migrate/20090806063212_rename_charges_to_adjustments.rb +0 -24
- data/db/migrate/20090806160214_rename_base_to_source.rb +0 -11
- data/db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb +0 -15
- data/db/migrate/20090809193131_add_is_master_to_variants.rb +0 -43
- data/db/migrate/20090809201209_drop_master_price_from_products.rb +0 -13
- data/db/migrate/20090809231957_update_legacy_calculators.rb +0 -9
- data/db/migrate/20090823005402_coupon_starts_at.rb +0 -13
- data/db/migrate/20090828114732_add_queued_mail.rb +0 -12
- data/db/migrate/20090908141056_adjust_percent_calc_settings.rb +0 -9
- data/db/migrate/migrate/20080620100001_create_tax_rates.rb +0 -13
- data/db/migrate/migrate/20080704192456_update_tax_rates_add_zones_etc.rb +0 -17
- data/db/sample/creditcard_txns.yml +0 -7
- data/db/sample/creditcards.yml +0 -10
- data/db/sample/inventory_units.yml +0 -93
- data/db/sample/payments.yml +0 -7
- data/lib/product_scopes.rb +0 -76
- data/lib/spree/setup.rb +0 -148
- data/public/javascripts/application.js +0 -36
- data/public/javascripts/calendar_date_select/calendar_date_select.js +0 -439
- data/public/javascripts/calendar_date_select/format_american.js +0 -34
- data/public/javascripts/calendar_date_select/format_db.js +0 -27
- data/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
- data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
- data/public/javascripts/calendar_date_select/format_finnish.js +0 -24
- data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -36
- data/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
- data/public/javascripts/calendar_date_select/format_italian.js +0 -24
- data/public/javascripts/calendar_date_select/locale/de.js +0 -11
- data/public/javascripts/calendar_date_select/locale/fi.js +0 -10
- data/public/javascripts/calendar_date_select/locale/fr.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pl.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pt.js +0 -11
- data/public/javascripts/calendar_date_select/locale/ru.js +0 -10
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/dragdrop.js +0 -972
- data/public/javascripts/effects.js +0 -1120
- data/public/javascripts/jsTree/source/_lib.js +0 -126
- data/public/javascripts/jsTree/source/themes/default/context.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/create.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/f.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/fminus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fminus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fplus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fplus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/lastli.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/lastli_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/li.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/rename.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/style.css +0 -44
- data/public/javascripts/jsTree/source/themes/marker.gif +0 -0
- data/public/javascripts/jsTree/source/themes/marker_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/plus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/context.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/create.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/f.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fminus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fminus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fplus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fplus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/lastli.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/li.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/rename.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/style.css +0 -39
- data/public/javascripts/jsTree/source/tree_component.css +0 -62
- data/public/javascripts/jsTree/source/tree_component.js +0 -2315
- data/public/javascripts/jsTree/source/tree_component.min.js +0 -14
- data/public/javascripts/prototype.js +0 -4225
- data/public/stylesheets/application.css +0 -7
- data/public/stylesheets/calendar_date_select/blue.css +0 -130
- data/public/stylesheets/calendar_date_select/default.css +0 -135
- data/public/stylesheets/calendar_date_select/plain.css +0 -128
- data/public/stylesheets/calendar_date_select/red.css +0 -135
- data/public/stylesheets/calendar_date_select/silver.css +0 -133
- data/public/stylesheets/sass/_buttons.sass +0 -59
- data/public/stylesheets/sass/_cart.sass +0 -21
- data/public/stylesheets/sass/_checkout.sass +0 -173
- data/public/stylesheets/sass/_colors.sass +0 -11
- data/public/stylesheets/sass/_layout.sass +0 -63
- data/public/stylesheets/sass/_messages.sass +0 -28
- data/public/stylesheets/sass/_mixins.sass +0 -17
- data/public/stylesheets/sass/_navigation.sass +0 -97
- data/public/stylesheets/sass/_prices.sass +0 -13
- data/public/stylesheets/sass/_product_detail.sass +0 -27
- data/public/stylesheets/sass/_product_thumbnail.sass +0 -58
- data/public/stylesheets/sass/_registration.sass +0 -18
- data/public/stylesheets/sass/ie.sass +0 -3
- data/public/stylesheets/sass/print.sass +0 -3
- data/public/stylesheets/sass/screen.sass +0 -22
- data/spec/fixtures/gateway_configurations.yml +0 -3
- data/spec/models/preference_definition_spec.rb +0 -184
- data/spec/preference_factory.rb +0 -58
- data/spec/views/admin/configurations/index.html.erb_spec.rb +0 -37
- data/test/factories/creditcard_payment_factory.rb +0 -11
- data/test/fixtures/gateway_configurations.yml +0 -2
- data/test/fixtures/gateways.yml +0 -4
- data/test/unit/helpers/checkouts_helper_test.rb +0 -26
- data/test/unit/incomplete_checkout_test.rb +0 -68
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb +0 -26
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateway_option_values_controller.rb +0 -24
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateways_controller.rb +0 -9
- data/vendor/extensions/payment_gateway/app/models/gateway_configuration.rb +0 -4
- data/vendor/extensions/payment_gateway/app/models/gateway_option.rb +0 -4
- data/vendor/extensions/payment_gateway/app/models/gateway_option_value.rb +0 -4
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/_form.html.erb +0 -21
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/edit.html.erb +0 -10
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_option_values/_options.html.erb +0 -28
- data/vendor/extensions/payment_gateway/db/migrate/20080620120002_create_gateway_configurations.rb +0 -12
- data/vendor/extensions/payment_gateway/db/migrate/20080620120003_create_gateways.rb +0 -15
- data/vendor/extensions/payment_gateway/db/migrate/20080620120004_create_gateway_options.rb +0 -15
- data/vendor/extensions/payment_gateway/db/migrate/20080620120005_create_gateway_option_values.rb +0 -14
- data/vendor/extensions/payment_gateway/db/migrate/20080620120006_create_bogus_gateway.rb +0 -14
- data/vendor/extensions/payment_gateway/db/migrate/20080620120007_create_linkpoint_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20080703120008_create_paypal_gateway.rb +0 -19
- data/vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20081120144549_remove_authorizenet_test.rb +0 -10
- data/vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb +0 -13
- data/vendor/extensions/payment_gateway/lib/gateway_config.rb +0 -7
- data/vendor/extensions/payment_gateway/lib/spree/bogus_gateway.rb +0 -68
- data/vendor/extensions/payment_gateway/lib/spree/gateway/config.rb +0 -22
- data/vendor/extensions/payment_gateway/spec/models/gateway_configuration_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/gateway_option_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/gateway_option_value_spec.rb +0 -11
- data/vendor/plugins/acts_as_adjacency_list/README +0 -13
- data/vendor/plugins/acts_as_adjacency_list/Rakefile +0 -22
- data/vendor/plugins/acts_as_adjacency_list/init.rb +0 -9
- data/vendor/plugins/acts_as_adjacency_list/install.rb +0 -1
- data/vendor/plugins/acts_as_adjacency_list/lib/active_record/acts/adjacency_list.rb +0 -230
- data/vendor/plugins/acts_as_adjacency_list/tasks/acts_as_adjacency_list_tasks.rake +0 -4
- data/vendor/plugins/acts_as_adjacency_list/test/acts_as_adjacency_list_test.rb +0 -293
- data/vendor/plugins/acts_as_adjacency_list/uninstall.rb +0 -1
- data/vendor/plugins/paperclip/LICENSE +0 -26
- data/vendor/plugins/paperclip/README.rdoc +0 -174
- data/vendor/plugins/paperclip/Rakefile +0 -99
- data/vendor/plugins/paperclip/generators/paperclip/USAGE +0 -5
- data/vendor/plugins/paperclip/generators/paperclip/paperclip_generator.rb +0 -27
- data/vendor/plugins/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb +0 -19
- data/vendor/plugins/paperclip/init.rb +0 -1
- data/vendor/plugins/paperclip/lib/paperclip.rb +0 -350
- data/vendor/plugins/paperclip/lib/paperclip/attachment.rb +0 -413
- data/vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb +0 -33
- data/vendor/plugins/paperclip/lib/paperclip/geometry.rb +0 -115
- data/vendor/plugins/paperclip/lib/paperclip/interpolations.rb +0 -105
- data/vendor/plugins/paperclip/lib/paperclip/iostream.rb +0 -58
- data/vendor/plugins/paperclip/lib/paperclip/matchers.rb +0 -4
- data/vendor/plugins/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb +0 -49
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +0 -66
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +0 -48
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb +0 -83
- data/vendor/plugins/paperclip/lib/paperclip/processor.rb +0 -49
- data/vendor/plugins/paperclip/lib/paperclip/storage.rb +0 -236
- data/vendor/plugins/paperclip/lib/paperclip/thumbnail.rb +0 -70
- data/vendor/plugins/paperclip/lib/paperclip/upfile.rb +0 -48
- data/vendor/plugins/paperclip/paperclip.gemspec +0 -37
- data/vendor/plugins/paperclip/shoulda_macros/paperclip.rb +0 -68
- data/vendor/plugins/paperclip/tasks/paperclip_tasks.rake +0 -79
- data/vendor/plugins/paperclip/test/attachment_test.rb +0 -768
- data/vendor/plugins/paperclip/test/database.yml +0 -4
- data/vendor/plugins/paperclip/test/fixtures/12k.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/50x50.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/5k.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/bad.png +0 -1
- data/vendor/plugins/paperclip/test/fixtures/s3.yml +0 -4
- data/vendor/plugins/paperclip/test/fixtures/twopage.pdf +0 -0
- data/vendor/plugins/paperclip/test/geometry_test.rb +0 -177
- data/vendor/plugins/paperclip/test/helper.rb +0 -100
- data/vendor/plugins/paperclip/test/integration_test.rb +0 -481
- data/vendor/plugins/paperclip/test/interpolations_test.rb +0 -120
- data/vendor/plugins/paperclip/test/iostream_test.rb +0 -71
- data/vendor/plugins/paperclip/test/matchers/have_attached_file_matcher_test.rb +0 -21
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb +0 -30
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb +0 -21
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_size_matcher_test.rb +0 -50
- data/vendor/plugins/paperclip/test/paperclip_test.rb +0 -291
- data/vendor/plugins/paperclip/test/processor_test.rb +0 -10
- data/vendor/plugins/paperclip/test/storage_test.rb +0 -282
- data/vendor/plugins/paperclip/test/thumbnail_test.rb +0 -177
- data/vendor/plugins/state_machine/CHANGELOG.rdoc +0 -97
- data/vendor/plugins/state_machine/LICENSE +0 -20
- data/vendor/plugins/state_machine/README.rdoc +0 -182
- data/vendor/plugins/state_machine/Rakefile +0 -88
- data/vendor/plugins/state_machine/init.rb +0 -1
- data/vendor/plugins/state_machine/lib/state_machine.rb +0 -129
- data/vendor/plugins/state_machine/lib/state_machine/event.rb +0 -116
- data/vendor/plugins/state_machine/lib/state_machine/machine.rb +0 -412
- data/vendor/plugins/state_machine/lib/state_machine/transition.rb +0 -227
- data/vendor/plugins/state_machine/test/app_root/app/models/auto_shop.rb +0 -34
- data/vendor/plugins/state_machine/test/app_root/app/models/car.rb +0 -19
- data/vendor/plugins/state_machine/test/app_root/app/models/highway.rb +0 -3
- data/vendor/plugins/state_machine/test/app_root/app/models/motorcycle.rb +0 -3
- data/vendor/plugins/state_machine/test/app_root/app/models/switch.rb +0 -23
- data/vendor/plugins/state_machine/test/app_root/app/models/switch_observer.rb +0 -20
- data/vendor/plugins/state_machine/test/app_root/app/models/toggle_switch.rb +0 -2
- data/vendor/plugins/state_machine/test/app_root/app/models/vehicle.rb +0 -78
- data/vendor/plugins/state_machine/test/app_root/config/environment.rb +0 -7
- data/vendor/plugins/state_machine/test/app_root/db/migrate/001_create_switches.rb +0 -12
- data/vendor/plugins/state_machine/test/app_root/db/migrate/002_create_auto_shops.rb +0 -13
- data/vendor/plugins/state_machine/test/app_root/db/migrate/003_create_highways.rb +0 -11
- data/vendor/plugins/state_machine/test/app_root/db/migrate/004_create_vehicles.rb +0 -16
- data/vendor/plugins/state_machine/test/factory.rb +0 -73
- data/vendor/plugins/state_machine/test/functional/state_machine_test.rb +0 -499
- data/vendor/plugins/state_machine/test/test_helper.rb +0 -13
- data/vendor/plugins/state_machine/test/unit/event_test.rb +0 -235
- data/vendor/plugins/state_machine/test/unit/invalid_transition_test.rb +0 -7
- data/vendor/plugins/state_machine/test/unit/machine_test.rb +0 -306
- data/vendor/plugins/state_machine/test/unit/state_machine_test.rb +0 -130
- data/vendor/plugins/state_machine/test/unit/transition_test.rb +0 -633
@@ -0,0 +1,25 @@
|
|
1
|
+
var update_state = function(region) {
|
2
|
+
var country = $('span#' + region + 'country :only-child').val();
|
3
|
+
var states = state_mapper[country];
|
4
|
+
|
5
|
+
var state_select = $('span#' + region + 'state select');
|
6
|
+
var state_input = $('span#' + region + 'state input');
|
7
|
+
|
8
|
+
if(states) {
|
9
|
+
state_select.html('');
|
10
|
+
var states_with_blank = [["",""]].concat(states);
|
11
|
+
$.each(states_with_blank, function(pos,id_nm) {
|
12
|
+
var opt = $(document.createElement('option'))
|
13
|
+
.attr('value', id_nm[0])
|
14
|
+
.html(id_nm[1]);
|
15
|
+
state_select.append(opt);
|
16
|
+
});
|
17
|
+
state_select.enable().show();;
|
18
|
+
state_input.hide().disable();
|
19
|
+
|
20
|
+
} else {
|
21
|
+
state_input.enable().show();
|
22
|
+
state_select.hide().disable();
|
23
|
+
}
|
24
|
+
|
25
|
+
};
|
@@ -0,0 +1,79 @@
|
|
1
|
+
jQuery(document).ready(function(){
|
2
|
+
add_address = function(addr){
|
3
|
+
var html = "";
|
4
|
+
if(addr!=undefined){
|
5
|
+
html += addr['firstname'] + " " + addr['lastname'] + ", ";
|
6
|
+
html += addr['address1'] + ", " + addr['address2'] + ", ";
|
7
|
+
html += addr['city'] + ", ";
|
8
|
+
|
9
|
+
if(addr['state_id']!=null){
|
10
|
+
html += addr['state']['name'] + ", ";
|
11
|
+
}else{
|
12
|
+
html += addr['state_name'] + ", ";
|
13
|
+
}
|
14
|
+
|
15
|
+
html += addr['country']['name'];
|
16
|
+
}
|
17
|
+
return html;
|
18
|
+
}
|
19
|
+
|
20
|
+
format_autocomplete = function(data){
|
21
|
+
var html = "<h4>" + data['email'] +"</h4>";
|
22
|
+
html += "<span><strong>Billing:</strong> ";
|
23
|
+
html += add_address(data['bill_address']);
|
24
|
+
html += "</span>";
|
25
|
+
|
26
|
+
html += "<span><strong>Shipping:</strong> ";
|
27
|
+
html += add_address(data['ship_address']);
|
28
|
+
html += "</span>";
|
29
|
+
|
30
|
+
return html
|
31
|
+
}
|
32
|
+
|
33
|
+
prep_autocomplete_data = function(data){
|
34
|
+
return $.map(eval(data), function(row) {
|
35
|
+
return {
|
36
|
+
data: row['user'],
|
37
|
+
value: row['user']['email'],
|
38
|
+
result: row['user']['email']
|
39
|
+
}
|
40
|
+
});
|
41
|
+
}
|
42
|
+
|
43
|
+
$("#customer_search").autocomplete("/admin/users.json", {
|
44
|
+
parse: prep_autocomplete_data,
|
45
|
+
formatItem: function(item) {
|
46
|
+
return format_autocomplete(item);
|
47
|
+
}
|
48
|
+
}).result(function(event, data, formatted) {
|
49
|
+
$('#checkout_email').val(data['email']);
|
50
|
+
|
51
|
+
var addr = data['bill_address'];
|
52
|
+
if(addr!=undefined){
|
53
|
+
$('#checkout_bill_address_attributes_firstname').val(addr['firstname']);
|
54
|
+
$('#checkout_bill_address_attributes_lastname').val(addr['lastname']);
|
55
|
+
$('#checkout_bill_address_attributes_address1').val(addr['address1']);
|
56
|
+
$('#checkout_bill_address_attributes_address2').val(addr['address2']);
|
57
|
+
$('#checkout_bill_address_attributes_city').val(addr['city']);
|
58
|
+
$('#checkout_bill_address_attributes_zipcode').val(addr['zipcode']);
|
59
|
+
$('#checkout_bill_address_attributes_state_id').val(addr['state_id']);
|
60
|
+
$('#checkout_bill_address_attributes_country_id').val(addr['country_id']);
|
61
|
+
$('#checkout_bill_address_attributes_phone').val(addr['phone']);
|
62
|
+
}
|
63
|
+
|
64
|
+
var addr = data['ship_address'];
|
65
|
+
if(addr!=undefined){
|
66
|
+
$('#checkout_ship_address_attributes_firstname').val(addr['firstname']);
|
67
|
+
$('#checkout_ship_address_attributes_lastname').val(addr['lastname']);
|
68
|
+
$('#checkout_ship_address_attributes_address1').val(addr['address1']);
|
69
|
+
$('#checkout_ship_address_attributes_address2').val(addr['address2']);
|
70
|
+
$('#checkout_ship_address_attributes_city').val(addr['city']);
|
71
|
+
$('#checkout_ship_address_attributes_zipcode').val(addr['zipcode']);
|
72
|
+
$('#checkout_ship_address_attributes_state_id').val(addr['state_id']);
|
73
|
+
$('#checkout_ship_address_attributes_country_id').val(addr['country_id']);
|
74
|
+
$('#checkout_ship_address_attributes_phone').val(addr['phone']);
|
75
|
+
}
|
76
|
+
});
|
77
|
+
|
78
|
+
});
|
79
|
+
|
@@ -0,0 +1,96 @@
|
|
1
|
+
jQuery(document).ready(function(){
|
2
|
+
image_html = function(item){
|
3
|
+
return "<img src='/assets/products/" + item['images'][0]["id"] + "/mini/" + item['images'][0]['attachment_file_name'] + "'/>";
|
4
|
+
}
|
5
|
+
|
6
|
+
format_autocomplete = function(data){
|
7
|
+
var html = "";
|
8
|
+
|
9
|
+
var product = data['product'];
|
10
|
+
|
11
|
+
if(data['variant']==undefined){
|
12
|
+
// product
|
13
|
+
|
14
|
+
if(product['images'].length!=0){
|
15
|
+
html = image_html(product);
|
16
|
+
}
|
17
|
+
|
18
|
+
html += "<div><h4>" + product['name'] + "</h4>";
|
19
|
+
html += "<span><strong>Sku: </strong>" + product['master']['sku'] + "</span>";
|
20
|
+
html += "<span><strong>On Hand: </strong>" + product['count_on_hand'] + "</span></div>";
|
21
|
+
}else{
|
22
|
+
// variant
|
23
|
+
var variant = data['variant'];
|
24
|
+
var name = product['name'];
|
25
|
+
|
26
|
+
if(variant['images'].length!=0){
|
27
|
+
html = image_html(variant);
|
28
|
+
}else{
|
29
|
+
if(product['images'].length!=0){
|
30
|
+
html = image_html(product);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
name += " - " + $.map(variant['option_values'], function(option_value){
|
35
|
+
return option_value["option_type"]["presentation"] + ": " + option_value['name'];
|
36
|
+
}).join(", ")
|
37
|
+
|
38
|
+
html += "<div><h4>" + name + "</h4>";
|
39
|
+
html += "<span><strong>Sku: </strong>" + variant['sku'] + "</span>";
|
40
|
+
html += "<span><strong>On Hand: </strong>" + variant['count_on_hand'] + "</span></div>";
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
return html
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
prep_autocomplete_data = function(data){
|
49
|
+
return $.map(eval(data), function(row) {
|
50
|
+
|
51
|
+
var product = row['product'];
|
52
|
+
|
53
|
+
if(product['variants'].length>0){
|
54
|
+
//variants
|
55
|
+
return $.map(product['variants'], function(variant){
|
56
|
+
|
57
|
+
var name = product['name'];
|
58
|
+
name += " - " + $.map(variant['option_values'], function(option_value){
|
59
|
+
return option_value["option_type"]["presentation"] + ": " + option_value['name'];
|
60
|
+
}).join(", ");
|
61
|
+
|
62
|
+
return {
|
63
|
+
data: {product: product, variant: variant},
|
64
|
+
value: name,
|
65
|
+
result: name
|
66
|
+
}
|
67
|
+
});
|
68
|
+
}else{
|
69
|
+
return {
|
70
|
+
data: {product: product},
|
71
|
+
value: product['name'],
|
72
|
+
result: product['name']
|
73
|
+
}
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}
|
77
|
+
|
78
|
+
$("#add_product_name").autocomplete("/admin/products.json", {
|
79
|
+
parse: prep_autocomplete_data,
|
80
|
+
formatItem: function(item) {
|
81
|
+
return format_autocomplete(item);
|
82
|
+
}
|
83
|
+
}).result(function(event, data, formatted) {
|
84
|
+
if (data){
|
85
|
+
if(data['variant']==undefined){
|
86
|
+
// product
|
87
|
+
$('#add_variant_id').val(data['product']['master']['id']);
|
88
|
+
}else{
|
89
|
+
// variant
|
90
|
+
$('#add_variant_id').val(data['variant']['id']);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
});
|
94
|
+
|
95
|
+
});
|
96
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
jQuery(document).ready(function(){
|
2
|
+
$.each($('td.qty input'), function(i, inpt){
|
3
|
+
$(inpt).delayedObserver(0.5, function(object, value) {
|
4
|
+
|
5
|
+
var id = object.attr('id').replace("order_line_items_attributes_", "").replace("_quantity", "");
|
6
|
+
id = "#order_line_items_attributes_" + id + "_id";
|
7
|
+
|
8
|
+
jQuery.ajax({
|
9
|
+
type: "POST",
|
10
|
+
url: "/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(),
|
11
|
+
data: ({_method: "put", "line_item[quantity]": value}),
|
12
|
+
success: function(html){ $('#order-form-wrapper').html(html)}
|
13
|
+
});
|
14
|
+
|
15
|
+
});
|
16
|
+
});
|
17
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
$(document).ready(function(){
|
2
|
+
|
3
|
+
$(".select_properties_from_prototype").live("click", function(){
|
4
|
+
$("#busy_indicator").show();
|
5
|
+
var clicked_link = $(this);
|
6
|
+
$.post(clicked_link.attr("href"), {'authenticity_token': AUTH_TOKEN},
|
7
|
+
function(data, textStatus){
|
8
|
+
clicked_link.parent("td").parent("tr").hide();
|
9
|
+
},
|
10
|
+
"script");
|
11
|
+
$("#busy_indicator").hide();
|
12
|
+
return false;
|
13
|
+
});
|
14
|
+
|
15
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$j(function() {
|
2
|
+
var original_calc_type = $j('#calc-type').attr('value');
|
3
|
+
$j('div#calculator-settings-warning').hide();
|
4
|
+
$j('#calc-type').change(function() {
|
5
|
+
if ($j('#calc-type').attr('value') == original_calc_type) {
|
6
|
+
$j('div.calculator-settings').show();
|
7
|
+
$j('div#calculator-settings-warning').hide();
|
8
|
+
} else {
|
9
|
+
$j('div.calculator-settings').hide();
|
10
|
+
$j('div#calculator-settings-warning').show();
|
11
|
+
}
|
12
|
+
});
|
13
|
+
})
|
@@ -0,0 +1,65 @@
|
|
1
|
+
jQuery(document).ready(function($){
|
2
|
+
|
3
|
+
$('input#checkout_use_billing').click(function() {
|
4
|
+
show_billing(!this.checked);
|
5
|
+
});
|
6
|
+
|
7
|
+
var show_billing = function(show) {
|
8
|
+
if(show) {
|
9
|
+
$('#shipping .inner').show();
|
10
|
+
$('#shipping .inner input').removeAttr('disabled', 'disabled');
|
11
|
+
$('#shipping .inner select').removeAttr('disabled', 'disabled');
|
12
|
+
} else {
|
13
|
+
$('#shipping .inner').hide();
|
14
|
+
$('#shipping .inner input').attr('disabled', 'disabled');
|
15
|
+
$('#shipping .inner select').attr('disabled', 'disabled');
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
var update_state = function(region) {
|
20
|
+
var country = $('span#' + region + 'country :only-child').val();
|
21
|
+
var states = state_mapper[country];
|
22
|
+
|
23
|
+
var state_select = $('span#' + region + 'state select');
|
24
|
+
var state_input = $('span#' + region + 'state input');
|
25
|
+
|
26
|
+
if(states) {
|
27
|
+
var selected = state_select.val();
|
28
|
+
state_select.html('');
|
29
|
+
var states_with_blank = [["",""]].concat(states);
|
30
|
+
$.each(states_with_blank, function(pos,id_nm) {
|
31
|
+
var opt = $(document.createElement('option'))
|
32
|
+
.attr('value', id_nm[0])
|
33
|
+
.html(id_nm[1]);
|
34
|
+
if(selected==id_nm[0]){
|
35
|
+
opt.attr('selected', 'selected');
|
36
|
+
}
|
37
|
+
state_select.append(opt);
|
38
|
+
});
|
39
|
+
state_select.removeAttr('disabled').show();;
|
40
|
+
state_input.hide().attr('disabled', 'disabled');
|
41
|
+
|
42
|
+
} else {
|
43
|
+
state_input.removeAttr('disabled').show();
|
44
|
+
state_select.hide().attr('disabled', 'disabled');
|
45
|
+
}
|
46
|
+
|
47
|
+
};
|
48
|
+
|
49
|
+
|
50
|
+
// Show fields for the selected payment method
|
51
|
+
$("input[type='radio'][name='checkout[payments_attributes][][payment_method_id]']").click(function(){
|
52
|
+
$('#payment-methods li').hide();
|
53
|
+
if(this.checked){ $('#payment_method_'+this.value).show(); }
|
54
|
+
}).triggerHandler('click');
|
55
|
+
|
56
|
+
|
57
|
+
jQuery(document).ready(function(){
|
58
|
+
$('span#bcountry select').change(function() { update_state('b'); });
|
59
|
+
$('span#scountry select').change(function() { update_state('s'); });
|
60
|
+
show_billing(!$('input#checkout_use_billing').attr('checked'));
|
61
|
+
update_state('b');
|
62
|
+
update_state('s');
|
63
|
+
});
|
64
|
+
|
65
|
+
});
|
@@ -0,0 +1,1445 @@
|
|
1
|
+
/*
|
2
|
+
DatePicker v4.4 by frequency-decoder.com
|
3
|
+
|
4
|
+
Released under a creative commons Attribution-ShareAlike 2.5 license (http://creativecommons.org/licenses/by-sa/2.5/)
|
5
|
+
|
6
|
+
Please credit frequency-decoder in any derivative work - thanks.
|
7
|
+
|
8
|
+
You are free:
|
9
|
+
|
10
|
+
* to copy, distribute, display, and perform the work
|
11
|
+
* to make derivative works
|
12
|
+
* to make commercial use of the work
|
13
|
+
|
14
|
+
Under the following conditions:
|
15
|
+
|
16
|
+
by Attribution.
|
17
|
+
--------------
|
18
|
+
You must attribute the work in the manner specified by the author or licensor.
|
19
|
+
|
20
|
+
sa
|
21
|
+
--
|
22
|
+
Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one.
|
23
|
+
|
24
|
+
* For any reuse or distribution, you must make clear to others the license terms of this work.
|
25
|
+
* Any of these conditions can be waived if you get permission from the copyright holder.
|
26
|
+
*/
|
27
|
+
var datePickerController;
|
28
|
+
|
29
|
+
(function() {
|
30
|
+
|
31
|
+
// Detect the browser language
|
32
|
+
datePicker.languageinfo = navigator.language ? navigator.language : navigator.userLanguage;
|
33
|
+
datePicker.languageinfo = datePicker.languageinfo ? datePicker.languageinfo.toLowerCase().replace(/-[a-z]+$/, "") : 'en';
|
34
|
+
|
35
|
+
// Load the appropriate language file
|
36
|
+
var scriptFiles = document.getElementsByTagName('head')[0].getElementsByTagName('script');
|
37
|
+
var loc = scriptFiles[scriptFiles.length - 1].src.substr(0, scriptFiles[scriptFiles.length - 1].src.lastIndexOf("/")) + "/lang/" + datePicker.languageinfo + ".js";
|
38
|
+
|
39
|
+
var script = document.createElement('script');
|
40
|
+
script.type = "text/javascript";
|
41
|
+
script.src = loc;
|
42
|
+
script.setAttribute("charset", "utf-8");
|
43
|
+
/*@cc_on
|
44
|
+
/*@if(@_win32)
|
45
|
+
var bases = document.getElementsByTagName('base');
|
46
|
+
if (bases.length && bases[0].childNodes.length) {
|
47
|
+
bases[0].appendChild(script);
|
48
|
+
} else {
|
49
|
+
document.getElementsByTagName('head')[0].appendChild(script);
|
50
|
+
};
|
51
|
+
@else @*/
|
52
|
+
document.getElementsByTagName('head')[0].appendChild(script);
|
53
|
+
/*@end
|
54
|
+
@*/
|
55
|
+
script = null;
|
56
|
+
|
57
|
+
// Defaults should the locale file not load
|
58
|
+
datePicker.months = ["January","February","March","April","May","June","July","August","September","October","November","December"];
|
59
|
+
datePicker.fullDay = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
|
60
|
+
datePicker.titles = ["Previous month","Next month","Previous year","Next year", "Today", "Show Calendar"];
|
61
|
+
|
62
|
+
datePicker.getDaysPerMonth = function(nMonth, nYear) {
|
63
|
+
nMonth = (nMonth + 12) % 12;
|
64
|
+
return (((0 == (nYear%4)) && ((0 != (nYear%100)) || (0 == (nYear%400)))) && nMonth == 1) ? 29: [31,28,31,30,31,30,31,31,30,31,30,31][nMonth];
|
65
|
+
};
|
66
|
+
|
67
|
+
function datePicker(options) {
|
68
|
+
|
69
|
+
this.defaults = {};
|
70
|
+
for(opt in options) { this[opt] = this.defaults[opt] = options[opt]; };
|
71
|
+
|
72
|
+
this.date = new Date();
|
73
|
+
this.yearinc = 1;
|
74
|
+
this.timer = null;
|
75
|
+
this.pause = 1000;
|
76
|
+
this.timerSet = false;
|
77
|
+
this.fadeTimer = null;
|
78
|
+
this.interval = new Date();
|
79
|
+
this.firstDayOfWeek = this.defaults.firstDayOfWeek = this.dayInc = this.monthInc = this.yearInc = this.opacity = this.opacityTo = 0;
|
80
|
+
this.dateSet = null;
|
81
|
+
this.visible = false;
|
82
|
+
this.disabledDates = [];
|
83
|
+
this.enabledDates = [];
|
84
|
+
this.nbsp = String.fromCharCode( 160 );
|
85
|
+
var o = this;
|
86
|
+
|
87
|
+
o.events = {
|
88
|
+
onblur:function(e) {
|
89
|
+
o.removeKeyboardEvents();
|
90
|
+
},
|
91
|
+
onfocus:function(e) {
|
92
|
+
o.addKeyboardEvents();
|
93
|
+
},
|
94
|
+
onkeydown: function (e) {
|
95
|
+
o.stopTimer();
|
96
|
+
if(!o.visible) return false;
|
97
|
+
|
98
|
+
if(e == null) e = document.parentWindow.event;
|
99
|
+
var kc = e.keyCode ? e.keyCode : e.charCode;
|
100
|
+
|
101
|
+
if( kc == 13 ) {
|
102
|
+
// close (return)
|
103
|
+
var td = document.getElementById(o.id + "-date-picker-hover");
|
104
|
+
if(!td || td.className.search(/out-of-range|day-disabled/) != -1) return o.killEvent(e);
|
105
|
+
o.returnFormattedDate();
|
106
|
+
o.hide();
|
107
|
+
return o.killEvent(e);
|
108
|
+
} else if(kc == 27) {
|
109
|
+
// close (esc)
|
110
|
+
o.hide();
|
111
|
+
return o.killEvent(e);
|
112
|
+
} else if(kc == 32 || kc == 0) {
|
113
|
+
// today (space)
|
114
|
+
o.date = new Date();
|
115
|
+
o.updateTable();
|
116
|
+
return o.killEvent(e);
|
117
|
+
};
|
118
|
+
|
119
|
+
// Internet Explorer fires the keydown event faster than the JavaScript engine can
|
120
|
+
// update the interface. The following attempts to fix this.
|
121
|
+
/*@cc_on
|
122
|
+
@if(@_win32)
|
123
|
+
if(new Date().getTime() - o.interval.getTime() < 100) return o.killEvent(e);
|
124
|
+
o.interval = new Date();
|
125
|
+
@end
|
126
|
+
@*/
|
127
|
+
|
128
|
+
if ((kc > 49 && kc < 56) || (kc > 97 && kc < 104)) {
|
129
|
+
if (kc > 96) kc -= (96-48);
|
130
|
+
kc -= 49;
|
131
|
+
o.firstDayOfWeek = (o.firstDayOfWeek + kc) % 7;
|
132
|
+
o.updateTable();
|
133
|
+
return o.killEvent(e);
|
134
|
+
};
|
135
|
+
|
136
|
+
if ( kc < 37 || kc > 40 ) return true;
|
137
|
+
|
138
|
+
var d = new Date( o.date ).valueOf();
|
139
|
+
|
140
|
+
if ( kc == 37 ) {
|
141
|
+
// ctrl + left = previous month
|
142
|
+
if( e.ctrlKey ) {
|
143
|
+
d = new Date( o.date );
|
144
|
+
d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth() - 1,d.getFullYear())) );
|
145
|
+
d.setMonth( d.getMonth() - 1 );
|
146
|
+
} else {
|
147
|
+
d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() - 1 );
|
148
|
+
};
|
149
|
+
} else if ( kc == 39 ) {
|
150
|
+
// ctrl + right = next month
|
151
|
+
if( e.ctrlKey ) {
|
152
|
+
d = new Date( o.date );
|
153
|
+
d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth() + 1,d.getFullYear())) );
|
154
|
+
d.setMonth( d.getMonth() + 1 );
|
155
|
+
} else {
|
156
|
+
d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() + 1 );
|
157
|
+
};
|
158
|
+
} else if ( kc == 38 ) {
|
159
|
+
// ctrl + up = next year
|
160
|
+
if( e.ctrlKey ) {
|
161
|
+
d = new Date( o.date );
|
162
|
+
d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth(),d.getFullYear() + 1)) );
|
163
|
+
d.setFullYear( d.getFullYear() + 1 );
|
164
|
+
} else {
|
165
|
+
d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() - 7 );
|
166
|
+
};
|
167
|
+
} else if ( kc == 40 ) {
|
168
|
+
// ctrl + down = prev year
|
169
|
+
if( e.ctrlKey ) {
|
170
|
+
d = new Date( o.date );
|
171
|
+
d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth(),d.getFullYear() - 1)) );
|
172
|
+
d.setFullYear( d.getFullYear() - 1 );
|
173
|
+
} else {
|
174
|
+
d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() + 7 );
|
175
|
+
};
|
176
|
+
};
|
177
|
+
|
178
|
+
var tmpDate = new Date(d);
|
179
|
+
|
180
|
+
if(o.outOfRange(tmpDate)) return o.killEvent(e);
|
181
|
+
|
182
|
+
var cacheDate = new Date(o.date);
|
183
|
+
o.date = tmpDate;
|
184
|
+
|
185
|
+
if(cacheDate.getFullYear() != o.date.getFullYear() || cacheDate.getMonth() != o.date.getMonth()) o.updateTable();
|
186
|
+
else {
|
187
|
+
o.disableTodayButton();
|
188
|
+
var tds = o.table.getElementsByTagName('td');
|
189
|
+
var txt;
|
190
|
+
var start = o.date.getDate() - 6;
|
191
|
+
if(start < 0) start = 0;
|
192
|
+
|
193
|
+
for(var i = start, td; td = tds[i]; i++) {
|
194
|
+
txt = Number(td.firstChild.nodeValue);
|
195
|
+
if(isNaN(txt) || txt != o.date.getDate()) continue;
|
196
|
+
o.removeHighlight();
|
197
|
+
td.id = o.id + "-date-picker-hover";
|
198
|
+
td.className = td.className.replace(/date-picker-hover/g, "") + " date-picker-hover";
|
199
|
+
};
|
200
|
+
};
|
201
|
+
return o.killEvent(e);
|
202
|
+
},
|
203
|
+
gotoToday: function(e) {
|
204
|
+
o.date = new Date();
|
205
|
+
o.updateTable();
|
206
|
+
return o.killEvent(e);
|
207
|
+
},
|
208
|
+
onmousedown: function(e) {
|
209
|
+
if ( e == null ) e = document.parentWindow.event;
|
210
|
+
var el = e.target != null ? e.target : e.srcElement;
|
211
|
+
|
212
|
+
var found = false;
|
213
|
+
while(el.parentNode) {
|
214
|
+
if(el.id && (el.id == "fd-"+o.id || el.id == "fd-but-"+o.id)) {
|
215
|
+
found = true;
|
216
|
+
break;
|
217
|
+
};
|
218
|
+
try {
|
219
|
+
el = el.parentNode;
|
220
|
+
} catch(err) {
|
221
|
+
break;
|
222
|
+
};
|
223
|
+
};
|
224
|
+
if(found) return true;
|
225
|
+
o.stopTimer();
|
226
|
+
datePickerController.hideAll();
|
227
|
+
},
|
228
|
+
onmouseover: function(e) {
|
229
|
+
o.stopTimer();
|
230
|
+
var txt = this.firstChild.nodeValue;
|
231
|
+
if(this.className == "out-of-range" || txt.search(/^[\d]+$/) == -1) return;
|
232
|
+
|
233
|
+
o.removeHighlight();
|
234
|
+
|
235
|
+
this.id = o.id+"-date-picker-hover";
|
236
|
+
this.className = this.className.replace(/date-picker-hover/g, "") + " date-picker-hover";
|
237
|
+
|
238
|
+
o.date.setDate(this.firstChild.nodeValue);
|
239
|
+
o.disableTodayButton();
|
240
|
+
},
|
241
|
+
onclick: function(e) {
|
242
|
+
if(o.opacity != o.opacityTo || this.className.search(/out-of-range|day-disabled/) != -1) return false;
|
243
|
+
if ( e == null ) e = document.parentWindow.event;
|
244
|
+
var el = e.target != null ? e.target : e.srcElement;
|
245
|
+
while ( el.nodeType != 1 ) el = el.parentNode;
|
246
|
+
var d = new Date( o.date );
|
247
|
+
var txt = el.firstChild.data;
|
248
|
+
if(txt.search(/^[\d]+$/) == -1) return;
|
249
|
+
var n = Number( txt );
|
250
|
+
if(isNaN(n)) { return true; };
|
251
|
+
d.setDate( n );
|
252
|
+
o.date = d;
|
253
|
+
o.returnFormattedDate();
|
254
|
+
if(!o.staticPos) o.hide();
|
255
|
+
o.stopTimer();
|
256
|
+
return o.killEvent(e);
|
257
|
+
},
|
258
|
+
incDec: function(e) {
|
259
|
+
if ( e == null ) e = document.parentWindow.event;
|
260
|
+
var el = e.target != null ? e.target : e.srcElement;
|
261
|
+
|
262
|
+
if(el && el.className && el.className.search('fd-disabled') != -1) { return false; }
|
263
|
+
datePickerController.addEvent(document, "mouseup", o.events.clearTimer);
|
264
|
+
o.timerInc = 800;
|
265
|
+
o.dayInc = arguments[1];
|
266
|
+
o.yearInc = arguments[2];
|
267
|
+
o.monthInc = arguments[3];
|
268
|
+
o.timerSet = true;
|
269
|
+
|
270
|
+
o.updateTable();
|
271
|
+
return true;
|
272
|
+
},
|
273
|
+
clearTimer: function(e) {
|
274
|
+
o.stopTimer();
|
275
|
+
o.timerInc = 1000;
|
276
|
+
o.yearInc = 0;
|
277
|
+
o.monthInc = 0;
|
278
|
+
o.dayInc = 0;
|
279
|
+
datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
|
280
|
+
}
|
281
|
+
};
|
282
|
+
o.stopTimer = function() {
|
283
|
+
o.timerSet = false;
|
284
|
+
window.clearTimeout(o.timer);
|
285
|
+
};
|
286
|
+
o.removeHighlight = function() {
|
287
|
+
if(document.getElementById(o.id+"-date-picker-hover")) {
|
288
|
+
document.getElementById(o.id+"-date-picker-hover").className = document.getElementById(o.id+"-date-picker-hover").className.replace("date-picker-hover", "");
|
289
|
+
document.getElementById(o.id+"-date-picker-hover").id = "";
|
290
|
+
};
|
291
|
+
};
|
292
|
+
o.reset = function() {
|
293
|
+
for(def in o.defaults) { o[def] = o.defaults[def]; };
|
294
|
+
};
|
295
|
+
o.setOpacity = function(op) {
|
296
|
+
o.div.style.opacity = op/100;
|
297
|
+
o.div.style.filter = 'alpha(opacity=' + op + ')';
|
298
|
+
o.opacity = op;
|
299
|
+
};
|
300
|
+
o.fade = function() {
|
301
|
+
window.clearTimeout(o.fadeTimer);
|
302
|
+
o.fadeTimer = null;
|
303
|
+
delete(o.fadeTimer);
|
304
|
+
|
305
|
+
var diff = Math.round(o.opacity + ((o.opacityTo - o.opacity) / 4));
|
306
|
+
|
307
|
+
o.setOpacity(diff);
|
308
|
+
|
309
|
+
if(Math.abs(o.opacityTo - diff) > 3 && !o.noTransparency) {
|
310
|
+
o.fadeTimer = window.setTimeout(o.fade, 50);
|
311
|
+
} else {
|
312
|
+
o.setOpacity(o.opacityTo);
|
313
|
+
if(o.opacityTo == 0) {
|
314
|
+
o.div.style.display = "none";
|
315
|
+
o.visible = false;
|
316
|
+
} else {
|
317
|
+
o.visible = true;
|
318
|
+
};
|
319
|
+
};
|
320
|
+
};
|
321
|
+
o.killEvent = function(e) {
|
322
|
+
e = e || document.parentWindow.event;
|
323
|
+
|
324
|
+
if(e.stopPropagation) {
|
325
|
+
e.stopPropagation();
|
326
|
+
e.preventDefault();
|
327
|
+
};
|
328
|
+
|
329
|
+
/*@cc_on
|
330
|
+
@if(@_win32)
|
331
|
+
e.cancelBubble = true;
|
332
|
+
e.returnValue = false;
|
333
|
+
@end
|
334
|
+
@*/
|
335
|
+
return false;
|
336
|
+
};
|
337
|
+
o.getElem = function() {
|
338
|
+
return document.getElementById(o.id.replace(/^fd-/, '')) || false;
|
339
|
+
};
|
340
|
+
o.setRangeLow = function(range) {
|
341
|
+
if(String(range).search(/^(\d\d?\d\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$/) == -1) range = '';
|
342
|
+
o.low = o.defaults.low = range;
|
343
|
+
if(o.staticPos) o.updateTable(true);
|
344
|
+
};
|
345
|
+
o.setRangeHigh = function(range) {
|
346
|
+
if(String(range).search(/^(\d\d?\d\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$/) == -1) range = '';
|
347
|
+
o.high = o.defaults.high = range;
|
348
|
+
if(o.staticPos) o.updateTable(true);
|
349
|
+
};
|
350
|
+
o.setDisabledDays = function(dayArray) {
|
351
|
+
o.disableDays = o.defaults.disableDays = dayArray;
|
352
|
+
if(o.staticPos) o.updateTable(true);
|
353
|
+
};
|
354
|
+
o.setDisabledDates = function(dateArray) {
|
355
|
+
var fin = [];
|
356
|
+
for(var i = dateArray.length; i-- ;) {
|
357
|
+
if(dateArray[i].match(/^(\d\d\d\d|\*\*\*\*)(0[1-9]|1[012]|\*\*)(0[1-9]|[12][0-9]|3[01])$/) != -1) fin[fin.length] = dateArray[i];
|
358
|
+
};
|
359
|
+
if(fin.length) {
|
360
|
+
o.disabledDates = fin;
|
361
|
+
o.enabledDates = [];
|
362
|
+
if(o.staticPos) o.updateTable(true);
|
363
|
+
};
|
364
|
+
};
|
365
|
+
o.setEnabledDates = function(dateArray) {
|
366
|
+
var fin = [];
|
367
|
+
for(var i = dateArray.length; i-- ;) {
|
368
|
+
if(dateArray[i].match(/^(\d\d\d\d|\*\*\*\*)(0[1-9]|1[012]|\*\*)(0[1-9]|[12][0-9]|3[01]|\*\*)$/) != -1 && dateArray[i] != "********") fin[fin.length] = dateArray[i];
|
369
|
+
};
|
370
|
+
if(fin.length) {
|
371
|
+
o.disabledDates = [];
|
372
|
+
o.enabledDates = fin;
|
373
|
+
if(o.staticPos) o.updateTable(true);
|
374
|
+
};
|
375
|
+
};
|
376
|
+
o.getDisabledDates = function(y, m) {
|
377
|
+
if(o.enabledDates.length) return o.getEnabledDates(y, m);
|
378
|
+
var obj = {};
|
379
|
+
var d = datePicker.getDaysPerMonth(m - 1, y);
|
380
|
+
m = m < 10 ? "0" + String(m) : m;
|
381
|
+
for(var i = o.disabledDates.length; i-- ;) {
|
382
|
+
var tmp = o.disabledDates[i].replace("****", y).replace("**", m);
|
383
|
+
if(tmp < Number(String(y)+m+"01") || tmp > Number(y+String(m)+d)) continue;
|
384
|
+
obj[tmp] = 1;
|
385
|
+
};
|
386
|
+
return obj;
|
387
|
+
};
|
388
|
+
o.getEnabledDates = function(y, m) {
|
389
|
+
var obj = {};
|
390
|
+
var d = datePicker.getDaysPerMonth(m - 1, y);
|
391
|
+
m = m < 10 ? "0" + String(m) : m;
|
392
|
+
var day,tmp,de,me,ye,disabled;
|
393
|
+
for(var dd = 1; dd <= d; dd++) {
|
394
|
+
day = dd < 10 ? "0" + String(dd) : dd;
|
395
|
+
disabled = true;
|
396
|
+
for(var i = o.enabledDates.length; i-- ;) {
|
397
|
+
tmp = o.enabledDates[i];
|
398
|
+
ye = String(o.enabledDates[i]).substr(0,4);
|
399
|
+
me = String(o.enabledDates[i]).substr(4,2);
|
400
|
+
de = String(o.enabledDates[i]).substr(6,2);
|
401
|
+
|
402
|
+
if(ye == y && me == m && de == day) {
|
403
|
+
disabled = false;
|
404
|
+
break;
|
405
|
+
}
|
406
|
+
|
407
|
+
if(ye == "****" || me == "**" || de == "**") {
|
408
|
+
if(ye == "****") tmp = tmp.replace(/^\*\*\*\*/, y);
|
409
|
+
if(me == "**") tmp = tmp = tmp.substr(0,4) + String(m) + tmp.substr(6,2);
|
410
|
+
if(de == "**") tmp = tmp.replace(/\*\*/, day);
|
411
|
+
|
412
|
+
if(tmp == String(y + String(m) + day)) {
|
413
|
+
disabled = false;
|
414
|
+
break;
|
415
|
+
};
|
416
|
+
};
|
417
|
+
};
|
418
|
+
if(disabled) obj[String(y + String(m) + day)] = 1;
|
419
|
+
};
|
420
|
+
return obj;
|
421
|
+
};
|
422
|
+
o.setFirstDayOfWeek = function(e) {
|
423
|
+
if ( e == null ) e = document.parentWindow.event;
|
424
|
+
var elem = e.target != null ? e.target : e.srcElement;
|
425
|
+
if(elem.tagName.toLowerCase() != "th") {
|
426
|
+
while(elem.tagName.toLowerCase() != "th") elem = elem.parentNode;
|
427
|
+
};
|
428
|
+
var cnt = 0;
|
429
|
+
while(elem.previousSibling) {
|
430
|
+
elem = elem.previousSibling;
|
431
|
+
if(elem.tagName.toLowerCase() == "th") cnt++;
|
432
|
+
};
|
433
|
+
o.firstDayOfWeek = (o.firstDayOfWeek + cnt) % 7;
|
434
|
+
o.updateTableHeaders();
|
435
|
+
return o.killEvent(e);
|
436
|
+
};
|
437
|
+
o.truePosition = function(element) {
|
438
|
+
var pos = o.cumulativeOffset(element);
|
439
|
+
if(window.opera) { return pos; }
|
440
|
+
var iebody = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
|
441
|
+
var dsocleft = document.all ? iebody.scrollLeft : window.pageXOffset;
|
442
|
+
var dsoctop = document.all ? iebody.scrollTop : window.pageYOffset;
|
443
|
+
var posReal = o.realOffset(element);
|
444
|
+
return [pos[0] - posReal[0] + dsocleft, pos[1] - posReal[1] + dsoctop];
|
445
|
+
};
|
446
|
+
o.realOffset = function(element) {
|
447
|
+
var t = 0, l = 0;
|
448
|
+
do {
|
449
|
+
t += element.scrollTop || 0;
|
450
|
+
l += element.scrollLeft || 0;
|
451
|
+
element = element.parentNode;
|
452
|
+
} while (element);
|
453
|
+
return [l, t];
|
454
|
+
};
|
455
|
+
o.cumulativeOffset = function(element) {
|
456
|
+
var t = 0, l = 0;
|
457
|
+
do {
|
458
|
+
t += element.offsetTop || 0;
|
459
|
+
l += element.offsetLeft || 0;
|
460
|
+
element = element.offsetParent;
|
461
|
+
} while (element);
|
462
|
+
return [l, t];
|
463
|
+
};
|
464
|
+
o.resize = function() {
|
465
|
+
if(!o.created || !o.getElem()) return;
|
466
|
+
|
467
|
+
o.div.style.visibility = "hidden";
|
468
|
+
if(!o.staticPos) { o.div.style.left = o.div.style.top = "0px"; }
|
469
|
+
o.div.style.display = "block";
|
470
|
+
|
471
|
+
var osh = o.div.offsetHeight;
|
472
|
+
var osw = o.div.offsetWidth;
|
473
|
+
|
474
|
+
o.div.style.visibility = "visible";
|
475
|
+
o.div.style.display = "none";
|
476
|
+
|
477
|
+
if(!o.staticPos) {
|
478
|
+
var elem = document.getElementById('fd-but-' + o.id);
|
479
|
+
var pos = o.truePosition(elem);
|
480
|
+
var trueBody = (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body;
|
481
|
+
var scrollTop = window.devicePixelRatio || window.opera ? 0 : trueBody.scrollTop;
|
482
|
+
var scrollLeft = window.devicePixelRatio || window.opera ? 0 : trueBody.scrollLeft;
|
483
|
+
|
484
|
+
if(parseInt(trueBody.clientWidth+scrollLeft) < parseInt(osw+pos[0])) {
|
485
|
+
o.div.style.left = Math.abs(parseInt((trueBody.clientWidth+scrollLeft) - osw)) + "px";
|
486
|
+
} else {
|
487
|
+
o.div.style.left = pos[0] + "px";
|
488
|
+
};
|
489
|
+
|
490
|
+
if(parseInt(trueBody.clientHeight+scrollTop) < parseInt(osh+pos[1]+elem.offsetHeight+2)) {
|
491
|
+
o.div.style.top = Math.abs(parseInt(pos[1] - (osh + 2))) + "px";
|
492
|
+
} else {
|
493
|
+
o.div.style.top = Math.abs(parseInt(pos[1] + elem.offsetHeight + 2)) + "px";
|
494
|
+
};
|
495
|
+
};
|
496
|
+
/*@cc_on
|
497
|
+
@if(@_jscript_version <= 5.6)
|
498
|
+
if(o.staticPos) return;
|
499
|
+
o.iePopUp.style.top = o.div.style.top;
|
500
|
+
o.iePopUp.style.left = o.div.style.left;
|
501
|
+
o.iePopUp.style.width = osw + "px";
|
502
|
+
o.iePopUp.style.height = (osh - 2) + "px";
|
503
|
+
@end
|
504
|
+
@*/
|
505
|
+
};
|
506
|
+
o.equaliseDates = function() {
|
507
|
+
var clearDayFound = false;
|
508
|
+
var tmpDate;
|
509
|
+
for(var i = o.low; i <= o.high; i++) {
|
510
|
+
tmpDate = String(i);
|
511
|
+
if(!o.disableDays[new Date(tmpDate.substr(0,4), tmpDate.substr(6,2), tmpDate.substr(4,2)).getDay() - 1]) {
|
512
|
+
clearDayFound = true;
|
513
|
+
break;
|
514
|
+
};
|
515
|
+
};
|
516
|
+
if(!clearDayFound) o.disableDays = o.defaults.disableDays = [0,0,0,0,0,0,0];
|
517
|
+
};
|
518
|
+
o.outOfRange = function(tmpDate) {
|
519
|
+
if(!o.low && !o.high) return false;
|
520
|
+
|
521
|
+
var level = false;
|
522
|
+
if(!tmpDate) {
|
523
|
+
level = true;
|
524
|
+
tmpDate = o.date;
|
525
|
+
};
|
526
|
+
|
527
|
+
var d = (tmpDate.getDate() < 10) ? "0" + tmpDate.getDate() : tmpDate.getDate();
|
528
|
+
var m = ((tmpDate.getMonth() + 1) < 10) ? "0" + (tmpDate.getMonth() + 1) : tmpDate.getMonth() + 1;
|
529
|
+
var y = tmpDate.getFullYear();
|
530
|
+
var dt = String(y)+String(m)+String(d);
|
531
|
+
|
532
|
+
if(o.low && parseInt(dt) < parseInt(o.low)) {
|
533
|
+
if(!level) return true;
|
534
|
+
o.date = new Date(o.low.substr(0,4), o.low.substr(4,2)-1, o.low.substr(6,2), 5, 0, 0);
|
535
|
+
return false;
|
536
|
+
};
|
537
|
+
if(o.high && parseInt(dt) > parseInt(o.high)) {
|
538
|
+
if(!level) return true;
|
539
|
+
o.date = new Date( o.high.substr(0,4), o.high.substr(4,2)-1, o.high.substr(6,2), 5, 0, 0);
|
540
|
+
};
|
541
|
+
return false;
|
542
|
+
};
|
543
|
+
o.createButton = function() {
|
544
|
+
if(o.staticPos) { return; };
|
545
|
+
|
546
|
+
var but;
|
547
|
+
|
548
|
+
if(!document.getElementById("fd-but-" + o.id)) {
|
549
|
+
var inp = o.getElem();
|
550
|
+
|
551
|
+
but = document.createElement('a');
|
552
|
+
but.href = "#";
|
553
|
+
|
554
|
+
var span = document.createElement('span');
|
555
|
+
span.appendChild(document.createTextNode(String.fromCharCode( 160 )));
|
556
|
+
|
557
|
+
but.className = "date-picker-control";
|
558
|
+
but.title = (typeof(fdLocale) == "object" && options.locale && fdLocale.titles.length > 5) ? fdLocale.titles[5] : "";
|
559
|
+
|
560
|
+
but.id = "fd-but-" + o.id;
|
561
|
+
but.appendChild(span);
|
562
|
+
|
563
|
+
if(inp.nextSibling) {
|
564
|
+
inp.parentNode.insertBefore(but, inp.nextSibling);
|
565
|
+
} else {
|
566
|
+
inp.parentNode.appendChild(but);
|
567
|
+
};
|
568
|
+
} else {
|
569
|
+
but = document.getElementById("fd-but-" + o.id);
|
570
|
+
};
|
571
|
+
|
572
|
+
but.onclick = but.onpress = function(e) {
|
573
|
+
e = e || window.event;
|
574
|
+
var inpId = this.id.replace('fd-but-','');
|
575
|
+
try { var dp = datePickerController.getDatePicker(inpId); } catch(err) { return false; };
|
576
|
+
|
577
|
+
if(e.type == "press") {
|
578
|
+
var kc = e.keyCode != null ? e.keyCode : e.charCode;
|
579
|
+
if(kc != 13) { return true; };
|
580
|
+
if(dp.visible) {
|
581
|
+
hideAll();
|
582
|
+
return false;
|
583
|
+
};
|
584
|
+
};
|
585
|
+
|
586
|
+
if(!dp.visible) {
|
587
|
+
datePickerController.hideAll(inpId);
|
588
|
+
dp.show();
|
589
|
+
} else {
|
590
|
+
datePickerController.hideAll();
|
591
|
+
};
|
592
|
+
return false;
|
593
|
+
};
|
594
|
+
but = null;
|
595
|
+
},
|
596
|
+
o.create = function() {
|
597
|
+
|
598
|
+
function createTH(details) {
|
599
|
+
var th = document.createElement('th');
|
600
|
+
if(details.thClassName) th.className = details.thClassName;
|
601
|
+
if(details.colspan) {
|
602
|
+
/*@cc_on
|
603
|
+
/*@if (@_win32)
|
604
|
+
th.setAttribute('colSpan',details.colspan);
|
605
|
+
@else @*/
|
606
|
+
th.setAttribute('colspan',details.colspan);
|
607
|
+
/*@end
|
608
|
+
@*/
|
609
|
+
};
|
610
|
+
/*@cc_on
|
611
|
+
/*@if (@_win32)
|
612
|
+
th.unselectable = "on";
|
613
|
+
/*@end@*/
|
614
|
+
return th;
|
615
|
+
};
|
616
|
+
|
617
|
+
function createThAndButton(tr, obj) {
|
618
|
+
for(var i = 0, details; details = obj[i]; i++) {
|
619
|
+
var th = createTH(details);
|
620
|
+
tr.appendChild(th);
|
621
|
+
var but = document.createElement('span');
|
622
|
+
but.className = details.className;
|
623
|
+
but.id = o.id + details.id;
|
624
|
+
but.appendChild(document.createTextNode(details.text));
|
625
|
+
but.title = details.title || "";
|
626
|
+
if(details.onmousedown) but.onmousedown = details.onmousedown;
|
627
|
+
if(details.onclick) but.onclick = details.onclick;
|
628
|
+
if(details.onmouseout) but.onmouseout = details.onmouseout;
|
629
|
+
th.appendChild(but);
|
630
|
+
};
|
631
|
+
};
|
632
|
+
|
633
|
+
/*@cc_on
|
634
|
+
@if(@_jscript_version <= 5.6)
|
635
|
+
if(!document.getElementById("iePopUpHack")) {
|
636
|
+
o.iePopUp = document.createElement('iframe');
|
637
|
+
o.iePopUp.src = "javascript:'<html></html>';";
|
638
|
+
o.iePopUp.setAttribute('className','iehack');
|
639
|
+
o.iePopUp.scrolling="no";
|
640
|
+
o.iePopUp.frameBorder="0";
|
641
|
+
o.iePopUp.name = o.iePopUp.id = "iePopUpHack";
|
642
|
+
document.body.appendChild(o.iePopUp);
|
643
|
+
} else {
|
644
|
+
o.iePopUp = document.getElementById("iePopUpHack");
|
645
|
+
};
|
646
|
+
@end
|
647
|
+
@*/
|
648
|
+
|
649
|
+
if(typeof(fdLocale) == "object" && o.locale) {
|
650
|
+
datePicker.titles = fdLocale.titles;
|
651
|
+
datePicker.months = fdLocale.months;
|
652
|
+
datePicker.fullDay = fdLocale.fullDay;
|
653
|
+
// Optional parameters
|
654
|
+
if(fdLocale.dayAbbr) datePicker.dayAbbr = fdLocale.dayAbbr;
|
655
|
+
if(fdLocale.firstDayOfWeek) o.firstDayOfWeek = o.defaults.firstDayOfWeek = fdLocale.firstDayOfWeek;
|
656
|
+
};
|
657
|
+
|
658
|
+
o.div = document.createElement('div');
|
659
|
+
o.div.style.zIndex = 9999;
|
660
|
+
o.div.id = "fd-"+o.id;
|
661
|
+
o.div.className = "datePicker";
|
662
|
+
|
663
|
+
if(!o.staticPos) {
|
664
|
+
document.getElementsByTagName('body')[0].appendChild(o.div);
|
665
|
+
} else {
|
666
|
+
elem = o.getElem();
|
667
|
+
if(!elem) {
|
668
|
+
o.div = null;
|
669
|
+
return;
|
670
|
+
};
|
671
|
+
o.div.className += " staticDP";
|
672
|
+
o.div.setAttribute("tabIndex", "0");
|
673
|
+
o.div.onfocus = o.events.onfocus;
|
674
|
+
o.div.onblur = o.events.onblur;
|
675
|
+
elem.parentNode.insertBefore(o.div, elem.nextSibling);
|
676
|
+
if(o.hideInput && elem.type && elem.type == "text") elem.setAttribute("type", "hidden");
|
677
|
+
};
|
678
|
+
|
679
|
+
//var nbsp = String.fromCharCode( 160 );
|
680
|
+
var tr, row, col, tableHead, tableBody;
|
681
|
+
|
682
|
+
o.table = document.createElement('table');
|
683
|
+
o.div.appendChild( o.table );
|
684
|
+
|
685
|
+
tableHead = document.createElement('thead');
|
686
|
+
o.table.appendChild( tableHead );
|
687
|
+
|
688
|
+
tr = document.createElement('tr');
|
689
|
+
tableHead.appendChild(tr);
|
690
|
+
|
691
|
+
// Title Bar
|
692
|
+
o.titleBar = createTH({thClassName:"date-picker-title", colspan:7});
|
693
|
+
tr.appendChild( o.titleBar );
|
694
|
+
tr = null;
|
695
|
+
|
696
|
+
var span = document.createElement('span');
|
697
|
+
span.className = "month-display";
|
698
|
+
o.titleBar.appendChild(span);
|
699
|
+
|
700
|
+
span = document.createElement('span');
|
701
|
+
span.className = "year-display";
|
702
|
+
o.titleBar.appendChild(span);
|
703
|
+
|
704
|
+
span = null;
|
705
|
+
|
706
|
+
tr = document.createElement('tr');
|
707
|
+
tableHead.appendChild(tr);
|
708
|
+
|
709
|
+
createThAndButton(tr, [{className:"prev-but", id:"-prev-year-but", text:"\u00AB", title:datePicker.titles[2], onmousedown:function(e) { o.events.incDec(e,0,-1,0); }, onmouseout:o.events.clearTimer },{className:"prev-but", id:"-prev-month-but", text:"\u2039", title:datePicker.titles[0], onmousedown:function(e) { o.events.incDec(e,0,0,-1); }, onmouseout:o.events.clearTimer },{colspan:3, className:"today-but", id:"-today-but", text:datePicker.titles.length > 4 ? datePicker.titles[4] : "Today", onclick:o.events.gotoToday},{className:"next-but", id:"-next-month-but", text:"\u203A", title:datePicker.titles[1], onmousedown:function(e) { o.events.incDec(e,0,0,1); }, onmouseout:o.events.clearTimer },{className:"next-but", id:"-next-year-but", text:"\u00BB", title:datePicker.titles[3], onmousedown:function(e) { o.events.incDec(e,0,1,0); }, onmouseout:o.events.clearTimer }]);
|
710
|
+
|
711
|
+
tableBody = document.createElement('tbody');
|
712
|
+
o.table.appendChild( tableBody );
|
713
|
+
|
714
|
+
for(var rows = 0; rows < 7; rows++) {
|
715
|
+
row = document.createElement('tr');
|
716
|
+
|
717
|
+
if(rows != 0) tableBody.appendChild(row);
|
718
|
+
else tableHead.appendChild(row);
|
719
|
+
|
720
|
+
for(var cols = 0; cols < 7; cols++) {
|
721
|
+
col = (rows == 0) ? document.createElement('th') : document.createElement('td');
|
722
|
+
|
723
|
+
row.appendChild(col);
|
724
|
+
if(rows != 0) {
|
725
|
+
col.appendChild(document.createTextNode(o.nbsp));
|
726
|
+
col.onmouseover = o.events.onmouseover;
|
727
|
+
col.onclick = o.events.onclick;
|
728
|
+
} else {
|
729
|
+
col.className = "date-picker-day-header";
|
730
|
+
col.scope = "col";
|
731
|
+
};
|
732
|
+
col = null;
|
733
|
+
};
|
734
|
+
row = null;
|
735
|
+
};
|
736
|
+
|
737
|
+
// Table headers
|
738
|
+
var but;
|
739
|
+
var ths = o.table.getElementsByTagName('thead')[0].getElementsByTagName('tr')[2].getElementsByTagName('th');
|
740
|
+
for ( var y = 0; y < 7; y++ ) {
|
741
|
+
if(y > 0) {
|
742
|
+
but = document.createElement("span");
|
743
|
+
but.className = "fd-day-header";
|
744
|
+
but.onclick = ths[y].onclick = o.setFirstDayOfWeek;
|
745
|
+
but.appendChild(document.createTextNode(o.nbsp));
|
746
|
+
ths[y].appendChild(but);
|
747
|
+
but = null;
|
748
|
+
} else {
|
749
|
+
ths[y].appendChild(document.createTextNode(o.nbsp));
|
750
|
+
};
|
751
|
+
};
|
752
|
+
|
753
|
+
o.ths = o.table.getElementsByTagName('thead')[0].getElementsByTagName('tr')[2].getElementsByTagName('th');
|
754
|
+
o.trs = o.table.getElementsByTagName('tbody')[0].getElementsByTagName('tr');
|
755
|
+
|
756
|
+
o.updateTableHeaders();
|
757
|
+
|
758
|
+
tableBody = tableHead = tr = createThAndButton = createTH = null;
|
759
|
+
|
760
|
+
if(o.low && o.high && (o.high - o.low < 7)) { o.equaliseDates(); };
|
761
|
+
|
762
|
+
o.created = true;
|
763
|
+
|
764
|
+
if(o.staticPos) {
|
765
|
+
var yyN = document.getElementById(o.id);
|
766
|
+
datePickerController.addEvent(yyN, "change", o.changeHandler);
|
767
|
+
if(o.splitDate) {
|
768
|
+
var mmN = document.getElementById(o.id+'-mm');
|
769
|
+
var ddN = document.getElementById(o.id+'-dd');
|
770
|
+
datePickerController.addEvent(mmN, "change", o.changeHandler);
|
771
|
+
datePickerController.addEvent(ddN, "change", o.changeHandler);
|
772
|
+
};
|
773
|
+
|
774
|
+
o.show();
|
775
|
+
} else {
|
776
|
+
o.createButton();
|
777
|
+
o.resize();
|
778
|
+
o.fade();
|
779
|
+
};
|
780
|
+
};
|
781
|
+
o.changeHandler = function() {
|
782
|
+
o.setDateFromInput();
|
783
|
+
o.updateTable();
|
784
|
+
};
|
785
|
+
o.setDateFromInput = function() {
|
786
|
+
function m2c(val) {
|
787
|
+
return String(val).length < 2 ? "00".substring(0, 2 - String(val).length) + String(val) : val;
|
788
|
+
};
|
789
|
+
|
790
|
+
o.dateSet = null;
|
791
|
+
|
792
|
+
var elem = o.getElem();
|
793
|
+
if(!elem) return;
|
794
|
+
|
795
|
+
if(!o.splitDate) {
|
796
|
+
var date = datePickerController.dateFormat(elem.value, o.format.search(/m-d-y/i) != -1);
|
797
|
+
} else {
|
798
|
+
var mmN = document.getElementById(o.id+'-mm');
|
799
|
+
var ddN = document.getElementById(o.id+'-dd');
|
800
|
+
var tm = parseInt(mmN.tagName.toLowerCase() == "input" ? mmN.value : mmN.options[mmN.selectedIndex].value, 10);
|
801
|
+
var td = parseInt(ddN.tagName.toLowerCase() == "input" ? ddN.value : ddN.options[ddN.selectedIndex].value, 10);
|
802
|
+
var ty = parseInt(elem.tagName.toLowerCase() == "input" ? elem.value : elem.options[elem.selectedIndex || 0].value, 10);
|
803
|
+
var date = datePickerController.dateFormat(tm + "/" + td + "/" + ty, true);
|
804
|
+
};
|
805
|
+
|
806
|
+
var badDate = false;
|
807
|
+
if(!date) {
|
808
|
+
badDate = true;
|
809
|
+
date = String(new Date().getFullYear()) + m2c(new Date().getMonth()+1) + m2c(new Date().getDate());
|
810
|
+
};
|
811
|
+
|
812
|
+
var d,m,y;
|
813
|
+
y = Number(date.substr(0, 4));
|
814
|
+
m = Number(date.substr(4, 2)) - 1;
|
815
|
+
d = Number(date.substr(6, 2));
|
816
|
+
|
817
|
+
var dpm = datePicker.getDaysPerMonth(m, y);
|
818
|
+
if(d > dpm) d = dpm;
|
819
|
+
|
820
|
+
if(new Date(y, m, d) == 'Invalid Date' || new Date(y, m, d) == 'NaN') {
|
821
|
+
badDate = true;
|
822
|
+
o.date = new Date();
|
823
|
+
o.date.setHours(5);
|
824
|
+
return;
|
825
|
+
};
|
826
|
+
|
827
|
+
o.date = new Date(y, m, d);
|
828
|
+
o.date.setHours(5);
|
829
|
+
|
830
|
+
if(!badDate) o.dateSet = new Date(o.date);
|
831
|
+
m2c = null;
|
832
|
+
};
|
833
|
+
o.setSelectIndex = function(elem, indx) {
|
834
|
+
var len = elem.options.length;
|
835
|
+
indx = Number(indx);
|
836
|
+
for(var opt = 0; opt < len; opt++) {
|
837
|
+
if(elem.options[opt].value == indx) {
|
838
|
+
elem.selectedIndex = opt;
|
839
|
+
return;
|
840
|
+
};
|
841
|
+
};
|
842
|
+
},
|
843
|
+
o.returnFormattedDate = function() {
|
844
|
+
|
845
|
+
var elem = o.getElem();
|
846
|
+
if(!elem) return;
|
847
|
+
|
848
|
+
var d = (o.date.getDate() < 10) ? "0" + o.date.getDate() : o.date.getDate();
|
849
|
+
var m = ((o.date.getMonth() + 1) < 10) ? "0" + (o.date.getMonth() + 1) : o.date.getMonth() + 1;
|
850
|
+
var yyyy = o.date.getFullYear();
|
851
|
+
var disabledDates = o.getDisabledDates(yyyy, m);
|
852
|
+
var weekDay = ( o.date.getDay() + 6 ) % 7;
|
853
|
+
|
854
|
+
if(!(o.disableDays[weekDay] || String(yyyy)+m+d in disabledDates)) {
|
855
|
+
|
856
|
+
if(o.splitDate) {
|
857
|
+
var ddE = document.getElementById(o.id+"-dd");
|
858
|
+
var mmE = document.getElementById(o.id+"-mm");
|
859
|
+
|
860
|
+
if(ddE.tagName.toLowerCase() == "input") { ddE.value = d; }
|
861
|
+
else { o.setSelectIndex(ddE, d); /*ddE.selectedIndex = d - 1;*/ };
|
862
|
+
|
863
|
+
if(mmE.tagName.toLowerCase() == "input") { mmE.value = m; }
|
864
|
+
else { o.setSelectIndex(mmE, m); /*mmE.selectedIndex = m - 1;*/ };
|
865
|
+
|
866
|
+
if(elem.tagName.toLowerCase() == "input") elem.value = yyyy;
|
867
|
+
else {
|
868
|
+
o.setSelectIndex(elem, yyyy); /*
|
869
|
+
for(var opt = 0; opt < elem.options.length; opt++) {
|
870
|
+
if(elem.options[opt].value == yyyy) {
|
871
|
+
elem.selectedIndex = opt;
|
872
|
+
break;
|
873
|
+
};
|
874
|
+
};
|
875
|
+
*/
|
876
|
+
};
|
877
|
+
} else {
|
878
|
+
elem.value = o.format.replace('y',yyyy).replace('m',m).replace('d',d).replace(/-/g,o.divider);
|
879
|
+
};
|
880
|
+
if(!elem.type || elem.type && elem.type != "hidden"){ elem.focus(); }
|
881
|
+
if(o.staticPos) {
|
882
|
+
o.dateSet = new Date( o.date );
|
883
|
+
o.updateTable();
|
884
|
+
};
|
885
|
+
|
886
|
+
// Programmatically fire the onchange event
|
887
|
+
if(document.createEvent) {
|
888
|
+
var onchangeEvent = document.createEvent('HTMLEvents');
|
889
|
+
onchangeEvent.initEvent('change', true, false);
|
890
|
+
elem.dispatchEvent(onchangeEvent);
|
891
|
+
} else if(document.createEventObject) {
|
892
|
+
elem.fireEvent('onchange');
|
893
|
+
};
|
894
|
+
};
|
895
|
+
};
|
896
|
+
o.disableTodayButton = function() {
|
897
|
+
var today = new Date();
|
898
|
+
document.getElementById(o.id + "-today-but").className = document.getElementById(o.id + "-today-but").className.replace("fd-disabled", "");
|
899
|
+
if(o.outOfRange(today) || (o.date.getDate() == today.getDate() && o.date.getMonth() == today.getMonth() && o.date.getFullYear() == today.getFullYear())) {
|
900
|
+
document.getElementById(o.id + "-today-but").className += " fd-disabled";
|
901
|
+
document.getElementById(o.id + "-today-but").onclick = null;
|
902
|
+
} else {
|
903
|
+
document.getElementById(o.id + "-today-but").onclick = o.events.gotoToday;
|
904
|
+
};
|
905
|
+
};
|
906
|
+
o.updateTableHeaders = function() {
|
907
|
+
var d, but;
|
908
|
+
var ths = o.ths;
|
909
|
+
for ( var y = 0; y < 7; y++ ) {
|
910
|
+
d = (o.firstDayOfWeek + y) % 7;
|
911
|
+
ths[y].title = datePicker.fullDay[d];
|
912
|
+
|
913
|
+
if(y > 0) {
|
914
|
+
but = ths[y].getElementsByTagName("span")[0];
|
915
|
+
but.removeChild(but.firstChild);
|
916
|
+
but.appendChild(document.createTextNode(datePicker.dayAbbr ? datePicker.dayAbbr[d] : datePicker.fullDay[d].charAt(0)));
|
917
|
+
but.title = datePicker.fullDay[d];
|
918
|
+
but = null;
|
919
|
+
} else {
|
920
|
+
ths[y].removeChild(ths[y].firstChild);
|
921
|
+
ths[y].appendChild(document.createTextNode(datePicker.dayAbbr ? datePicker.dayAbbr[d] : datePicker.fullDay[d].charAt(0)));
|
922
|
+
};
|
923
|
+
};
|
924
|
+
o.updateTable();
|
925
|
+
};
|
926
|
+
|
927
|
+
o.updateTable = function(noCallback) {
|
928
|
+
|
929
|
+
if(o.timerSet) {
|
930
|
+
var d = new Date(o.date);
|
931
|
+
d.setDate( Math.min(d.getDate()+o.dayInc, datePicker.getDaysPerMonth(d.getMonth()+o.monthInc,d.getFullYear()+o.yearInc)) );
|
932
|
+
d.setMonth( d.getMonth() + o.monthInc );
|
933
|
+
d.setFullYear( d.getFullYear() + o.yearInc );
|
934
|
+
o.date = d;
|
935
|
+
};
|
936
|
+
|
937
|
+
if(!noCallback && "onupdate" in datePickerController && typeof(datePickerController.onupdate) == "function") datePickerController.onupdate(o);
|
938
|
+
|
939
|
+
o.outOfRange();
|
940
|
+
o.disableTodayButton();
|
941
|
+
|
942
|
+
// Set the tmpDate to the second day of this month (to avoid daylight savings time madness on Windows)
|
943
|
+
var tmpDate = new Date( o.date.getFullYear(), o.date.getMonth(), 2 );
|
944
|
+
tmpDate.setHours(5);
|
945
|
+
|
946
|
+
var tdm = tmpDate.getMonth();
|
947
|
+
var tdy = tmpDate.getFullYear();
|
948
|
+
|
949
|
+
// Do the disableDates for this year and month
|
950
|
+
var disabledDates = o.getDisabledDates(o.date.getFullYear(), o.date.getMonth() + 1);
|
951
|
+
|
952
|
+
var today = new Date();
|
953
|
+
|
954
|
+
// Previous buttons out of range
|
955
|
+
var b = document.getElementById(o.id + "-prev-year-but");
|
956
|
+
b.className = b.className.replace("fd-disabled", "");
|
957
|
+
if(o.outOfRange(new Date((tdy - 1), Number(tdm), datePicker.getDaysPerMonth(Number(tdm), tdy-1)))) {
|
958
|
+
b.className += " fd-disabled";
|
959
|
+
if(o.yearInc == -1) o.stopTimer();
|
960
|
+
};
|
961
|
+
|
962
|
+
b = document.getElementById(o.id + "-prev-month-but")
|
963
|
+
b.className = b.className.replace("fd-disabled", "");
|
964
|
+
if(o.outOfRange(new Date(tdy, (Number(tdm) - 1), datePicker.getDaysPerMonth(Number(tdm)-1, tdy)))) {
|
965
|
+
b.className += " fd-disabled";
|
966
|
+
if(o.monthInc == -1) o.stopTimer();
|
967
|
+
};
|
968
|
+
|
969
|
+
// Next buttons out of range
|
970
|
+
b= document.getElementById(o.id + "-next-year-but")
|
971
|
+
b.className = b.className.replace("fd-disabled", "");
|
972
|
+
if(o.outOfRange(new Date((tdy + 1), Number(tdm), 1))) {
|
973
|
+
b.className += " fd-disabled";
|
974
|
+
if(o.yearInc == 1) o.stopTimer();
|
975
|
+
};
|
976
|
+
|
977
|
+
b = document.getElementById(o.id + "-next-month-but")
|
978
|
+
b.className = b.className.replace("fd-disabled", "");
|
979
|
+
if(o.outOfRange(new Date(tdy, Number(tdm) + 1, 1))) {
|
980
|
+
b.className += " fd-disabled";
|
981
|
+
if(o.monthInc == 1) o.stopTimer();
|
982
|
+
};
|
983
|
+
|
984
|
+
b = null;
|
985
|
+
|
986
|
+
var cd = o.date.getDate();
|
987
|
+
var cm = o.date.getMonth();
|
988
|
+
var cy = o.date.getFullYear();
|
989
|
+
|
990
|
+
// Title Bar
|
991
|
+
var span = o.titleBar.getElementsByTagName("span");
|
992
|
+
while(span[0].firstChild) span[0].removeChild(span[0].firstChild);
|
993
|
+
while(span[1].firstChild) span[1].removeChild(span[1].firstChild);
|
994
|
+
span[0].appendChild(document.createTextNode(datePicker.months[cm] + o.nbsp));
|
995
|
+
span[1].appendChild(document.createTextNode(cy));
|
996
|
+
|
997
|
+
tmpDate.setDate( 1 );
|
998
|
+
|
999
|
+
var dt, cName, td, tds, i;
|
1000
|
+
var weekDay = ( tmpDate.getDay() + 6 ) % 7;
|
1001
|
+
var firstColIndex = (( (weekDay - o.firstDayOfWeek) + 7 ) % 7) - 1;
|
1002
|
+
var dpm = datePicker.getDaysPerMonth(cm, cy);
|
1003
|
+
|
1004
|
+
var todayD = today.getDate();
|
1005
|
+
var todayM = today.getMonth();
|
1006
|
+
var todayY = today.getFullYear();
|
1007
|
+
|
1008
|
+
var c = "class";
|
1009
|
+
/*@cc_on
|
1010
|
+
@if(@_win32)
|
1011
|
+
c = "className";
|
1012
|
+
@end
|
1013
|
+
@*/
|
1014
|
+
|
1015
|
+
var stub = String(tdy) + (String(tdm+1).length < 2 ? "0" + (tdm+1) : tdm+1);
|
1016
|
+
|
1017
|
+
for(var row = 0; row < 6; row++) {
|
1018
|
+
|
1019
|
+
tds = o.trs[row].getElementsByTagName('td');
|
1020
|
+
|
1021
|
+
for(var col = 0; col < 7; col++) {
|
1022
|
+
|
1023
|
+
td = tds[col];
|
1024
|
+
td.removeChild(td.firstChild);
|
1025
|
+
|
1026
|
+
td.setAttribute("id", "");
|
1027
|
+
td.setAttribute("title", "");
|
1028
|
+
|
1029
|
+
i = (row * 7) + col;
|
1030
|
+
|
1031
|
+
if(i > firstColIndex && i <= (firstColIndex + dpm)) {
|
1032
|
+
dt = i - firstColIndex;
|
1033
|
+
|
1034
|
+
tmpDate.setDate(dt);
|
1035
|
+
td.appendChild(document.createTextNode(dt));
|
1036
|
+
|
1037
|
+
if(o.outOfRange(tmpDate)) {
|
1038
|
+
td.setAttribute(c, "out-of-range");
|
1039
|
+
} else {
|
1040
|
+
|
1041
|
+
cName = [];
|
1042
|
+
weekDay = ( tmpDate.getDay() + 6 ) % 7;
|
1043
|
+
|
1044
|
+
if(dt == todayD && tdm == todayM && tdy == todayY) {
|
1045
|
+
cName.push("date-picker-today");
|
1046
|
+
};
|
1047
|
+
|
1048
|
+
if(o.dateSet != null && o.dateSet.getDate() == dt && o.dateSet.getMonth() == tdm && o.dateSet.getFullYear() == tdy) {
|
1049
|
+
cName.push("date-picker-selected-date");
|
1050
|
+
};
|
1051
|
+
|
1052
|
+
if(o.disableDays[weekDay] || stub + String(dt < 10 ? "0" + dt : dt) in disabledDates) {
|
1053
|
+
cName.push("day-disabled");
|
1054
|
+
} else if(o.highlightDays[weekDay]) {
|
1055
|
+
cName.push("date-picker-highlight");
|
1056
|
+
};
|
1057
|
+
|
1058
|
+
if(cd == dt) {
|
1059
|
+
td.setAttribute("id", o.id + "-date-picker-hover");
|
1060
|
+
cName.push("date-picker-hover");
|
1061
|
+
};
|
1062
|
+
|
1063
|
+
cName.push("dm-" + dt + '-' + (tdm + 1) + " " + " dmy-" + dt + '-' + (tdm + 1) + '-' + tdy);
|
1064
|
+
td.setAttribute(c, cName.join(' '));
|
1065
|
+
td.setAttribute("title", datePicker.months[cm] + o.nbsp + dt + "," + o.nbsp + cy);
|
1066
|
+
};
|
1067
|
+
} else {
|
1068
|
+
td.appendChild(document.createTextNode(o.nbsp));
|
1069
|
+
td.setAttribute(c, "date-picker-unused");
|
1070
|
+
};
|
1071
|
+
};
|
1072
|
+
};
|
1073
|
+
|
1074
|
+
if(o.timerSet) {
|
1075
|
+
o.timerInc = 50 + Math.round(((o.timerInc - 50) / 1.8));
|
1076
|
+
o.timer = window.setTimeout(o.updateTable, o.timerInc);
|
1077
|
+
};
|
1078
|
+
};
|
1079
|
+
o.addKeyboardEvents = function() {
|
1080
|
+
datePickerController.addEvent(document, "keypress", o.events.onkeydown);
|
1081
|
+
/*@cc_on
|
1082
|
+
@if(@_win32)
|
1083
|
+
datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
|
1084
|
+
datePickerController.addEvent(document, "keydown", o.events.onkeydown);
|
1085
|
+
@end
|
1086
|
+
@*/
|
1087
|
+
if(window.devicePixelRatio) {
|
1088
|
+
datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
|
1089
|
+
datePickerController.addEvent(document, "keydown", o.events.onkeydown);
|
1090
|
+
};
|
1091
|
+
};
|
1092
|
+
o.removeKeyboardEvents =function() {
|
1093
|
+
datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
|
1094
|
+
datePickerController.removeEvent(document, "keydown", o.events.onkeydown);
|
1095
|
+
};
|
1096
|
+
o.show = function() {
|
1097
|
+
var elem = o.getElem();
|
1098
|
+
if(!elem || o.visible || elem.disabled) return;
|
1099
|
+
|
1100
|
+
o.reset();
|
1101
|
+
o.setDateFromInput();
|
1102
|
+
o.updateTable();
|
1103
|
+
|
1104
|
+
if(!o.staticPos) o.resize();
|
1105
|
+
|
1106
|
+
datePickerController.addEvent(o.staticPos ? o.table : document, "mousedown", o.events.onmousedown);
|
1107
|
+
|
1108
|
+
if(!o.staticPos) { o.addKeyboardEvents(); };
|
1109
|
+
|
1110
|
+
o.opacityTo = o.noTransparency ? 99 : 90;
|
1111
|
+
o.div.style.display = "block";
|
1112
|
+
/*@cc_on
|
1113
|
+
@if(@_jscript_version <= 5.6)
|
1114
|
+
if(!o.staticPos) o.iePopUp.style.display = "block";
|
1115
|
+
@end
|
1116
|
+
@*/
|
1117
|
+
|
1118
|
+
o.fade();
|
1119
|
+
o.visible = true;
|
1120
|
+
};
|
1121
|
+
o.hide = function() {
|
1122
|
+
if(!o.visible) return;
|
1123
|
+
o.stopTimer();
|
1124
|
+
if(o.staticPos) return;
|
1125
|
+
|
1126
|
+
datePickerController.removeEvent(document, "mousedown", o.events.onmousedown);
|
1127
|
+
datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
|
1128
|
+
o.removeKeyboardEvents();
|
1129
|
+
|
1130
|
+
/*@cc_on
|
1131
|
+
@if(@_jscript_version <= 5.6)
|
1132
|
+
o.iePopUp.style.display = "none";
|
1133
|
+
@end
|
1134
|
+
@*/
|
1135
|
+
|
1136
|
+
o.opacityTo = 0;
|
1137
|
+
o.fade();
|
1138
|
+
o.visible = false;
|
1139
|
+
var elem = o.getElem();
|
1140
|
+
if(!elem.type || elem.type && elem.type != "hidden") { elem.focus(); };
|
1141
|
+
};
|
1142
|
+
o.destroy = function() {
|
1143
|
+
// Cleanup for Internet Explorer
|
1144
|
+
datePickerController.removeEvent(o.staticPos ? o.table : document, "mousedown", o.events.onmousedown);
|
1145
|
+
datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
|
1146
|
+
o.removeKeyboardEvents();
|
1147
|
+
|
1148
|
+
if(o.staticPos) {
|
1149
|
+
var yyN = document.getElementById(o.id);
|
1150
|
+
datePickerController.removeEvent(yyN, "change", o.changeHandler);
|
1151
|
+
if(o.splitDate) {
|
1152
|
+
var mmN = document.getElementById(o.id+'-mm');
|
1153
|
+
var ddN = document.getElementById(o.id+'-dd');
|
1154
|
+
|
1155
|
+
datePickerController.removeEvent(mmN, "change", o.changeHandler);
|
1156
|
+
datePickerController.removeEvent(ddN, "change", o.changeHandler);
|
1157
|
+
};
|
1158
|
+
o.div.onfocus = o.div.onblur = null;
|
1159
|
+
};
|
1160
|
+
|
1161
|
+
var ths = o.table.getElementsByTagName("th");
|
1162
|
+
for(var i = 0, th; th = ths[i]; i++) {
|
1163
|
+
th.onmouseover = th.onmouseout = th.onmousedown = th.onclick = null;
|
1164
|
+
};
|
1165
|
+
|
1166
|
+
var tds = o.table.getElementsByTagName("td");
|
1167
|
+
for(var i = 0, td; td = tds[i]; i++) {
|
1168
|
+
td.onmouseover = td.onclick = null;
|
1169
|
+
};
|
1170
|
+
|
1171
|
+
var butts = o.table.getElementsByTagName("span");
|
1172
|
+
for(var i = 0, butt; butt = butts[i]; i++) {
|
1173
|
+
butt.onmousedown = butt.onclick = butt.onkeypress = null;
|
1174
|
+
};
|
1175
|
+
|
1176
|
+
o.ths = o.trs = null;
|
1177
|
+
|
1178
|
+
clearTimeout(o.fadeTimer);
|
1179
|
+
clearTimeout(o.timer);
|
1180
|
+
o.fadeTimer = o.timer = null;
|
1181
|
+
|
1182
|
+
/*@cc_on
|
1183
|
+
@if(@_jscript_version <= 5.6)
|
1184
|
+
o.iePopUp = null;
|
1185
|
+
@end
|
1186
|
+
@*/
|
1187
|
+
|
1188
|
+
if(!o.staticPos && document.getElementById(o.id.replace(/^fd-/, 'fd-but-'))) {
|
1189
|
+
var butt = document.getElementById(o.id.replace(/^fd-/, 'fd-but-'));
|
1190
|
+
butt.onclick = butt.onpress = null;
|
1191
|
+
};
|
1192
|
+
|
1193
|
+
if(o.div && o.div.parentNode) {
|
1194
|
+
o.div.parentNode.removeChild(o.div);
|
1195
|
+
};
|
1196
|
+
|
1197
|
+
o.titleBar = o.table = o.div = null;
|
1198
|
+
o = null;
|
1199
|
+
};
|
1200
|
+
o.create();
|
1201
|
+
};
|
1202
|
+
|
1203
|
+
datePickerController = function() {
|
1204
|
+
var datePickers = {};
|
1205
|
+
var uniqueId = 0;
|
1206
|
+
|
1207
|
+
var addEvent = function(obj, type, fn) {
|
1208
|
+
if( obj.attachEvent ) {
|
1209
|
+
obj["e"+type+fn] = fn;
|
1210
|
+
obj[type+fn] = function(){obj["e"+type+fn]( window.event );};
|
1211
|
+
obj.attachEvent( "on"+type, obj[type+fn] );
|
1212
|
+
} else {
|
1213
|
+
obj.addEventListener( type, fn, true );
|
1214
|
+
};
|
1215
|
+
};
|
1216
|
+
var removeEvent = function(obj, type, fn) {
|
1217
|
+
try {
|
1218
|
+
if( obj.detachEvent ) {
|
1219
|
+
obj.detachEvent( "on"+type, obj[type+fn] );
|
1220
|
+
obj[type+fn] = null;
|
1221
|
+
} else {
|
1222
|
+
obj.removeEventListener( type, fn, true );
|
1223
|
+
};
|
1224
|
+
} catch(err) {};
|
1225
|
+
};
|
1226
|
+
var hideAll = function(exception) {
|
1227
|
+
var dp;
|
1228
|
+
for(dp in datePickers) {
|
1229
|
+
if(!datePickers[dp].created || datePickers[dp].staticPos) continue;
|
1230
|
+
if(exception && exception == datePickers[dp].id) { continue; };
|
1231
|
+
if(document.getElementById(datePickers[dp].id)) { datePickers[dp].hide(); };
|
1232
|
+
};
|
1233
|
+
};
|
1234
|
+
var cleanUp = function() {
|
1235
|
+
var dp;
|
1236
|
+
for(dp in datePickers) {
|
1237
|
+
if(!document.getElementById(datePickers[dp].id)) {
|
1238
|
+
if(!datePickers[dp].created) continue;
|
1239
|
+
datePickers[dp].destroy();
|
1240
|
+
datePickers[dp] = null;
|
1241
|
+
delete datePickers[dp];
|
1242
|
+
};
|
1243
|
+
};
|
1244
|
+
};
|
1245
|
+
var destroy = function() {
|
1246
|
+
for(dp in datePickers) {
|
1247
|
+
if(!datePickers[dp].created) continue;
|
1248
|
+
datePickers[dp].destroy();
|
1249
|
+
datePickers[dp] = null;
|
1250
|
+
delete datePickers[dp];
|
1251
|
+
};
|
1252
|
+
datePickers = null;
|
1253
|
+
/*@cc_on
|
1254
|
+
@if(@_jscript_version <= 5.6)
|
1255
|
+
if(document.getElementById("iePopUpHack")) {
|
1256
|
+
document.body.removeChild(document.getElementById("iePopUpHack"));
|
1257
|
+
};
|
1258
|
+
@end
|
1259
|
+
@*/
|
1260
|
+
datePicker.script = null;
|
1261
|
+
removeEvent(window, 'load', datePickerController.create);
|
1262
|
+
removeEvent(window, 'unload', datePickerController.destroy);
|
1263
|
+
};
|
1264
|
+
var dateFormat = function(dateIn, favourMDY) {
|
1265
|
+
var dateTest = [
|
1266
|
+
{ regExp:/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/, d:1, m:3, y:5 }, // dmy
|
1267
|
+
{ regExp:/^(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])([- \/.])((\d\d)?\d\d)$/, d:3, m:1, y:5 }, // mdy
|
1268
|
+
{ regExp:/^(\d\d\d\d)([- \/.])(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])$/, d:5, m:3, y:1 } // ymd
|
1269
|
+
];
|
1270
|
+
|
1271
|
+
var start;
|
1272
|
+
var cnt = 0;
|
1273
|
+
while(cnt < 3) {
|
1274
|
+
start = (cnt + (favourMDY ? 4 : 3)) % 3;
|
1275
|
+
if(dateIn.match(dateTest[start].regExp)) {
|
1276
|
+
res = dateIn.match(dateTest[start].regExp);
|
1277
|
+
y = res[dateTest[start].y];
|
1278
|
+
m = res[dateTest[start].m];
|
1279
|
+
d = res[dateTest[start].d];
|
1280
|
+
if(m.length == 1) m = "0" + m;
|
1281
|
+
if(d.length == 1) d = "0" + d;
|
1282
|
+
if(y.length != 4) y = (parseInt(y) < 50) ? '20' + y : '19' + y;
|
1283
|
+
return String(y)+m+d;
|
1284
|
+
};
|
1285
|
+
cnt++;
|
1286
|
+
};
|
1287
|
+
return 0;
|
1288
|
+
};
|
1289
|
+
var joinNodeLists = function() {
|
1290
|
+
if(!arguments.length) { return []; }
|
1291
|
+
var nodeList = [];
|
1292
|
+
for (var i = 0; i < arguments.length; i++) {
|
1293
|
+
for (var j = 0, item; item = arguments[i][j]; j++) {
|
1294
|
+
nodeList[nodeList.length] = item;
|
1295
|
+
};
|
1296
|
+
};
|
1297
|
+
return nodeList;
|
1298
|
+
};
|
1299
|
+
var addDatePicker = function(inpId, options) {
|
1300
|
+
if(!(inpId in datePickers)) {
|
1301
|
+
datePickers[inpId] = new datePicker(options);
|
1302
|
+
};
|
1303
|
+
};
|
1304
|
+
var getDatePicker = function(inpId) {
|
1305
|
+
if(!(inpId in datePickers)) { throw "No datePicker has been created for the form element with an id of '" + inpId.toString() + "'"; };
|
1306
|
+
return datePickers[inpId];
|
1307
|
+
};
|
1308
|
+
var grepRangeLimits = function(sel) {
|
1309
|
+
var range = [];
|
1310
|
+
for(var i = 0; i < sel.options.length; i++) {
|
1311
|
+
if(sel.options[i].value.search(/^\d\d\d\d$/) == -1) { continue; };
|
1312
|
+
if(!range[0] || Number(sel.options[i].value) < range[0]) { range[0] = Number(sel.options[i].value); };
|
1313
|
+
if(!range[1] || Number(sel.options[i].value) > range[1]) { range[1] = Number(sel.options[i].value); };
|
1314
|
+
};
|
1315
|
+
return range;
|
1316
|
+
};
|
1317
|
+
var create = function(inp) {
|
1318
|
+
if(!(typeof document.createElement != "undefined" && typeof document.documentElement != "undefined" && typeof document.documentElement.offsetWidth == "number")) return;
|
1319
|
+
|
1320
|
+
var inputs = (inp && inp.tagName) ? [inp] : joinNodeLists(document.getElementsByTagName('input'), document.getElementsByTagName('select'));
|
1321
|
+
var regExp1 = /disable-days-([1-7]){1,6}/g; // the days to disable
|
1322
|
+
var regExp2 = /no-transparency/g; // do not use transparency effects
|
1323
|
+
var regExp3 = /highlight-days-([1-7]){1,7}/g; // the days to highlight in red
|
1324
|
+
var regExp4 = /range-low-(\d\d\d\d-\d\d-\d\d)/g; // the lowest selectable date
|
1325
|
+
var regExp5 = /range-high-(\d\d\d\d-\d\d-\d\d)/g; // the highest selectable date
|
1326
|
+
var regExp6 = /format-(d-m-y|m-d-y|y-m-d)/g; // the input/output date format
|
1327
|
+
var regExp7 = /divider-(dot|slash|space|dash)/g; // the character used to divide the date
|
1328
|
+
var regExp8 = /no-locale/g; // do not attempt to detect the browser language
|
1329
|
+
var regExp9 = /no-fade/g; // always show the datepicker
|
1330
|
+
var regExp10 = /hide-input/g; // hide the input
|
1331
|
+
|
1332
|
+
for(var i=0, inp; inp = inputs[i]; i++) {
|
1333
|
+
if(inp.className && (inp.className.search(regExp6) != -1 || inp.className.search(/split-date/) != -1) && ((inp.tagName.toLowerCase() == "input" && (inp.type == "text" || inp.type == "hidden")) || inp.tagName.toLowerCase() == "select")) {
|
1334
|
+
|
1335
|
+
if(inp.id && document.getElementById('fd-'+inp.id)) { continue; };
|
1336
|
+
|
1337
|
+
if(!inp.id) { inp.id = "fdDatePicker-" + uniqueId++; };
|
1338
|
+
|
1339
|
+
var options = {
|
1340
|
+
id:inp.id,
|
1341
|
+
low:"",
|
1342
|
+
high:"",
|
1343
|
+
divider:"/",
|
1344
|
+
format:"d-m-y",
|
1345
|
+
highlightDays:[0,0,0,0,0,1,1],
|
1346
|
+
disableDays:[0,0,0,0,0,0,0],
|
1347
|
+
locale:inp.className.search(regExp8) == -1,
|
1348
|
+
splitDate:0,
|
1349
|
+
noTransparency:inp.className.search(regExp2) != -1,
|
1350
|
+
staticPos:inp.className.search(regExp9) != -1,
|
1351
|
+
hideInput:inp.className.search(regExp10) != -1
|
1352
|
+
};
|
1353
|
+
|
1354
|
+
if(!options.staticPos) {
|
1355
|
+
options.hideInput = false;
|
1356
|
+
} else {
|
1357
|
+
options.noTransparency = true;
|
1358
|
+
};
|
1359
|
+
|
1360
|
+
// Split the date into three parts ?
|
1361
|
+
if(inp.className.search(/split-date/) != -1) {
|
1362
|
+
if(document.getElementById(inp.id+'-dd') && document.getElementById(inp.id+'-mm') && document.getElementById(inp.id+'-dd').tagName.search(/input|select/i) != -1 && document.getElementById(inp.id+'-mm').tagName.search(/input|select/i) != -1) {
|
1363
|
+
options.splitDate = 1;
|
1364
|
+
};
|
1365
|
+
};
|
1366
|
+
|
1367
|
+
// Date format(variations of d-m-y)
|
1368
|
+
if(inp.className.search(regExp6) != -1) {
|
1369
|
+
options.format = inp.className.match(regExp6)[0].replace('format-','');
|
1370
|
+
};
|
1371
|
+
|
1372
|
+
// What divider to use, a "/", "-", "." or " "
|
1373
|
+
if(inp.className.search(regExp7) != -1) {
|
1374
|
+
var dividers = { dot:".", space:" ", dash:"-", slash:"/" };
|
1375
|
+
options.divider = (inp.className.search(regExp7) != -1 && inp.className.match(regExp7)[0].replace('divider-','') in dividers) ? dividers[inp.className.match(regExp7)[0].replace('divider-','')] : "/";
|
1376
|
+
};
|
1377
|
+
|
1378
|
+
// The days to highlight
|
1379
|
+
if(inp.className.search(regExp3) != -1) {
|
1380
|
+
var tmp = inp.className.match(regExp3)[0].replace(/highlight-days-/, '');
|
1381
|
+
options.highlightDays = [0,0,0,0,0,0,0];
|
1382
|
+
for(var j = 0; j < tmp.length; j++) {
|
1383
|
+
options.highlightDays[tmp.charAt(j) - 1] = 1;
|
1384
|
+
};
|
1385
|
+
};
|
1386
|
+
|
1387
|
+
// The days to disable
|
1388
|
+
if(inp.className.search(regExp1) != -1) {
|
1389
|
+
var tmp = inp.className.match(regExp1)[0].replace(/disable-days-/, '');
|
1390
|
+
options.disableDays = [0,0,0,0,0,0,0];
|
1391
|
+
for(var j = 0; j < tmp.length; j++) {
|
1392
|
+
options.disableDays[tmp.charAt(j) - 1] = 1;
|
1393
|
+
};
|
1394
|
+
};
|
1395
|
+
|
1396
|
+
// The lower limit
|
1397
|
+
if(inp.className.search(/range-low-today/i) != -1) {
|
1398
|
+
options.low = datePickerController.dateFormat((new Date().getMonth() + 1) + "/" + new Date().getDate() + "/" + new Date().getFullYear(), true);
|
1399
|
+
} else if(inp.className.search(regExp4) != -1) {
|
1400
|
+
options.low = datePickerController.dateFormat(inp.className.match(regExp4)[0].replace(/range-low-/, ''), false);
|
1401
|
+
if(!options.low) {
|
1402
|
+
options.low = '';
|
1403
|
+
};
|
1404
|
+
};
|
1405
|
+
|
1406
|
+
// The higher limit
|
1407
|
+
if(inp.className.search(/range-high-today/i) != -1 && inp.className.search(/range-low-today/i) == -1) {
|
1408
|
+
options.high = datePickerController.dateFormat((new Date().getMonth() + 1) + "/" + new Date().getDate() + "/" + new Date().getFullYear(), true);
|
1409
|
+
} else if(inp.className.search(regExp5) != -1) {
|
1410
|
+
options.high = datePickerController.dateFormat(inp.className.match(regExp5)[0].replace(/range-high-/, ''), false);
|
1411
|
+
if(!options.high) {
|
1412
|
+
options.high = '';
|
1413
|
+
};
|
1414
|
+
};
|
1415
|
+
|
1416
|
+
// Always round lower & higher limits if a selectList involved
|
1417
|
+
if(inp.tagName.search(/select/i) != -1) {
|
1418
|
+
var range = grepRangeLimits(inp);
|
1419
|
+
options.low = options.low ? range[0] + String(options.low).substr(4,4) : datePickerController.dateFormat(range[0] + "/01/01");
|
1420
|
+
options.high = options.high ? range[1] + String(options.low).substr(4,4) : datePickerController.dateFormat(range[1] + "/12/31");
|
1421
|
+
};
|
1422
|
+
|
1423
|
+
addDatePicker(inp.id, options);
|
1424
|
+
};
|
1425
|
+
};
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
return {
|
1429
|
+
addEvent:addEvent,
|
1430
|
+
removeEvent:removeEvent,
|
1431
|
+
create:create,
|
1432
|
+
destroy:destroy,
|
1433
|
+
cleanUp:cleanUp,
|
1434
|
+
addDatePicker:addDatePicker,
|
1435
|
+
getDatePicker:getDatePicker,
|
1436
|
+
dateFormat:dateFormat,
|
1437
|
+
datePickers:datePickers,
|
1438
|
+
hideAll:hideAll
|
1439
|
+
};
|
1440
|
+
}();
|
1441
|
+
|
1442
|
+
})();
|
1443
|
+
|
1444
|
+
datePickerController.addEvent(window, 'load', datePickerController.create);
|
1445
|
+
datePickerController.addEvent(window, 'unload', datePickerController.destroy);
|