spree 0.11.0 → 0.11.1
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 +457 -425
- data/{README.markdown → README.md} +4 -0
- data/Rakefile +2 -2
- data/app/controllers/admin/adjustments_controller.rb +8 -9
- data/app/controllers/admin/checkouts_controller.rb +10 -2
- data/app/controllers/admin/line_items_controller.rb +0 -1
- data/app/controllers/admin/payments_controller.rb +8 -7
- data/app/controllers/admin/shipments_controller.rb +1 -1
- data/app/controllers/checkouts_controller.rb +16 -5
- data/app/controllers/spree/base_controller.rb +2 -2
- data/app/helpers/admin/navigation_helper.rb +1 -1
- data/app/helpers/checkouts_helper.rb +1 -1
- data/app/helpers/products_helper.rb +1 -1
- data/app/helpers/taxons_helper.rb +1 -1
- data/app/models/address.rb +9 -0
- data/app/models/checkout.rb +13 -7
- data/app/models/creditcard.rb +2 -2
- data/app/models/model_cache_cleaner.rb +13 -0
- data/app/models/order.rb +6 -8
- data/app/models/payment.rb +18 -17
- data/app/models/payment_method.rb +2 -2
- data/app/models/product.rb +1 -2
- data/app/models/return_authorization.rb +3 -1
- data/app/models/shipping_method.rb +16 -6
- data/app/models/zone.rb +34 -3
- data/config/database.yml +4 -21
- data/config/environment.rb +6 -6
- data/config/environments/test.rb +1 -0
- data/config/locales/en_spree.yml +10 -9
- data/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
- data/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
- data/db/sample/orders.yml +3 -3
- data/db/sample/payments.rb +6 -5
- data/db/sample/products.rb +2 -2
- data/db/schema.rb +9 -27
- data/lib/easy_role_requirement_system.rb +1 -1
- data/lib/generators/extension/extension_generator.rb +7 -22
- data/lib/generators/extension/templates/functional_test.rb +1 -1
- data/lib/generators/extension/templates/tasks.rake +2 -2
- data/lib/generators/extension_controller/extension_controller_generator.rb +1 -1
- data/lib/generators/extension_model/extension_model_generator.rb +1 -1
- data/lib/generators/instance/instance_generator.rb +24 -24
- data/lib/generators/instance/templates/instance_generate +1 -1
- data/lib/generators/theme/theme_generator.rb +6 -10
- data/lib/plugins/extension_patches/lib/asset_copy.rb +2 -2
- data/lib/spree.rb +1 -1
- data/lib/spree/initializer.rb +15 -15
- data/lib/spree/search.rb +1 -1
- data/lib/tasks/cucumber.rake +1 -1
- data/lib/tasks/extensions.rake +6 -6
- data/lib/tasks/framework.rake +1 -1
- data/lib/tasks/instance.rake +6 -6
- data/lib/validation_group.rb +16 -16
- data/script/extension +2 -2
- data/test/functional/products_controller_test.rb +13 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/checkout_test.rb +18 -9
- data/vendor/extensions/README +1 -1
- data/vendor/extensions/api/Rakefile +2 -2
- data/vendor/extensions/api/lib/tasks/api_extension_tasks.rake +2 -2
- data/vendor/extensions/overview_dashboard/Rakefile +2 -2
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +5 -5
- data/vendor/extensions/overview_dashboard/lib/tasks/overview_dashboard_extension_tasks.rake +2 -2
- data/vendor/extensions/payment_gateway/Rakefile +2 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +6 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/braintree.rb +88 -0
- data/vendor/extensions/payment_gateway/config/locales/en.yml +2 -1
- data/vendor/extensions/payment_gateway/lib/active_merchant/billing/authorize_net_cim.rb +4 -2
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +1 -1
- data/vendor/extensions/payment_gateway/lib/tasks/payment_gateway_extension_tasks.rake +2 -2
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +1 -0
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +2 -1
- data/vendor/extensions/payment_gateway/test/unit/braintree_test.rb +200 -0
- data/vendor/extensions/theme_default/Rakefile +2 -2
- data/vendor/extensions/theme_default/app/stylesheets/_buttons.less +7 -2
- data/vendor/extensions/theme_default/app/stylesheets/_colors.less +1 -1
- data/vendor/extensions/theme_default/app/stylesheets/_layout.less +7 -2
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +3 -4
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_additional_field.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_calculator_fields.html.erb +6 -6
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +13 -13
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/index.html.erb +2 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_address.html.erb +7 -9
- data/vendor/extensions/theme_default/app/views/checkouts/_payment.html.erb +4 -4
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +4 -4
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +36 -35
- data/vendor/extensions/theme_default/app/views/products/_thumbnails.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/shared/_head.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/states/index.js.erb +1 -1
- data/vendor/extensions/theme_default/lib/tasks/theme_default_extension_tasks.rake +2 -2
- data/vendor/extensions/theme_default/public/favicon.ico +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/calculator.js +3 -1
- data/vendor/extensions/theme_default/public/javascripts/checkout.js +44 -18
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +29 -24
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +9 -7
- data/vendor/plugins/attribute_fu/init.rb +2 -2
- data/vendor/plugins/delegate_belongs_to/spec/spec_helper.rb +1 -1
- data/vendor/plugins/jrails/install.rb +1 -1
- data/vendor/plugins/jrails/lib/tasks/jrails.rake +2 -2
- data/vendor/plugins/jrails_auto_complete/install.rb +1 -1
- data/vendor/plugins/jrails_auto_complete/uninstall.rb +1 -1
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb +1 -1
- metadata +59 -659
- data/lib/generators/extension/templates/RSpecRakefile +0 -137
- data/lib/generators/extension/templates/spec.opts +0 -6
- data/lib/generators/extension/templates/spec_helper.rb +0 -37
- data/lib/generators/extension_controller/templates/controller_spec.rb +0 -23
- data/lib/generators/extension_controller/templates/helper_spec.rb +0 -11
- data/lib/generators/extension_controller/templates/view_spec.rb +0 -12
- data/lib/generators/extension_model/templates/model_spec.rb +0 -11
- data/lib/tasks/rspec.rake +0 -182
- data/public/images/add-to-cart.png +0 -0
- data/public/images/admin/bg/active-tab.png +0 -0
- data/public/images/admin/bg/admin_tab_back.png +0 -0
- data/public/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/public/images/admin/bg/content-back-blue.png +0 -0
- data/public/images/admin/bg/content-back-green.png +0 -0
- data/public/images/admin/bg/content-back.png +0 -0
- data/public/images/admin/bg/flash-error.png +0 -0
- data/public/images/admin/bg/flash-notice.png +0 -0
- data/public/images/admin/bg/green-stripes.gif +0 -0
- data/public/images/admin/bg/green-stripes.png +0 -0
- data/public/images/admin/bg/grid_header_back.png +0 -0
- data/public/images/admin/bg/grid_header_back_green.png +0 -0
- data/public/images/admin/bg/header-bg.png +0 -0
- data/public/images/admin/bg/header_bg.jpg +0 -0
- data/public/images/admin/bg/menu-current.png +0 -0
- data/public/images/admin/bg/red-stripes.gif +0 -0
- data/public/images/admin/bg/red-stripes.png +0 -0
- data/public/images/admin/bg/spree_50.png +0 -0
- data/public/images/admin/bg/subnav-divider.png +0 -0
- data/public/images/admin/bg/subnav.png +0 -0
- data/public/images/admin/bg/tab-back.png +0 -0
- data/public/images/admin/buttons/blue/left_01.png +0 -0
- data/public/images/admin/buttons/blue/right_01.png +0 -0
- data/public/images/admin/buttons/drag-handle-green.png +0 -0
- data/public/images/admin/buttons/green/left_01.png +0 -0
- data/public/images/admin/buttons/green/right_01.png +0 -0
- data/public/images/admin/buttons/left_01.png +0 -0
- data/public/images/admin/buttons/left_01_small.png +0 -0
- data/public/images/admin/buttons/orange/left_03.png +0 -0
- data/public/images/admin/buttons/orange/right_03.png +0 -0
- data/public/images/admin/buttons/right_01.png +0 -0
- data/public/images/admin/buttons/right_01_small.png +0 -0
- data/public/images/admin/icons/16x16/1.png +0 -0
- data/public/images/admin/icons/16x16/10.png +0 -0
- data/public/images/admin/icons/16x16/2.png +0 -0
- data/public/images/admin/icons/16x16/3.png +0 -0
- data/public/images/admin/icons/16x16/4.png +0 -0
- data/public/images/admin/icons/16x16/5.png +0 -0
- data/public/images/admin/icons/16x16/6.png +0 -0
- data/public/images/admin/icons/16x16/7.png +0 -0
- data/public/images/admin/icons/16x16/8.png +0 -0
- data/public/images/admin/icons/16x16/9.png +0 -0
- data/public/images/admin/icons/32x32/1.png +0 -0
- data/public/images/admin/icons/32x32/10.png +0 -0
- data/public/images/admin/icons/32x32/11.png +0 -0
- data/public/images/admin/icons/32x32/2.png +0 -0
- data/public/images/admin/icons/32x32/3.png +0 -0
- data/public/images/admin/icons/32x32/4.png +0 -0
- data/public/images/admin/icons/32x32/5.png +0 -0
- data/public/images/admin/icons/32x32/6.png +0 -0
- data/public/images/admin/icons/32x32/7.png +0 -0
- data/public/images/admin/icons/32x32/8.png +0 -0
- data/public/images/admin/icons/32x32/9.png +0 -0
- data/public/images/admin/icons/accept.png +0 -0
- data/public/images/admin/icons/add.gif +0 -0
- data/public/images/admin/icons/add.png +0 -0
- data/public/images/admin/icons/arrow-down.gif +0 -0
- data/public/images/admin/icons/cross.png +0 -0
- data/public/images/admin/icons/delete.gif +0 -0
- data/public/images/admin/icons/delete.png +0 -0
- data/public/images/admin/icons/drag.gif +0 -0
- data/public/images/admin/icons/edit.gif +0 -0
- data/public/images/admin/icons/edit.png +0 -0
- data/public/images/admin/icons/email.png +0 -0
- data/public/images/admin/icons/error.png +0 -0
- data/public/images/admin/icons/exclamation.png +0 -0
- data/public/images/admin/icons/feed.png +0 -0
- data/public/images/admin/icons/pdf.png +0 -0
- data/public/images/admin/icons/reorder.gif +0 -0
- data/public/images/admin/icons/search.gif +0 -0
- data/public/images/admin/icons/send-email.png +0 -0
- data/public/images/admin/icons/stop.png +0 -0
- data/public/images/admin/icons/tick.png +0 -0
- data/public/images/admin/icons/up.gif +0 -0
- data/public/images/admin/icons/xls.png +0 -0
- data/public/images/admin/tabs/off-left.png +0 -0
- data/public/images/admin/tabs/off-right.png +0 -0
- data/public/images/admin/tabs/on-left.png +0 -0
- data/public/images/admin/tabs/on-right.png +0 -0
- data/public/images/ajax_loader.gif +0 -0
- data/public/images/amex_cid.gif +0 -0
- data/public/images/bg-button-hover.png +0 -0
- data/public/images/bg-button-pressed.png +0 -0
- data/public/images/bg-button.gif +0 -0
- data/public/images/bg-button.png +0 -0
- data/public/images/blue/left_01.png +0 -0
- data/public/images/blue/right_01.png +0 -0
- data/public/images/body-back.png +0 -0
- data/public/images/bottom_shine.png +0 -0
- data/public/images/breadcrumb.gif +0 -0
- data/public/images/button-dark-hover.png +0 -0
- data/public/images/button-dark.png +0 -0
- data/public/images/buttons/bg-button-hover.png +0 -0
- data/public/images/buttons/bg-button-pressed.png +0 -0
- data/public/images/buttons/bg-button.gif +0 -0
- data/public/images/buttons/bg-button.png +0 -0
- data/public/images/buttons/blue/left_01.png +0 -0
- data/public/images/buttons/blue/right_01.png +0 -0
- data/public/images/buttons/button-dark-hover.png +0 -0
- data/public/images/buttons/button-dark.png +0 -0
- data/public/images/buttons/drag-handle-green.png +0 -0
- data/public/images/buttons/green/left_01.png +0 -0
- data/public/images/buttons/green/right_01.png +0 -0
- data/public/images/buttons/left_01.png +0 -0
- data/public/images/buttons/left_01_small.png +0 -0
- data/public/images/buttons/orange/left_03.png +0 -0
- data/public/images/buttons/orange/right_03.png +0 -0
- data/public/images/buttons/right_01.png +0 -0
- data/public/images/buttons/right_01_small.png +0 -0
- data/public/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/public/images/buttons/top-shine.png +0 -0
- data/public/images/calendar_date_select/calendar.gif +0 -0
- data/public/images/cart-empty.png +0 -0
- data/public/images/cart-empty_x32.png +0 -0
- data/public/images/cart-full.png +0 -0
- data/public/images/cart-full_x32.png +0 -0
- data/public/images/checkout.png +0 -0
- data/public/images/creditcard.gif +0 -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/discover_cid.gif +0 -0
- data/public/images/drag-handle-green.png +0 -0
- data/public/images/flags/ad.png +0 -0
- data/public/images/flags/ae.png +0 -0
- data/public/images/flags/af.png +0 -0
- data/public/images/flags/ag.png +0 -0
- data/public/images/flags/ai.png +0 -0
- data/public/images/flags/al.png +0 -0
- data/public/images/flags/am.png +0 -0
- data/public/images/flags/an.png +0 -0
- data/public/images/flags/ao.png +0 -0
- data/public/images/flags/ar.png +0 -0
- data/public/images/flags/as.png +0 -0
- data/public/images/flags/at.png +0 -0
- data/public/images/flags/au.png +0 -0
- data/public/images/flags/aw.png +0 -0
- data/public/images/flags/ax.png +0 -0
- data/public/images/flags/az.png +0 -0
- data/public/images/flags/ba.png +0 -0
- data/public/images/flags/bb.png +0 -0
- data/public/images/flags/bd.png +0 -0
- data/public/images/flags/be.png +0 -0
- data/public/images/flags/bf.png +0 -0
- data/public/images/flags/bg.png +0 -0
- data/public/images/flags/bh.png +0 -0
- data/public/images/flags/bi.png +0 -0
- data/public/images/flags/bj.png +0 -0
- data/public/images/flags/bm.png +0 -0
- data/public/images/flags/bn.png +0 -0
- data/public/images/flags/bo.png +0 -0
- data/public/images/flags/br.png +0 -0
- data/public/images/flags/bs.png +0 -0
- data/public/images/flags/bt.png +0 -0
- data/public/images/flags/bv.png +0 -0
- data/public/images/flags/bw.png +0 -0
- data/public/images/flags/by.png +0 -0
- data/public/images/flags/bz.png +0 -0
- data/public/images/flags/ca.png +0 -0
- data/public/images/flags/catalonia.png +0 -0
- data/public/images/flags/cc.png +0 -0
- data/public/images/flags/cd.png +0 -0
- data/public/images/flags/cf.png +0 -0
- data/public/images/flags/cg.png +0 -0
- data/public/images/flags/ch.png +0 -0
- data/public/images/flags/ci.png +0 -0
- data/public/images/flags/ck.png +0 -0
- data/public/images/flags/cl.png +0 -0
- data/public/images/flags/cm.png +0 -0
- data/public/images/flags/cn.png +0 -0
- data/public/images/flags/co.png +0 -0
- data/public/images/flags/cr.png +0 -0
- data/public/images/flags/cs.png +0 -0
- data/public/images/flags/cu.png +0 -0
- data/public/images/flags/cv.png +0 -0
- data/public/images/flags/cx.png +0 -0
- data/public/images/flags/cy.png +0 -0
- data/public/images/flags/cz.png +0 -0
- data/public/images/flags/da.png +0 -0
- data/public/images/flags/de.png +0 -0
- data/public/images/flags/de_CH.png +0 -0
- data/public/images/flags/dj.png +0 -0
- data/public/images/flags/dm.png +0 -0
- data/public/images/flags/do.png +0 -0
- data/public/images/flags/dz.png +0 -0
- data/public/images/flags/ec.png +0 -0
- data/public/images/flags/ee.png +0 -0
- data/public/images/flags/eg.png +0 -0
- data/public/images/flags/eh.png +0 -0
- data/public/images/flags/england.png +0 -0
- data/public/images/flags/er.png +0 -0
- data/public/images/flags/es.png +0 -0
- data/public/images/flags/et.png +0 -0
- data/public/images/flags/europeanunion.png +0 -0
- data/public/images/flags/fam.png +0 -0
- data/public/images/flags/fi.png +0 -0
- data/public/images/flags/fj.png +0 -0
- data/public/images/flags/fk.png +0 -0
- data/public/images/flags/fm.png +0 -0
- data/public/images/flags/fo.png +0 -0
- data/public/images/flags/fr.png +0 -0
- data/public/images/flags/ga.png +0 -0
- data/public/images/flags/gb.png +0 -0
- data/public/images/flags/gd.png +0 -0
- data/public/images/flags/ge.png +0 -0
- data/public/images/flags/gf.png +0 -0
- data/public/images/flags/gh.png +0 -0
- data/public/images/flags/gi.png +0 -0
- data/public/images/flags/gl.png +0 -0
- data/public/images/flags/gm.png +0 -0
- data/public/images/flags/gn.png +0 -0
- data/public/images/flags/gp.png +0 -0
- data/public/images/flags/gq.png +0 -0
- data/public/images/flags/gr.png +0 -0
- data/public/images/flags/gs.png +0 -0
- data/public/images/flags/gt.png +0 -0
- data/public/images/flags/gu.png +0 -0
- data/public/images/flags/gw.png +0 -0
- data/public/images/flags/gy.png +0 -0
- data/public/images/flags/hk.png +0 -0
- data/public/images/flags/hm.png +0 -0
- data/public/images/flags/hn.png +0 -0
- data/public/images/flags/hr.png +0 -0
- data/public/images/flags/ht.png +0 -0
- data/public/images/flags/hu.png +0 -0
- data/public/images/flags/id.png +0 -0
- data/public/images/flags/ie.png +0 -0
- data/public/images/flags/il.png +0 -0
- data/public/images/flags/in.png +0 -0
- data/public/images/flags/io.png +0 -0
- data/public/images/flags/iq.png +0 -0
- data/public/images/flags/ir.png +0 -0
- data/public/images/flags/is.png +0 -0
- data/public/images/flags/it.png +0 -0
- data/public/images/flags/jm.png +0 -0
- data/public/images/flags/jo.png +0 -0
- data/public/images/flags/jp.png +0 -0
- data/public/images/flags/ke.png +0 -0
- data/public/images/flags/kg.png +0 -0
- data/public/images/flags/kh.png +0 -0
- data/public/images/flags/ki.png +0 -0
- data/public/images/flags/km.png +0 -0
- data/public/images/flags/kn.png +0 -0
- data/public/images/flags/kp.png +0 -0
- data/public/images/flags/kr.png +0 -0
- data/public/images/flags/kw.png +0 -0
- data/public/images/flags/ky.png +0 -0
- data/public/images/flags/kz.png +0 -0
- data/public/images/flags/la.png +0 -0
- data/public/images/flags/lb.png +0 -0
- data/public/images/flags/lc.png +0 -0
- data/public/images/flags/li.png +0 -0
- data/public/images/flags/lk.png +0 -0
- data/public/images/flags/lr.png +0 -0
- data/public/images/flags/ls.png +0 -0
- data/public/images/flags/lt.png +0 -0
- data/public/images/flags/lu.png +0 -0
- data/public/images/flags/lv.png +0 -0
- data/public/images/flags/ly.png +0 -0
- data/public/images/flags/ma.png +0 -0
- data/public/images/flags/mc.png +0 -0
- data/public/images/flags/md.png +0 -0
- data/public/images/flags/me.png +0 -0
- data/public/images/flags/mg.png +0 -0
- data/public/images/flags/mh.png +0 -0
- data/public/images/flags/mk.png +0 -0
- data/public/images/flags/ml.png +0 -0
- data/public/images/flags/mm.png +0 -0
- data/public/images/flags/mn.png +0 -0
- data/public/images/flags/mo.png +0 -0
- data/public/images/flags/mp.png +0 -0
- data/public/images/flags/mq.png +0 -0
- data/public/images/flags/mr.png +0 -0
- data/public/images/flags/ms.png +0 -0
- data/public/images/flags/mt.png +0 -0
- data/public/images/flags/mu.png +0 -0
- data/public/images/flags/mv.png +0 -0
- data/public/images/flags/mw.png +0 -0
- data/public/images/flags/mx.png +0 -0
- data/public/images/flags/my.png +0 -0
- data/public/images/flags/mz.png +0 -0
- data/public/images/flags/na.png +0 -0
- data/public/images/flags/nc.png +0 -0
- data/public/images/flags/ne.png +0 -0
- data/public/images/flags/nf.png +0 -0
- data/public/images/flags/ng.png +0 -0
- data/public/images/flags/ni.png +0 -0
- data/public/images/flags/nl.png +0 -0
- data/public/images/flags/no.png +0 -0
- data/public/images/flags/np.png +0 -0
- data/public/images/flags/nr.png +0 -0
- data/public/images/flags/nu.png +0 -0
- data/public/images/flags/nz.png +0 -0
- data/public/images/flags/om.png +0 -0
- data/public/images/flags/pa.png +0 -0
- data/public/images/flags/pe.png +0 -0
- data/public/images/flags/pf.png +0 -0
- data/public/images/flags/pg.png +0 -0
- data/public/images/flags/ph.png +0 -0
- data/public/images/flags/pk.png +0 -0
- data/public/images/flags/pl.png +0 -0
- data/public/images/flags/pm.png +0 -0
- data/public/images/flags/pn.png +0 -0
- data/public/images/flags/pr.png +0 -0
- data/public/images/flags/ps.png +0 -0
- data/public/images/flags/pt.png +0 -0
- data/public/images/flags/pw.png +0 -0
- data/public/images/flags/py.png +0 -0
- data/public/images/flags/qa.png +0 -0
- data/public/images/flags/re.png +0 -0
- data/public/images/flags/ro.png +0 -0
- data/public/images/flags/rs.png +0 -0
- data/public/images/flags/ru.png +0 -0
- data/public/images/flags/rw.png +0 -0
- data/public/images/flags/sa.png +0 -0
- data/public/images/flags/sb.png +0 -0
- data/public/images/flags/sc.png +0 -0
- data/public/images/flags/scotland.png +0 -0
- data/public/images/flags/sd.png +0 -0
- data/public/images/flags/se.png +0 -0
- data/public/images/flags/sg.png +0 -0
- data/public/images/flags/sh.png +0 -0
- data/public/images/flags/si.png +0 -0
- data/public/images/flags/sj.png +0 -0
- data/public/images/flags/sk.png +0 -0
- data/public/images/flags/sl.png +0 -0
- data/public/images/flags/sm.png +0 -0
- data/public/images/flags/sn.png +0 -0
- data/public/images/flags/so.png +0 -0
- data/public/images/flags/sr.png +0 -0
- data/public/images/flags/st.png +0 -0
- data/public/images/flags/sv.png +0 -0
- data/public/images/flags/sy.png +0 -0
- data/public/images/flags/sz.png +0 -0
- data/public/images/flags/tc.png +0 -0
- data/public/images/flags/td.png +0 -0
- data/public/images/flags/tf.png +0 -0
- data/public/images/flags/tg.png +0 -0
- data/public/images/flags/th.png +0 -0
- data/public/images/flags/tj.png +0 -0
- data/public/images/flags/tk.png +0 -0
- data/public/images/flags/tl.png +0 -0
- data/public/images/flags/tm.png +0 -0
- data/public/images/flags/tn.png +0 -0
- data/public/images/flags/to.png +0 -0
- data/public/images/flags/tr.png +0 -0
- data/public/images/flags/tt.png +0 -0
- data/public/images/flags/tv.png +0 -0
- data/public/images/flags/tw.png +0 -0
- data/public/images/flags/tz.png +0 -0
- data/public/images/flags/ua.png +0 -0
- data/public/images/flags/ug.png +0 -0
- data/public/images/flags/um.png +0 -0
- data/public/images/flags/us.png +0 -0
- data/public/images/flags/uy.png +0 -0
- data/public/images/flags/uz.png +0 -0
- data/public/images/flags/va.png +0 -0
- data/public/images/flags/vc.png +0 -0
- data/public/images/flags/ve.png +0 -0
- data/public/images/flags/vg.png +0 -0
- data/public/images/flags/vi.png +0 -0
- data/public/images/flags/vn.png +0 -0
- data/public/images/flags/vu.png +0 -0
- data/public/images/flags/wales.png +0 -0
- data/public/images/flags/wf.png +0 -0
- data/public/images/flags/ws.png +0 -0
- data/public/images/flags/ye.png +0 -0
- data/public/images/flags/yt.png +0 -0
- data/public/images/flags/za.png +0 -0
- data/public/images/flags/zm.png +0 -0
- data/public/images/flags/zw.png +0 -0
- data/public/images/green/left_01.png +0 -0
- data/public/images/green/right_01.png +0 -0
- data/public/images/grid.png +0 -0
- data/public/images/left_01.png +0 -0
- data/public/images/left_01_small.png +0 -0
- data/public/images/master_cid.jpg +0 -0
- data/public/images/menu-current.png +0 -0
- data/public/images/menu-hover.png +0 -0
- data/public/images/noimage/mini.jpg +0 -0
- data/public/images/noimage/product.jpg +0 -0
- data/public/images/noimage/small.jpg +0 -0
- data/public/images/openid-inputicon.gif +0 -0
- data/public/images/orange/left_03.png +0 -0
- data/public/images/orange/right_03.png +0 -0
- data/public/images/progress.gif +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/right_01.png +0 -0
- data/public/images/right_01_small.png +0 -0
- data/public/images/separator.png +0 -0
- data/public/images/shadow-top.png +0 -0
- data/public/images/shadow_top.png +0 -0
- data/public/images/spinner.gif +0 -0
- data/public/images/spree.jpg +0 -0
- data/public/images/spree/progress.gif +0 -0
- data/public/images/spree/spinner.gif +0 -0
- data/public/images/spree/spree.jpg +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/images/steps/1.png +0 -0
- data/public/images/steps/1_small.png +0 -0
- data/public/images/steps/2.png +0 -0
- data/public/images/steps/2_small.png +0 -0
- data/public/images/steps/3.png +0 -0
- data/public/images/steps/3_small.png +0 -0
- data/public/images/steps/4.png +0 -0
- data/public/images/steps/4_small.png +0 -0
- data/public/images/steps/5.png +0 -0
- data/public/images/steps/5_small.png +0 -0
- data/public/images/steps/6.png +0 -0
- data/public/images/steps/6_small.png +0 -0
- data/public/images/sxsw-ribbon-v1.png +0 -0
- data/public/images/tab_bottom.gif +0 -0
- data/public/images/tile-header.png +0 -0
- data/public/images/tile-slider.png +0 -0
- data/public/images/top-shine.png +0 -0
- data/public/images/tree-nav-icons/bullet.gif +0 -0
- data/public/images/tree-nav-icons/minus.gif +0 -0
- data/public/images/tree-nav-icons/plus.gif +0 -0
- data/public/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/public/images/update.png +0 -0
- data/public/images/visa_cid.gif +0 -0
- data/public/images/wrapper-back-2.png +0 -0
- data/public/images/wrapper-back.png +0 -0
- data/public/images/yui-menubaritem_submenuindicator.png +0 -0
- data/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/public/images/yui-menuitem_checkbox.png +0 -0
- data/public/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/public/images/yui-menuitem_submenuindicator.png +0 -0
- data/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/public/images/yui-sprite.png +0 -0
- data/public/javascripts/additional-methods.js +0 -236
- data/public/javascripts/admin/address_states.js +0 -25
- data/public/javascripts/admin/checkouts/edit.js +0 -129
- data/public/javascripts/admin/orders/edit.js +0 -96
- data/public/javascripts/admin/orders/edit_form.js +0 -17
- data/public/javascripts/admin/payments/new.js +0 -9
- data/public/javascripts/admin/unobtrusive_handlers.js +0 -15
- data/public/javascripts/calculator.js +0 -13
- data/public/javascripts/checkout.js +0 -65
- data/public/javascripts/dashboard.js +0 -143
- data/public/javascripts/datepicker.js +0 -1445
- data/public/javascripts/gateway.js +0 -13
- data/public/javascripts/jqPlot/excanvas.min.js +0 -1
- data/public/javascripts/jqPlot/jquery.jqplot.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +0 -14
- data/public/javascripts/jquery-1.3.2.min.js +0 -19
- data/public/javascripts/jquery-and-plugins.js +0 -36
- data/public/javascripts/jquery-ui.js +0 -188
- data/public/javascripts/jquery.alerts/images/help.gif +0 -0
- data/public/javascripts/jquery.alerts/images/important.gif +0 -0
- data/public/javascripts/jquery.alerts/images/info.gif +0 -0
- data/public/javascripts/jquery.alerts/images/title.gif +0 -0
- data/public/javascripts/jquery.alerts/jquery.alerts.css +0 -57
- data/public/javascripts/jquery.alerts/jquery.alerts.js +0 -235
- data/public/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -30
- data/public/javascripts/jquery.autocomplete.min.js +0 -13
- data/public/javascripts/jquery.js +0 -19
- data/public/javascripts/jquery.suggest.js +0 -276
- data/public/javascripts/jquery.template.js +0 -255
- data/public/javascripts/jquery.validate.min.js +0 -16
- data/public/javascripts/jrails.autocomplete.js +0 -274
- data/public/javascripts/jrails.js +0 -1
- data/public/javascripts/jsTree/jquery.tree.js +0 -2058
- data/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +0 -129
- data/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/public/javascripts/jsTree/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 +0 -34
- data/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
- data/public/javascripts/lang/af.js +0 -40
- data/public/javascripts/lang/ar.js +0 -50
- data/public/javascripts/lang/de.js +0 -40
- data/public/javascripts/lang/du.js +0 -40
- data/public/javascripts/lang/en.js +0 -42
- data/public/javascripts/lang/es.js +0 -41
- data/public/javascripts/lang/fi.js +0 -40
- data/public/javascripts/lang/fr.js +0 -44
- data/public/javascripts/lang/gr.js +0 -40
- data/public/javascripts/lang/he.js +0 -49
- data/public/javascripts/lang/it.js +0 -13
- data/public/javascripts/lang/nl.js +0 -40
- data/public/javascripts/lang/no.js +0 -40
- data/public/javascripts/lang/pt.js +0 -50
- data/public/javascripts/lang/ro.js +0 -40
- data/public/javascripts/lang/ru.js +0 -40
- data/public/javascripts/lang/sp.js +0 -40
- data/public/javascripts/lang/sv.js +0 -41
- data/public/javascripts/lang/ua.js +0 -40
- data/public/javascripts/localization/messages_cn.js +0 -24
- data/public/javascripts/localization/messages_cs.js +0 -23
- data/public/javascripts/localization/messages_da.js +0 -21
- data/public/javascripts/localization/messages_de.js +0 -21
- data/public/javascripts/localization/messages_es.js +0 -24
- data/public/javascripts/localization/messages_fr.js +0 -23
- data/public/javascripts/localization/messages_hu.js +0 -21
- data/public/javascripts/localization/messages_it.js +0 -26
- data/public/javascripts/localization/messages_kk.js +0 -23
- data/public/javascripts/localization/messages_nl.js +0 -23
- data/public/javascripts/localization/messages_no.js +0 -23
- data/public/javascripts/localization/messages_pl.js +0 -23
- data/public/javascripts/localization/messages_ptbr.js +0 -30
- data/public/javascripts/localization/messages_ro.js +0 -24
- data/public/javascripts/localization/messages_ru.js +0 -23
- data/public/javascripts/localization/messages_se.js +0 -23
- data/public/javascripts/localization/messages_sk.js +0 -21
- data/public/javascripts/localization/messages_tr.js +0 -24
- data/public/javascripts/localization/messages_tw.js +0 -24
- data/public/javascripts/localization/messages_ua.js +0 -24
- data/public/javascripts/nested-attribute.js +0 -25
- data/public/javascripts/open_id.js +0 -15
- data/public/javascripts/product.js +0 -49
- data/public/javascripts/spree.js +0 -53
- data/public/javascripts/taxonomy.js +0 -196
- data/public/javascripts/zone.js +0 -40
- data/public/stylesheets/admin/admin-forms.css +0 -159
- data/public/stylesheets/admin/admin-reset.css +0 -67
- data/public/stylesheets/admin/admin-tables.css +0 -39
- data/public/stylesheets/admin/admin-typography.css +0 -117
- data/public/stylesheets/admin/admin.css +0 -571
- data/public/stylesheets/admin/dashboard.css +0 -143
- data/public/stylesheets/admin/edit_checkouts.css +0 -57
- data/public/stylesheets/admin/edit_orders.css +0 -65
- data/public/stylesheets/admin/grids.css +0 -314
- data/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +0 -7
- data/public/stylesheets/admin/yui-includes.css +0 -14
- data/public/stylesheets/datepicker.css +0 -263
- data/public/stylesheets/jquery.autocomplete.css +0 -48
- data/public/stylesheets/scaffold.css +0 -54
- data/public/stylesheets/screen.css +0 -1194
- data/script/autospec +0 -5
- data/script/breakpointer +0 -3
- data/script/performance/request +0 -3
- data/script/spec +0 -5
- data/script/spec_server +0 -125
- data/spec/controllers/admin/configurations_controller_spec.rb +0 -9
- data/spec/controllers/admin/mail_settings_controller_spec.rb +0 -24
- data/spec/controllers/admin/shipping_categories_controller_spec.rb +0 -10
- data/spec/controllers/admin/shipping_methods_controller_spec.rb +0 -10
- data/spec/controllers/countries_controller_spec.rb +0 -24
- data/spec/controllers/orders_controller_spec.rb +0 -35
- data/spec/controllers/products_controller_spec.rb +0 -16
- data/spec/controllers/states_controller_spec.rb +0 -18
- data/spec/controllers/taxons_controller_spec.rb +0 -18
- data/spec/fixtures/app_configurations.yml +0 -7
- data/spec/fixtures/countries.yml +0 -3
- data/spec/fixtures/gateways.yml +0 -8
- data/spec/fixtures/preferences.yml +0 -15
- data/spec/fixtures/roles.yml +0 -2
- data/spec/fixtures/states.yml +0 -2
- data/spec/fixtures/tax_categories.yml +0 -4
- data/spec/fixtures/users.yml +0 -5
- data/spec/fixtures/zone_members.yml +0 -7
- data/spec/fixtures/zones.yml +0 -4
- data/spec/lib/easy_role_requirement_system_spec.rb +0 -140
- data/spec/models/address_spec.rb +0 -79
- data/spec/models/app_configuration_spec.rb +0 -13
- data/spec/models/creditcard_payment_spec.rb +0 -17
- data/spec/models/creditcard_spec.rb +0 -43
- data/spec/models/inventory_unit_spec.rb +0 -18
- data/spec/models/option_type_spec.rb +0 -36
- data/spec/models/option_value_spec.rb +0 -39
- data/spec/models/order_spec.rb +0 -207
- data/spec/models/payment_sepc.rb +0 -29
- data/spec/models/product_option_type_spec.rb +0 -38
- data/spec/models/product_property_spec.rb +0 -29
- data/spec/models/property_spec.rb +0 -37
- data/spec/models/prototype_spec.rb +0 -35
- data/spec/models/shipment_spec.rb +0 -8
- data/spec/models/shipping_category_spec.rb +0 -8
- data/spec/models/shipping_order_spec.rb +0 -113
- data/spec/models/tax_category_spec.rb +0 -11
- data/spec/models/taxon_spec.rb +0 -50
- data/spec/models/taxonomy_spec.rb +0 -37
- data/spec/models/zone_member_spec.rb +0 -5
- data/spec/models/zone_spec.rb +0 -137
- data/spec/rcov.opts +0 -2
- data/spec/spec.opts +0 -4
- data/spec/spec_helper.rb +0 -79
- data/vendor/extensions/overview_dashboard/spec/spec.opts +0 -6
- data/vendor/extensions/overview_dashboard/spec/spec_helper.rb +0 -37
- data/vendor/extensions/payment_gateway/spec/helpers/admin/gateways_helper_spec.rb +0 -6
- data/vendor/extensions/payment_gateway/spec/models/creditcard_spec.rb +0 -15
- data/vendor/extensions/payment_gateway/spec/models/gateway_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/order_spec.rb +0 -45
- data/vendor/extensions/payment_gateway/spec/spec.opts +0 -6
- data/vendor/extensions/payment_gateway/spec/spec_helper.rb +0 -37
- data/vendor/extensions/theme_default/spec/spec.opts +0 -6
- data/vendor/extensions/theme_default/spec/spec_helper.rb +0 -37
@@ -1,21 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Translated default messages for the jQuery validation plugin.
|
3
|
-
* Language: SK
|
4
|
-
* Skipped dateISO/DE, numberDE
|
5
|
-
*/
|
6
|
-
jQuery.extend(jQuery.validator.messages, {
|
7
|
-
required: "Povinné zadať.",
|
8
|
-
maxlength: jQuery.validator.format("Maximálne {0} znakov."),
|
9
|
-
minlength: jQuery.validator.format("Minimálne {0} znakov."),
|
10
|
-
rangelength: jQuery.validator.format("Minimálne {0} a Maximálne {0} znakov."),
|
11
|
-
email: "E-mailová adresa musí byť platná.",
|
12
|
-
url: "URL musí byť platný.",
|
13
|
-
date: "Musí byť dátum.",
|
14
|
-
number: "Musí byť číslo.",
|
15
|
-
digits: "Môže obsahovať iba číslice.",
|
16
|
-
equalTo: "Dva hodnoty sa musia rovnať.",
|
17
|
-
range: jQuery.validator.format("Musí byť medzi {0} a {1}."),
|
18
|
-
max: jQuery.validator.format("Nemôže byť viac ako{0}."),
|
19
|
-
min: jQuery.validator.format("Nemôže byť menej ako{0}."),
|
20
|
-
creditcard: "Číslo platobnej karty musí byť platné."
|
21
|
-
});
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Translated default messages for the jQuery validation plugin.
|
3
|
-
* Language: TR
|
4
|
-
* Author: kara <kara {at} karalamalar {dot} net>
|
5
|
-
*/
|
6
|
-
jQuery.extend(jQuery.validator.messages, {
|
7
|
-
required: "Bu alanın doldurulması zorunludur.",
|
8
|
-
remote: "Lütfen bu alanı düzeltin.",
|
9
|
-
email: "Lütfen geçerli bir e-posta adresi giriniz.",
|
10
|
-
url: "Lütfen geçerli bir web adresi (URL) giriniz.",
|
11
|
-
date: "Lütfen geçerli bir tarih giriniz.",
|
12
|
-
dateISO: "Lütfen geçerli bir tarih giriniz(ISO formatında)",
|
13
|
-
number: "Lütfen geçerli bir sayı giriniz.",
|
14
|
-
digits: "Lütfen sadece sayısal karakterler giriniz.",
|
15
|
-
creditcard: "Lütfen geçerli bir kredi kartı giriniz.",
|
16
|
-
equalTo: "Lütfen aynı değeri tekrar giriniz.",
|
17
|
-
accept: "Lütfen geçerli uzantıya sahip bir değer giriniz.",
|
18
|
-
maxlength: jQuery.validator.format("Lütfen en fazla {0} karakter uzunluğunda bir değer giriniz."),
|
19
|
-
minlength: jQuery.validator.format("Lütfen en az {0} karakter uzunluğunda bir değer giriniz."),
|
20
|
-
rangelength: jQuery.validator.format("Lütfen en az {0} ve en fazla {1} uzunluğunda bir değer giriniz."),
|
21
|
-
range: jQuery.validator.format("Lütfen {0} ile {1} arasında bir değer giriniz."),
|
22
|
-
max: jQuery.validator.format("Lütfen {0} değerine eşit ya da daha küçük bir değer giriniz."),
|
23
|
-
min: jQuery.validator.format("Lütfen {0} değerine eşit ya da daha büyük bir değer giriniz.")
|
24
|
-
});
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Translated default messages for the jQuery validation plugin.
|
3
|
-
* Language: TW (Taiwan - Traditional Chinese)
|
4
|
-
* Author: Mr.BB <Boris Yang>
|
5
|
-
*/
|
6
|
-
jQuery.extend(jQuery.validator.messages, {
|
7
|
-
required: "必填",
|
8
|
-
remote: "請修正此欄位",
|
9
|
-
email: "請輸入正確的電子信箱",
|
10
|
-
url: "請輸入合法的URL",
|
11
|
-
date: "請輸入合法的日期",
|
12
|
-
dateISO: "請輸入合法的日期 (ISO).",
|
13
|
-
number: "請輸入數字",
|
14
|
-
digits: "請輸入整數",
|
15
|
-
creditcard: "請輸入合法的信用卡號碼",
|
16
|
-
equalTo: "請重複輸入一次",
|
17
|
-
accept: "請輸入有效的後缀字串",
|
18
|
-
maxlength: jQuery.validator.format("請輸入長度不大於{0} 的字串"),
|
19
|
-
minlength: jQuery.validator.format("請輸入長度不小於 {0} 的字串"),
|
20
|
-
rangelength: jQuery.validator.format("請輸入長度介於 {0} 和 {1} 之間的字串"),
|
21
|
-
range: jQuery.validator.format("請輸入介於 {0} 和 {1} 之間的數值"),
|
22
|
-
max: jQuery.validator.format("請輸入不大於 {0} 的數值"),
|
23
|
-
min: jQuery.validator.format("請輸入不小於 {0} 的數值")
|
24
|
-
});
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Translated default messages for the jQuery validation plugin.
|
3
|
-
* Language: UA (Ukrainian)
|
4
|
-
* Author: maserg <maserg at gmail dot com>
|
5
|
-
*/
|
6
|
-
jQuery.extend(jQuery.validator.messages, {
|
7
|
-
required: "Це поле необхідно заповнити.",
|
8
|
-
remote: "Будь ласка, введіть правильне значення.",
|
9
|
-
email: "Будь ласка, введіть коректну адресу електронної пошти.",
|
10
|
-
url: "Будь ласка, введіть коректний URL.",
|
11
|
-
date: "Будь ласка, введіть коректну дату.",
|
12
|
-
dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
|
13
|
-
number: "Будь ласка, введіть число.",
|
14
|
-
digits: "Вводите потрібно лише цифри.",
|
15
|
-
creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
|
16
|
-
equalTo: "Будь ласка, введіть таке ж значення ще раз.",
|
17
|
-
accept: "Будь ласка, виберіть файл з правильним розширенням.",
|
18
|
-
maxlength: jQuery.validator.format("Будь ласка, введіть не більше {0} символів."),
|
19
|
-
minlength: jQuery.validator.format("Будь ласка, введіть не менше {0} символів."),
|
20
|
-
rangelength: jQuery.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),
|
21
|
-
range: jQuery.validator.format("Будь ласка, введіть число від {0} до {1}."),
|
22
|
-
max: jQuery.validator.format("Будь ласка, введіть число, менше або рівно {0}."),
|
23
|
-
min: jQuery.validator.format("Будь ласка, введіть число, більше або рівно {0}.")
|
24
|
-
});
|
@@ -1,25 +0,0 @@
|
|
1
|
-
//On page load
|
2
|
-
// TODO - remove nonconflict stuff once prototype is gone for good
|
3
|
-
var $j = jQuery.noConflict();
|
4
|
-
|
5
|
-
replace_ids = function(s){
|
6
|
-
var new_id = new Date().getTime();
|
7
|
-
return s.replace(/NEW_RECORD/g, new_id);
|
8
|
-
}
|
9
|
-
|
10
|
-
$j(function() {
|
11
|
-
$j('a[id*=nested]').click(function() {
|
12
|
-
var template = $j(this).attr('href').replace(/.*#/, '');
|
13
|
-
html = replace_ids(eval(template));
|
14
|
-
$j('#ul-' + $j(this).attr('id')).append(html);
|
15
|
-
update_remove_links();
|
16
|
-
});
|
17
|
-
update_remove_links();
|
18
|
-
})
|
19
|
-
|
20
|
-
var update_remove_links = function() {
|
21
|
-
$j('.remove').click(function() {
|
22
|
-
$j(this).prevAll(':first').val(1);
|
23
|
-
$j(this).parent().hide();
|
24
|
-
});
|
25
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
$('#enable_login_via_openid a').click(function(){
|
2
|
-
$('#enable_login_via_openid').hide();
|
3
|
-
$('#enable_login_via_login_password').show();
|
4
|
-
$('div#openid-credentials').show();
|
5
|
-
$('div#openid-credentials input').removeAttr("disabled");
|
6
|
-
$('div#password-credentials').hide();
|
7
|
-
})
|
8
|
-
|
9
|
-
$('#enable_login_via_login_password a').click(function(){
|
10
|
-
$('#enable_login_via_openid').show();
|
11
|
-
$('#enable_login_via_login_password').hide();
|
12
|
-
$('div#openid-credentials').hide();
|
13
|
-
$('div#openid-credentials input').attr("disabled", true);
|
14
|
-
$('div#password-credentials').show();
|
15
|
-
})
|
@@ -1,49 +0,0 @@
|
|
1
|
-
var add_image_handlers = function() {
|
2
|
-
$("#main-image").data('selectedThumb', $('#main-image img').attr('src'));
|
3
|
-
$('ul.thumbnails li').eq(0).addClass('selected');
|
4
|
-
$('ul.thumbnails li a').click(function() {
|
5
|
-
$("#main-image").data('selectedThumb', $(this).attr('href'));
|
6
|
-
$('ul.thumbnails li').removeClass('selected');
|
7
|
-
$(this).parent('li').addClass('selected');
|
8
|
-
return false;
|
9
|
-
}).hover(
|
10
|
-
function() {
|
11
|
-
$('#main-image img').attr('src', $(this).attr('href').replace('mini', 'product'));
|
12
|
-
},
|
13
|
-
function() {
|
14
|
-
$('#main-image img').attr('src', $("#main-image").data('selectedThumb'));
|
15
|
-
}
|
16
|
-
);
|
17
|
-
};
|
18
|
-
|
19
|
-
jQuery(document).ready(function() {
|
20
|
-
add_image_handlers();
|
21
|
-
});
|
22
|
-
|
23
|
-
jQuery(document).ready(function() {
|
24
|
-
jQuery('#product-variants input[type=radio]').click(function (event) {
|
25
|
-
var vid = this.value;
|
26
|
-
var text = $(this).siblings(".variant-description").html();
|
27
|
-
|
28
|
-
jQuery("#variant-thumbnails").empty();
|
29
|
-
jQuery("#variant-images span").html(text);
|
30
|
-
|
31
|
-
if (images[vid].length > 0) {
|
32
|
-
$.each(images[vid], function(i, link) {
|
33
|
-
jQuery("#variant-thumbnails").append('<li>' + link + '</li>');
|
34
|
-
});
|
35
|
-
|
36
|
-
jQuery("#variant-images").show();
|
37
|
-
} else {
|
38
|
-
jQuery("#variant-images").hide();
|
39
|
-
}
|
40
|
-
|
41
|
-
add_image_handlers();
|
42
|
-
|
43
|
-
var link = jQuery("#variant-thumbnails a")[0];
|
44
|
-
|
45
|
-
jQuery("#main-image img").attr({src: jQuery(link).attr('href')});
|
46
|
-
jQuery('ul.thumbnails li').removeClass('selected');
|
47
|
-
jQuery(link).parent('li').addClass('selected');
|
48
|
-
});
|
49
|
-
});
|
data/public/javascripts/spree.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
This is a collection of javascript functions and whatnot
|
3
|
-
under the spree namespace that do stuff we find helpful.
|
4
|
-
Hopefully, this will evolve into a propper class.
|
5
|
-
**/
|
6
|
-
|
7
|
-
var spree;
|
8
|
-
if (!spree) spree = {};
|
9
|
-
|
10
|
-
jQuery.noConflict() ;
|
11
|
-
|
12
|
-
jQuery(document).ajaxStart(function(){
|
13
|
-
jQuery("#progress").slideDown();
|
14
|
-
});
|
15
|
-
|
16
|
-
jQuery(document).ajaxStop(function(){
|
17
|
-
jQuery("#progress").slideUp();
|
18
|
-
});
|
19
|
-
|
20
|
-
jQuery.fn.visible = function(cond) { this[cond ? 'show' : 'hide' ]() };
|
21
|
-
|
22
|
-
// Apply to individual radio button that makes another element visible when checked
|
23
|
-
jQuery.fn.radioControlsVisibilityOfElement = function(dependentElementSelector){
|
24
|
-
if(!this.get(0)){ return }
|
25
|
-
showValue = this.get(0).value;
|
26
|
-
radioGroup = $("input[name='" + this.get(0).name + "']");
|
27
|
-
radioGroup.each(function(){
|
28
|
-
jQuery(this).click(function(){
|
29
|
-
jQuery(dependentElementSelector).visible(this.checked && this.value == showValue)
|
30
|
-
});
|
31
|
-
if(this.checked){ this.click() }
|
32
|
-
});
|
33
|
-
}
|
34
|
-
|
35
|
-
var request = function(options) {
|
36
|
-
jQuery.ajax(jQuery.extend({ dataType: 'script', url: options.url, type: 'get' }, options));
|
37
|
-
return false;
|
38
|
-
};
|
39
|
-
|
40
|
-
// remote links handler
|
41
|
-
jQuery('a[data-remote=true]').live('click', function() {
|
42
|
-
if(method = jQuery(this).attr("data-method")){
|
43
|
-
return request({ url: this.href, type: 'POST', data: {'_method': method} });
|
44
|
-
} else {
|
45
|
-
return request({ url: this.href });
|
46
|
-
}
|
47
|
-
});
|
48
|
-
|
49
|
-
// remote forms handler
|
50
|
-
jQuery('form[data-remote=true]').live('submit', function() {
|
51
|
-
return request({ url : this.action, type : this.method, data : jQuery(this).serialize() });
|
52
|
-
});
|
53
|
-
|
@@ -1,196 +0,0 @@
|
|
1
|
-
var base_url = "/admin/taxonomies/" + taxonomy_id + "/taxons/";
|
2
|
-
var child_url = "/admin/taxonomies/" + taxonomy_id + "/get_children.json"
|
3
|
-
var creating = false;
|
4
|
-
var delete_confirmed = false;
|
5
|
-
var last_rollback = null;
|
6
|
-
|
7
|
-
var handle_ajax_error = function(XMLHttpRequest, textStatus, errorThrown){
|
8
|
-
jQuery.tree.rollback(last_rollback);
|
9
|
-
|
10
|
-
jQuery("#ajax_error").show().html("<strong>" + server_error + "</strong><br/>" + taxonomy_tree_error);
|
11
|
-
};
|
12
|
-
|
13
|
-
var handle_move = function(li, target, droppped, tree, rb) {
|
14
|
-
last_rollback = rb;
|
15
|
-
var position = jQuery(li).prevAll().length;
|
16
|
-
|
17
|
-
var parent = -1;
|
18
|
-
|
19
|
-
if(droppped=='inside'){
|
20
|
-
parent = target;
|
21
|
-
}else if(droppped=='after'){
|
22
|
-
parent = jQuery(target).parents()[1];
|
23
|
-
}else if(droppped=='before'){
|
24
|
-
parent = jQuery(target).parents()[1];
|
25
|
-
}
|
26
|
-
|
27
|
-
jQuery.ajax({
|
28
|
-
type: "POST",
|
29
|
-
url: base_url + li.id + ".json",
|
30
|
-
data: ({_method: "put", "taxon[parent_id]": parent.id, "taxon[position]": position, authenticity_token: AUTH_TOKEN}),
|
31
|
-
error: handle_ajax_error
|
32
|
-
});
|
33
|
-
|
34
|
-
return true
|
35
|
-
};
|
36
|
-
|
37
|
-
var handle_dblclick = function(li, tree) {
|
38
|
-
tree.rename();
|
39
|
-
};
|
40
|
-
|
41
|
-
var handle_create = function(parent, sib, created, tree, rb){
|
42
|
-
last_rollback = rb;
|
43
|
-
creating=true;
|
44
|
-
};
|
45
|
-
|
46
|
-
var handle_created = function(id,result) {
|
47
|
-
jQuery.tree.reference('taxonomy_tree').selected.attr('id', id);
|
48
|
-
}
|
49
|
-
|
50
|
-
var handle_rename = function(li, tree, rb) {
|
51
|
-
var name = jQuery(li).children(":first").text();
|
52
|
-
name = jQuery.trim(name);
|
53
|
-
|
54
|
-
if (creating){
|
55
|
-
//actually creating new
|
56
|
-
var position = jQuery(li).prevAll().length;
|
57
|
-
var parent = jQuery(li).parents()[1];
|
58
|
-
|
59
|
-
jQuery.ajax({
|
60
|
-
type: "POST",
|
61
|
-
url: base_url,
|
62
|
-
data: ({"taxon[name]": name, "taxon[parent_id]": parent.id, "taxon[position]": position, authenticity_token: AUTH_TOKEN}),
|
63
|
-
error: handle_ajax_error,
|
64
|
-
success: handle_created
|
65
|
-
});
|
66
|
-
|
67
|
-
creating = false;
|
68
|
-
}else{
|
69
|
-
//just renaming
|
70
|
-
last_rollback = rb;
|
71
|
-
|
72
|
-
jQuery.ajax({
|
73
|
-
type: "POST",
|
74
|
-
url: base_url + li.id + ".json",
|
75
|
-
data: ({_method: "put", "taxon[name]": name, authenticity_token: AUTH_TOKEN}),
|
76
|
-
error: handle_ajax_error
|
77
|
-
});
|
78
|
-
}
|
79
|
-
};
|
80
|
-
|
81
|
-
var handle_before_delete = function(li){
|
82
|
-
if (!delete_confirmed){
|
83
|
-
jConfirm('Are you sure you want to delete this taxon?', 'Confirm Taxon Deletion', function(r) {
|
84
|
-
if(r){
|
85
|
-
delete_confirmed = true;
|
86
|
-
jQuery.tree.reference('taxonomy_tree').remove(li);
|
87
|
-
}
|
88
|
-
});
|
89
|
-
}
|
90
|
-
|
91
|
-
return delete_confirmed;
|
92
|
-
};
|
93
|
-
|
94
|
-
var handle_delete = function(li, tree, rb){
|
95
|
-
last_rollback = rb;
|
96
|
-
|
97
|
-
jQuery.ajax({
|
98
|
-
type: "POST",
|
99
|
-
url: base_url + li.id,
|
100
|
-
data: ({_method: "delete", authenticity_token: AUTH_TOKEN}),
|
101
|
-
error: handle_ajax_error
|
102
|
-
});
|
103
|
-
|
104
|
-
delete_confirmed = false;
|
105
|
-
};
|
106
|
-
|
107
|
-
jQuery(document).ready(function(){
|
108
|
-
conf = {
|
109
|
-
data : {
|
110
|
-
type : "json",
|
111
|
-
async : true,
|
112
|
-
opts : {
|
113
|
-
method : "GET",
|
114
|
-
url : child_url
|
115
|
-
}
|
116
|
-
},
|
117
|
-
ui : {
|
118
|
-
theme_name : "apple"
|
119
|
-
},
|
120
|
-
lang : {
|
121
|
-
new_node : new_taxon,
|
122
|
-
loading : loading + "..."
|
123
|
-
},
|
124
|
-
plugins : {
|
125
|
-
contextmenu : {
|
126
|
-
items : {
|
127
|
-
// get rid of the remove item
|
128
|
-
remove :{
|
129
|
-
visible : function (NODE, TREE_OBJ) { if(jQuery(NODE[0]).attr('rel')=="root") return false; return TREE_OBJ.check("renameable", NODE); },
|
130
|
-
},
|
131
|
-
rename :{
|
132
|
-
visible : function (NODE, TREE_OBJ) { if(jQuery(NODE[0]).attr('rel')=="root") return false; return TREE_OBJ.check("renameable", NODE); },
|
133
|
-
},
|
134
|
-
cut :{
|
135
|
-
id : "cut",
|
136
|
-
label : "Cut",
|
137
|
-
visible : function (NODE, TREE_OBJ) { if(NODE.length != 1 || NODE[0].id == 'root') return false; return true; },
|
138
|
-
action : function (NODE, TREE_OBJ) { TREE_OBJ.cut(NODE); jQuery(NODE).hide(); },
|
139
|
-
separator_before : true
|
140
|
-
},
|
141
|
-
paste :{
|
142
|
-
id : "paste",
|
143
|
-
label : "Paste",
|
144
|
-
visible : function (NODE, TREE_OBJ) { if(NODE.length != 1 || NODE[0].id == 'root') return false; return true; },
|
145
|
-
action : function (NODE, TREE_OBJ) { TREE_OBJ.open_branch(NODE); TREE_OBJ.paste(NODE, "inside"); jQuery(NODE).find("li").show(); }
|
146
|
-
},
|
147
|
-
edit :{
|
148
|
-
id : "edit",
|
149
|
-
label : "Edit",
|
150
|
-
visible : function (NODE, TREE_OBJ) { if(NODE.length != 1 || NODE[0].id == 'root') return false; return TREE_OBJ.check("renameable", NODE); },
|
151
|
-
action : function (NODE, TREE_OBJ) { jQuery.each(NODE, function () { window.location = base_url + this.id + "/edit/"; }); }
|
152
|
-
}
|
153
|
-
|
154
|
-
}
|
155
|
-
}
|
156
|
-
},
|
157
|
-
rules : {
|
158
|
-
// only nodes of type root can be top level nodes
|
159
|
-
valid_children : [ "root" ]
|
160
|
-
},
|
161
|
-
types : {
|
162
|
-
// all node types inherit the "default" node type
|
163
|
-
"taxon" : {},
|
164
|
-
"root" : {
|
165
|
-
deletable : false,
|
166
|
-
renameable : false,
|
167
|
-
draggable : false,
|
168
|
-
valid_children : [ "taxon" ]
|
169
|
-
}
|
170
|
-
},
|
171
|
-
callback : {
|
172
|
-
onmove: handle_move,
|
173
|
-
ondblclk: handle_dblclick,
|
174
|
-
onrename: handle_rename,
|
175
|
-
oncreate: handle_create,
|
176
|
-
beforedelete: handle_before_delete,
|
177
|
-
ondelete: handle_delete,
|
178
|
-
beforedata: function (n, t) {
|
179
|
-
if(n == false) t.settings.data.opts.static = initial;
|
180
|
-
else t.settings.data.opts.static = false;
|
181
|
-
|
182
|
-
return { parent_id : $(n).attr("id") || 0 };
|
183
|
-
}
|
184
|
-
|
185
|
-
}
|
186
|
-
}
|
187
|
-
|
188
|
-
jQuery("#taxonomy_tree").tree(conf);
|
189
|
-
|
190
|
-
jQuery(document).keypress(function(e){
|
191
|
-
//surpress form submit on enter/return
|
192
|
-
if (e.keyCode == 13){
|
193
|
-
e.preventDefault();
|
194
|
-
}
|
195
|
-
});
|
196
|
-
});
|
data/public/javascripts/zone.js
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
$j(function() {
|
2
|
-
if ($j('#country_based').attr('checked')) {
|
3
|
-
show_country();
|
4
|
-
} else if ($j('#state_based').attr('checked')) {
|
5
|
-
show_state();
|
6
|
-
} else {
|
7
|
-
show_zone();
|
8
|
-
}
|
9
|
-
$j('#country_based').click(function() { show_country();} );
|
10
|
-
$j('#state_based').click(function() { show_state();} );
|
11
|
-
$j('#zone_based').click(function() { show_zone();} );
|
12
|
-
})
|
13
|
-
|
14
|
-
var show_country = function() {
|
15
|
-
$j('#state_members :input').each(function() { $(this).disable(); })
|
16
|
-
$j('#state_members').hide();
|
17
|
-
$j('#zone_members :input').each(function() { $(this).disable(); })
|
18
|
-
$j('#zone_members').hide();
|
19
|
-
$j('#country_members :input').each(function() { $(this).enable(); })
|
20
|
-
$j('#country_members').show();
|
21
|
-
};
|
22
|
-
|
23
|
-
var show_state = function() {
|
24
|
-
$j('#country_members :input').each(function() { $(this).disable(); })
|
25
|
-
$j('#country_members').hide();
|
26
|
-
$j('#zone_members :input').each(function() { $(this).disable(); })
|
27
|
-
$j('#zone_members').hide();
|
28
|
-
$j('#state_members :input').each(function() { $(this).enable(); })
|
29
|
-
$j('#state_members').show();
|
30
|
-
};
|
31
|
-
|
32
|
-
var show_zone = function() {
|
33
|
-
$j('#state_members :input').each(function() { $(this).disable(); })
|
34
|
-
$j('#state_members').hide();
|
35
|
-
$j('#country_members :input').each(function() { $(this).disable(); })
|
36
|
-
$j('#country_members').hide();
|
37
|
-
$j('#zone_members :input').each(function() { $(this).enable(); })
|
38
|
-
$j('#zone_members').show();
|
39
|
-
};
|
40
|
-
|