spree_essential_press 0.1.0.pre3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (486) hide show
  1. data/.gitignore +2 -3
  2. data/.travis.yml +8 -0
  3. data/Gemfile +0 -2
  4. data/LICENSE +21 -17
  5. data/README.md +26 -16
  6. data/Rakefile +3 -33
  7. data/Versionfile +4 -2
  8. data/app/controllers/admin/press_controller.rb +2 -2
  9. data/app/controllers/press_controller.rb +1 -1
  10. data/app/overrides/spree_essential_press.rb +5 -0
  11. data/app/views/admin/press/_form.html.erb +6 -17
  12. data/app/views/admin/press/edit.html.erb +2 -2
  13. data/app/views/admin/press/index.html.erb +6 -23
  14. data/config/locales/en.yml +19 -17
  15. data/lib/generators/essentials_base.rb +12 -3
  16. data/lib/generators/spree_essentials/press_generator.rb +1 -1
  17. data/lib/spree_essential_press.rb +17 -8
  18. data/lib/spree_essential_press/version.rb +1 -1
  19. data/spree_essential_press.gemspec +5 -15
  20. data/test/dummy_hooks/after_migrate.rb.sample +1 -0
  21. data/test/dummy_hooks/before_migrate.rb +13 -0
  22. data/test/dummy_hooks/templates/admin/all.css +3 -0
  23. data/test/dummy_hooks/templates/admin/all.js +1 -0
  24. data/test/dummy_hooks/templates/store/all.css +3 -0
  25. data/test/dummy_hooks/templates/store/all.js +1 -0
  26. data/test/support/factories.rb +2 -2
  27. data/test/support/images/1.png +0 -0
  28. data/test/test_helper.rb +9 -52
  29. data/test/unit/press_image_test.rb +2 -2
  30. data/test/unit/press_test.rb +1 -1
  31. metadata +77 -1063
  32. data/app/controllers/admin/resource_controller.rb +0 -225
  33. data/lib/spree_essential_press/custom_hooks.rb +0 -9
  34. data/public/javascripts/date.js +0 -145
  35. data/public/javascripts/jquery.autodate.js +0 -112
  36. data/test/dummy/Rakefile +0 -7
  37. data/test/dummy/app/controllers/application_controller.rb +0 -3
  38. data/test/dummy/config.ru +0 -4
  39. data/test/dummy/config/application.rb +0 -44
  40. data/test/dummy/config/boot.rb +0 -10
  41. data/test/dummy/config/database.yml +0 -22
  42. data/test/dummy/config/environment.rb +0 -5
  43. data/test/dummy/config/environments/development.rb +0 -26
  44. data/test/dummy/config/environments/production.rb +0 -49
  45. data/test/dummy/config/environments/test.rb +0 -35
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  47. data/test/dummy/config/initializers/inflections.rb +0 -10
  48. data/test/dummy/config/initializers/mime_types.rb +0 -5
  49. data/test/dummy/config/initializers/secret_token.rb +0 -7
  50. data/test/dummy/config/initializers/session_store.rb +0 -8
  51. data/test/dummy/config/locales/en.yml +0 -5
  52. data/test/dummy/config/routes.rb +0 -58
  53. data/test/dummy/db/default/countries.yml +0 -1583
  54. data/test/dummy/db/default/roles.yml +0 -7
  55. data/test/dummy/db/default/states.yml +0 -256
  56. data/test/dummy/db/default/zone_members.yml +0 -169
  57. data/test/dummy/db/default/zones.yml +0 -13
  58. data/test/dummy/db/migrate/20090823005402_spree_zero_nine_zero.rb +0 -442
  59. data/test/dummy/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +0 -12
  60. data/test/dummy/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +0 -36
  61. data/test/dummy/db/migrate/20091007134354_change_taxons_to_nested_set.rb +0 -40
  62. data/test/dummy/db/migrate/20091008091614_move_to_configurable_gateways.rb +0 -55
  63. data/test/dummy/db/migrate/20091012120519_product_groups_and_scopes.rb +0 -25
  64. data/test/dummy/db/migrate/20091015110842_add_open_id_authentication_tables.rb +0 -20
  65. data/test/dummy/db/migrate/20091015153048_add_openid_field_to_users.rb +0 -19
  66. data/test/dummy/db/migrate/20091016174634_change_preference_value_type.rb +0 -10
  67. data/test/dummy/db/migrate/20091017175558_create_billing_integrations.rb +0 -16
  68. data/test/dummy/db/migrate/20091021133257_charge_refactoring.rb +0 -35
  69. data/test/dummy/db/migrate/20091104151730_add_some_indexes.rb +0 -21
  70. data/test/dummy/db/migrate/20091126190904_checkout_state_machine.rb +0 -13
  71. data/test/dummy/db/migrate/20091209153045_state_for_shipments.rb +0 -9
  72. data/test/dummy/db/migrate/20091209202200_make_state_events_polymorphic.rb +0 -12
  73. data/test/dummy/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +0 -9
  74. data/test/dummy/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +0 -9
  75. data/test/dummy/db/migrate/20091213222815_creditcard_last_four_digits.rb +0 -19
  76. data/test/dummy/db/migrate/20091214183826_populate_legacy_shipment_state.rb +0 -19
  77. data/test/dummy/db/migrate/20100105090147_add_cost_price.rb +0 -9
  78. data/test/dummy/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +0 -21
  79. data/test/dummy/db/migrate/20100111205525_cim_fields_for_creditcards.rb +0 -11
  80. data/test/dummy/db/migrate/20100112151511_create_return_authorizations.rb +0 -16
  81. data/test/dummy/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +0 -9
  82. data/test/dummy/db/migrate/20100113203104_create_trackers.rb +0 -14
  83. data/test/dummy/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +0 -9
  84. data/test/dummy/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +0 -9
  85. data/test/dummy/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +0 -11
  86. data/test/dummy/db/migrate/20100126103714_create_products_product_groups.rb +0 -12
  87. data/test/dummy/db/migrate/20100209025806_create_payment_methods.rb +0 -20
  88. data/test/dummy/db/migrate/20100209144531_polymorphic_payments.rb +0 -29
  89. data/test/dummy/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +0 -11
  90. data/test/dummy/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +0 -16
  91. data/test/dummy/db/migrate/20100223170312_sti_for_transactions.rb +0 -14
  92. data/test/dummy/db/migrate/20100223183812_drop_billing_integrations.rb +0 -16
  93. data/test/dummy/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +0 -13
  94. data/test/dummy/db/migrate/20100301163454_add_adjustments_index.rb +0 -10
  95. data/test/dummy/db/migrate/20100306153445_fix_by_popularity.rb +0 -8
  96. data/test/dummy/db/migrate/20100317120946_add_alt_text_to_images.rb +0 -9
  97. data/test/dummy/db/migrate/20100427121301_add_display_to_payment_methods.rb +0 -9
  98. data/test/dummy/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +0 -16
  99. data/test/dummy/db/migrate/20100506180619_add_icon_to_taxons.rb +0 -18
  100. data/test/dummy/db/migrate/20100506185838_add_description_to_taxons.rb +0 -11
  101. data/test/dummy/db/migrate/20100528155333_index_for_shipments_number.rb +0 -9
  102. data/test/dummy/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +0 -9
  103. data/test/dummy/db/migrate/20100605152042_add_default_to_tax_categories.rb +0 -9
  104. data/test/dummy/db/migrate/20100624110730_add_display_to_shipping_methods.rb +0 -9
  105. data/test/dummy/db/migrate/20100624123336_rename_payment_method_display.rb +0 -9
  106. data/test/dummy/db/migrate/20100624175547_rename_preferences_field.rb +0 -8
  107. data/test/dummy/db/migrate/20100811163637_add_guest_flag.rb +0 -13
  108. data/test/dummy/db/migrate/20100811205836_drop_order_token.rb +0 -11
  109. data/test/dummy/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +0 -11
  110. data/test/dummy/db/migrate/20100813023502_create_address_keys_for_order.rb +0 -15
  111. data/test/dummy/db/migrate/20100813185745_payment_total_for_orders.rb +0 -9
  112. data/test/dummy/db/migrate/20100816212146_shipping_method_id_for_orders.rb +0 -9
  113. data/test/dummy/db/migrate/20100817152723_add_shipment_and_payment_state.rb +0 -15
  114. data/test/dummy/db/migrate/20100819170125_refactor_adjustments.rb +0 -19
  115. data/test/dummy/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +0 -11
  116. data/test/dummy/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +0 -13
  117. data/test/dummy/db/migrate/20100903203949_email_for_orders.rb +0 -9
  118. data/test/dummy/db/migrate/20100923162011_create_mail_methods.rb +0 -12
  119. data/test/dummy/db/migrate/20100929151905_rename_frozen_to_locked.rb +0 -8
  120. data/test/dummy/db/migrate/20101008190536_move_special_instructions_to_orders.rb +0 -11
  121. data/test/dummy/db/migrate/20101026184700_create_log_entries.rb +0 -15
  122. data/test/dummy/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +0 -94
  123. data/test/dummy/db/migrate/20101026184746_delete_in_progress_orders.rb +0 -18
  124. data/test/dummy/db/migrate/20101026184808_migrate_checkout_to_orders.rb +0 -27
  125. data/test/dummy/db/migrate/20101026184833_migrate_adjustments.rb +0 -9
  126. data/test/dummy/db/migrate/20101026184855_remove_shipped_state.rb +0 -14
  127. data/test/dummy/db/migrate/20101026184916_prevent_nil_payment_total.rb +0 -8
  128. data/test/dummy/db/migrate/20101026184932_prevent_nil_email.rb +0 -9
  129. data/test/dummy/db/migrate/20101026184959_generate_anonymous_users.rb +0 -14
  130. data/test/dummy/db/migrate/20101026185022_update_order_state.rb +0 -8
  131. data/test/dummy/db/migrate/20101026192225_cleanup_legacy_tables.rb +0 -11
  132. data/test/dummy/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +0 -9
  133. data/test/dummy/db/migrate/20101101185116_rename_columns_for_devise.rb +0 -38
  134. data/test/dummy/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +0 -8
  135. data/test/dummy/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +0 -10
  136. data/test/dummy/db/migrate/20101117031806_fix_problematic_index_names.rb +0 -13
  137. data/test/dummy/db/migrate/20101214150824_convert_user_remember_field.rb +0 -11
  138. data/test/dummy/db/migrate/20101217012656_create_tokenized_permissions.rb +0 -18
  139. data/test/dummy/db/migrate/20101219201531_tokens_for_legacy_orders.rb +0 -12
  140. data/test/dummy/db/migrate/20110421185054_create_press.rb +0 -16
  141. data/test/dummy/db/sample/users.rb +0 -53
  142. data/test/dummy/db/schema.rb +0 -548
  143. data/test/dummy/db/seeds.rb +0 -3
  144. data/test/dummy/public/404.html +0 -26
  145. data/test/dummy/public/422.html +0 -26
  146. data/test/dummy/public/500.html +0 -26
  147. data/test/dummy/public/assets/posts/1/large/02tii.jpg +0 -0
  148. data/test/dummy/public/assets/posts/1/mini/02tii.jpg +0 -0
  149. data/test/dummy/public/assets/posts/1/original/02tii.jpg +0 -0
  150. data/test/dummy/public/assets/posts/1/preview/02tii.jpg +0 -0
  151. data/test/dummy/public/assets/posts/1/small/02tii.jpg +0 -0
  152. data/test/dummy/public/assets/posts/2/large/sailing-avatar.jpg +0 -0
  153. data/test/dummy/public/assets/posts/2/mini/sailing-avatar.jpg +0 -0
  154. data/test/dummy/public/assets/posts/2/original/sailing-avatar.jpg +0 -0
  155. data/test/dummy/public/assets/posts/2/preview/sailing-avatar.jpg +0 -0
  156. data/test/dummy/public/assets/posts/2/small/sailing-avatar.jpg +0 -0
  157. data/test/dummy/public/assets/posts/3/large/fractals_generative.jpg +0 -0
  158. data/test/dummy/public/assets/posts/3/mini/fractals_generative.jpg +0 -0
  159. data/test/dummy/public/assets/posts/3/original/fractals_generative.jpg +0 -0
  160. data/test/dummy/public/assets/posts/3/preview/fractals_generative.jpg +0 -0
  161. data/test/dummy/public/assets/posts/3/small/fractals_generative.jpg +0 -0
  162. data/test/dummy/public/assets/products/4/large/bmw2002tii.jpg +0 -0
  163. data/test/dummy/public/assets/products/4/mini/bmw2002tii.jpg +0 -0
  164. data/test/dummy/public/assets/products/4/original/bmw2002tii.jpg +0 -0
  165. data/test/dummy/public/assets/products/4/product/bmw2002tii.jpg +0 -0
  166. data/test/dummy/public/assets/products/4/small/bmw2002tii.jpg +0 -0
  167. data/test/dummy/public/favicon.ico +0 -0
  168. data/test/dummy/public/images/add-to-cart.png +0 -0
  169. data/test/dummy/public/images/admin/bg/active-tab.png +0 -0
  170. data/test/dummy/public/images/admin/bg/admin_tab_back.png +0 -0
  171. data/test/dummy/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  172. data/test/dummy/public/images/admin/bg/content-back-blue.png +0 -0
  173. data/test/dummy/public/images/admin/bg/content-back-green.png +0 -0
  174. data/test/dummy/public/images/admin/bg/content-back.png +0 -0
  175. data/test/dummy/public/images/admin/bg/flash-error.png +0 -0
  176. data/test/dummy/public/images/admin/bg/flash-notice.png +0 -0
  177. data/test/dummy/public/images/admin/bg/green-stripes.gif +0 -0
  178. data/test/dummy/public/images/admin/bg/green-stripes.png +0 -0
  179. data/test/dummy/public/images/admin/bg/grid_header_back.png +0 -0
  180. data/test/dummy/public/images/admin/bg/grid_header_back_green.png +0 -0
  181. data/test/dummy/public/images/admin/bg/header-bg.png +0 -0
  182. data/test/dummy/public/images/admin/bg/header.png +0 -0
  183. data/test/dummy/public/images/admin/bg/header_bg.jpg +0 -0
  184. data/test/dummy/public/images/admin/bg/menu-current.png +0 -0
  185. data/test/dummy/public/images/admin/bg/red-stripes.gif +0 -0
  186. data/test/dummy/public/images/admin/bg/red-stripes.png +0 -0
  187. data/test/dummy/public/images/admin/bg/spree_50.png +0 -0
  188. data/test/dummy/public/images/admin/bg/subnav-divider.png +0 -0
  189. data/test/dummy/public/images/admin/bg/subnav.png +0 -0
  190. data/test/dummy/public/images/admin/bg/tab-back.png +0 -0
  191. data/test/dummy/public/images/admin/buttons/blue/left_01.png +0 -0
  192. data/test/dummy/public/images/admin/buttons/blue/right_01.png +0 -0
  193. data/test/dummy/public/images/admin/buttons/drag-handle-green.png +0 -0
  194. data/test/dummy/public/images/admin/buttons/green/left_01.png +0 -0
  195. data/test/dummy/public/images/admin/buttons/green/right_01.png +0 -0
  196. data/test/dummy/public/images/admin/buttons/left_01.png +0 -0
  197. data/test/dummy/public/images/admin/buttons/left_01_small.png +0 -0
  198. data/test/dummy/public/images/admin/buttons/orange/left_03.png +0 -0
  199. data/test/dummy/public/images/admin/buttons/orange/right_03.png +0 -0
  200. data/test/dummy/public/images/admin/buttons/right_01.png +0 -0
  201. data/test/dummy/public/images/admin/buttons/right_01_small.png +0 -0
  202. data/test/dummy/public/images/admin/icons/16x16/1.png +0 -0
  203. data/test/dummy/public/images/admin/icons/16x16/10.png +0 -0
  204. data/test/dummy/public/images/admin/icons/16x16/2.png +0 -0
  205. data/test/dummy/public/images/admin/icons/16x16/3.png +0 -0
  206. data/test/dummy/public/images/admin/icons/16x16/4.png +0 -0
  207. data/test/dummy/public/images/admin/icons/16x16/5.png +0 -0
  208. data/test/dummy/public/images/admin/icons/16x16/6.png +0 -0
  209. data/test/dummy/public/images/admin/icons/16x16/7.png +0 -0
  210. data/test/dummy/public/images/admin/icons/16x16/8.png +0 -0
  211. data/test/dummy/public/images/admin/icons/16x16/9.png +0 -0
  212. data/test/dummy/public/images/admin/icons/32x32/1.png +0 -0
  213. data/test/dummy/public/images/admin/icons/32x32/10.png +0 -0
  214. data/test/dummy/public/images/admin/icons/32x32/11.png +0 -0
  215. data/test/dummy/public/images/admin/icons/32x32/2.png +0 -0
  216. data/test/dummy/public/images/admin/icons/32x32/3.png +0 -0
  217. data/test/dummy/public/images/admin/icons/32x32/4.png +0 -0
  218. data/test/dummy/public/images/admin/icons/32x32/5.png +0 -0
  219. data/test/dummy/public/images/admin/icons/32x32/6.png +0 -0
  220. data/test/dummy/public/images/admin/icons/32x32/7.png +0 -0
  221. data/test/dummy/public/images/admin/icons/32x32/8.png +0 -0
  222. data/test/dummy/public/images/admin/icons/32x32/9.png +0 -0
  223. data/test/dummy/public/images/admin/icons/accept.png +0 -0
  224. data/test/dummy/public/images/admin/icons/add.gif +0 -0
  225. data/test/dummy/public/images/admin/icons/add.png +0 -0
  226. data/test/dummy/public/images/admin/icons/arrow-down.gif +0 -0
  227. data/test/dummy/public/images/admin/icons/cross.png +0 -0
  228. data/test/dummy/public/images/admin/icons/delete.gif +0 -0
  229. data/test/dummy/public/images/admin/icons/delete.png +0 -0
  230. data/test/dummy/public/images/admin/icons/drag.gif +0 -0
  231. data/test/dummy/public/images/admin/icons/edit.gif +0 -0
  232. data/test/dummy/public/images/admin/icons/edit.png +0 -0
  233. data/test/dummy/public/images/admin/icons/email.png +0 -0
  234. data/test/dummy/public/images/admin/icons/error.png +0 -0
  235. data/test/dummy/public/images/admin/icons/exclamation.png +0 -0
  236. data/test/dummy/public/images/admin/icons/feed.png +0 -0
  237. data/test/dummy/public/images/admin/icons/pdf.png +0 -0
  238. data/test/dummy/public/images/admin/icons/reorder.gif +0 -0
  239. data/test/dummy/public/images/admin/icons/search.gif +0 -0
  240. data/test/dummy/public/images/admin/icons/send-email.png +0 -0
  241. data/test/dummy/public/images/admin/icons/stop.png +0 -0
  242. data/test/dummy/public/images/admin/icons/tick.png +0 -0
  243. data/test/dummy/public/images/admin/icons/up.gif +0 -0
  244. data/test/dummy/public/images/admin/icons/xls.png +0 -0
  245. data/test/dummy/public/images/admin/tabs/off-left.png +0 -0
  246. data/test/dummy/public/images/admin/tabs/off-right.png +0 -0
  247. data/test/dummy/public/images/admin/tabs/on-left.png +0 -0
  248. data/test/dummy/public/images/admin/tabs/on-right.png +0 -0
  249. data/test/dummy/public/images/ajax_loader.gif +0 -0
  250. data/test/dummy/public/images/amex_cid.gif +0 -0
  251. data/test/dummy/public/images/bg-button-hover.png +0 -0
  252. data/test/dummy/public/images/bg-button-pressed.png +0 -0
  253. data/test/dummy/public/images/bg-button.gif +0 -0
  254. data/test/dummy/public/images/bg-button.png +0 -0
  255. data/test/dummy/public/images/blue/left_01.png +0 -0
  256. data/test/dummy/public/images/blue/right_01.png +0 -0
  257. data/test/dummy/public/images/body-back.png +0 -0
  258. data/test/dummy/public/images/bottom_shine.png +0 -0
  259. data/test/dummy/public/images/breadcrumb.gif +0 -0
  260. data/test/dummy/public/images/button-dark-hover.png +0 -0
  261. data/test/dummy/public/images/button-dark.png +0 -0
  262. data/test/dummy/public/images/buttons/bg-button-hover.png +0 -0
  263. data/test/dummy/public/images/buttons/bg-button-pressed.png +0 -0
  264. data/test/dummy/public/images/buttons/bg-button.gif +0 -0
  265. data/test/dummy/public/images/buttons/bg-button.png +0 -0
  266. data/test/dummy/public/images/buttons/blue/left_01.png +0 -0
  267. data/test/dummy/public/images/buttons/blue/right_01.png +0 -0
  268. data/test/dummy/public/images/buttons/button-dark-hover.png +0 -0
  269. data/test/dummy/public/images/buttons/button-dark.png +0 -0
  270. data/test/dummy/public/images/buttons/drag-handle-green.png +0 -0
  271. data/test/dummy/public/images/buttons/green/left_01.png +0 -0
  272. data/test/dummy/public/images/buttons/green/right_01.png +0 -0
  273. data/test/dummy/public/images/buttons/left_01.png +0 -0
  274. data/test/dummy/public/images/buttons/left_01_small.png +0 -0
  275. data/test/dummy/public/images/buttons/orange/left_03.png +0 -0
  276. data/test/dummy/public/images/buttons/orange/right_03.png +0 -0
  277. data/test/dummy/public/images/buttons/right_01.png +0 -0
  278. data/test/dummy/public/images/buttons/right_01_small.png +0 -0
  279. data/test/dummy/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  280. data/test/dummy/public/images/buttons/top-shine.png +0 -0
  281. data/test/dummy/public/images/calendar_date_select/calendar.gif +0 -0
  282. data/test/dummy/public/images/cart-empty.png +0 -0
  283. data/test/dummy/public/images/cart-empty_x32.png +0 -0
  284. data/test/dummy/public/images/cart-full.png +0 -0
  285. data/test/dummy/public/images/cart-full_x32.png +0 -0
  286. data/test/dummy/public/images/checkout.png +0 -0
  287. data/test/dummy/public/images/creditcard.gif +0 -0
  288. data/test/dummy/public/images/datepicker/backstripes.gif +0 -0
  289. data/test/dummy/public/images/datepicker/bg_header.jpg +0 -0
  290. data/test/dummy/public/images/datepicker/bullet1.gif +0 -0
  291. data/test/dummy/public/images/datepicker/bullet2.gif +0 -0
  292. data/test/dummy/public/images/datepicker/cal.gif +0 -0
  293. data/test/dummy/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  294. data/test/dummy/public/images/discover_cid.gif +0 -0
  295. data/test/dummy/public/images/drag-handle-green.png +0 -0
  296. data/test/dummy/public/images/favicon.ico +0 -0
  297. data/test/dummy/public/images/green/left_01.png +0 -0
  298. data/test/dummy/public/images/green/right_01.png +0 -0
  299. data/test/dummy/public/images/grid.png +0 -0
  300. data/test/dummy/public/images/left_01.png +0 -0
  301. data/test/dummy/public/images/left_01_small.png +0 -0
  302. data/test/dummy/public/images/master_cid.jpg +0 -0
  303. data/test/dummy/public/images/menu-current.png +0 -0
  304. data/test/dummy/public/images/menu-hover.png +0 -0
  305. data/test/dummy/public/images/noimage/mini.jpg +0 -0
  306. data/test/dummy/public/images/noimage/product.jpg +0 -0
  307. data/test/dummy/public/images/noimage/small.jpg +0 -0
  308. data/test/dummy/public/images/openid-inputicon.gif +0 -0
  309. data/test/dummy/public/images/orange/left_03.png +0 -0
  310. data/test/dummy/public/images/orange/right_03.png +0 -0
  311. data/test/dummy/public/images/progress.gif +0 -0
  312. data/test/dummy/public/images/right_01.png +0 -0
  313. data/test/dummy/public/images/right_01_small.png +0 -0
  314. data/test/dummy/public/images/separator.png +0 -0
  315. data/test/dummy/public/images/shadow-top.png +0 -0
  316. data/test/dummy/public/images/shadow_top.png +0 -0
  317. data/test/dummy/public/images/spinner.gif +0 -0
  318. data/test/dummy/public/images/spree.jpg +0 -0
  319. data/test/dummy/public/images/spree/progress.gif +0 -0
  320. data/test/dummy/public/images/spree/spinner.gif +0 -0
  321. data/test/dummy/public/images/spree/spree.jpg +0 -0
  322. data/test/dummy/public/images/step-progress/completed-completed.gif +0 -0
  323. data/test/dummy/public/images/step-progress/completed-current.gif +0 -0
  324. data/test/dummy/public/images/step-progress/completed-first.gif +0 -0
  325. data/test/dummy/public/images/step-progress/current-first.gif +0 -0
  326. data/test/dummy/public/images/step-progress/current-incomplete.gif +0 -0
  327. data/test/dummy/public/images/step-progress/current-right.gif +0 -0
  328. data/test/dummy/public/images/step-progress/incomplete-incomplete.gif +0 -0
  329. data/test/dummy/public/images/step-progress/incomplete-right.gif +0 -0
  330. data/test/dummy/public/images/steps/1.png +0 -0
  331. data/test/dummy/public/images/steps/1_small.png +0 -0
  332. data/test/dummy/public/images/steps/2.png +0 -0
  333. data/test/dummy/public/images/steps/2_small.png +0 -0
  334. data/test/dummy/public/images/steps/3.png +0 -0
  335. data/test/dummy/public/images/steps/3_small.png +0 -0
  336. data/test/dummy/public/images/steps/4.png +0 -0
  337. data/test/dummy/public/images/steps/4_small.png +0 -0
  338. data/test/dummy/public/images/steps/5.png +0 -0
  339. data/test/dummy/public/images/steps/5_small.png +0 -0
  340. data/test/dummy/public/images/steps/6.png +0 -0
  341. data/test/dummy/public/images/steps/6_small.png +0 -0
  342. data/test/dummy/public/images/sxsw-ribbon-v1.png +0 -0
  343. data/test/dummy/public/images/tab_bottom.gif +0 -0
  344. data/test/dummy/public/images/tile-header.png +0 -0
  345. data/test/dummy/public/images/tile-slider.png +0 -0
  346. data/test/dummy/public/images/top-shine.png +0 -0
  347. data/test/dummy/public/images/tree-nav-icons/bullet.gif +0 -0
  348. data/test/dummy/public/images/tree-nav-icons/minus.gif +0 -0
  349. data/test/dummy/public/images/tree-nav-icons/plus.gif +0 -0
  350. data/test/dummy/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  351. data/test/dummy/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  352. data/test/dummy/public/images/update.png +0 -0
  353. data/test/dummy/public/images/visa_cid.gif +0 -0
  354. data/test/dummy/public/images/wrapper-back-2.png +0 -0
  355. data/test/dummy/public/images/wrapper-back.png +0 -0
  356. data/test/dummy/public/images/yui-menubaritem_submenuindicator.png +0 -0
  357. data/test/dummy/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  358. data/test/dummy/public/images/yui-menuitem_checkbox.png +0 -0
  359. data/test/dummy/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  360. data/test/dummy/public/images/yui-menuitem_submenuindicator.png +0 -0
  361. data/test/dummy/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  362. data/test/dummy/public/images/yui-sprite.png +0 -0
  363. data/test/dummy/public/javascripts/additional-methods.js +0 -236
  364. data/test/dummy/public/javascripts/admin.js +0 -226
  365. data/test/dummy/public/javascripts/admin/address_states.js +0 -25
  366. data/test/dummy/public/javascripts/admin/checkouts/edit.js +0 -130
  367. data/test/dummy/public/javascripts/admin/orders/edit.js +0 -23
  368. data/test/dummy/public/javascripts/admin/orders/edit_form.js +0 -16
  369. data/test/dummy/public/javascripts/admin/payments/new.js +0 -9
  370. data/test/dummy/public/javascripts/admin/promotions.js +0 -26
  371. data/test/dummy/public/javascripts/admin/unobtrusive_handlers.js +0 -15
  372. data/test/dummy/public/javascripts/application.js +0 -12
  373. data/test/dummy/public/javascripts/calculator.js +0 -15
  374. data/test/dummy/public/javascripts/checkout.js +0 -75
  375. data/test/dummy/public/javascripts/controls.js +0 -965
  376. data/test/dummy/public/javascripts/dashboard.js +0 -143
  377. data/test/dummy/public/javascripts/datepicker.js +0 -1445
  378. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  379. data/test/dummy/public/javascripts/effects.js +0 -1123
  380. data/test/dummy/public/javascripts/gateway.js +0 -13
  381. data/test/dummy/public/javascripts/jqPlot/excanvas.min.js +0 -1
  382. data/test/dummy/public/javascripts/jqPlot/jquery.jqplot.min.js +0 -14
  383. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +0 -14
  384. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +0 -14
  385. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +0 -14
  386. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +0 -14
  387. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +0 -14
  388. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +0 -14
  389. data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +0 -14
  390. data/test/dummy/public/javascripts/jquery-1.4.2.min.js +0 -154
  391. data/test/dummy/public/javascripts/jquery-ui.js +0 -188
  392. data/test/dummy/public/javascripts/jquery.alerts/images/help.gif +0 -0
  393. data/test/dummy/public/javascripts/jquery.alerts/images/important.gif +0 -0
  394. data/test/dummy/public/javascripts/jquery.alerts/images/info.gif +0 -0
  395. data/test/dummy/public/javascripts/jquery.alerts/images/title.gif +0 -0
  396. data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.css +0 -57
  397. data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.js +0 -235
  398. data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -30
  399. data/test/dummy/public/javascripts/jquery.autocomplete.min.js +0 -13
  400. data/test/dummy/public/javascripts/jquery.cookie.js +0 -96
  401. data/test/dummy/public/javascripts/jquery.delayedobserver.js +0 -35
  402. data/test/dummy/public/javascripts/jquery.js +0 -19
  403. data/test/dummy/public/javascripts/jquery.suggest.js +0 -276
  404. data/test/dummy/public/javascripts/jquery.template.js +0 -255
  405. data/test/dummy/public/javascripts/jquery.tokeninput.js +0 -618
  406. data/test/dummy/public/javascripts/jquery.validate.min.js +0 -16
  407. data/test/dummy/public/javascripts/jrails.autocomplete.js +0 -274
  408. data/test/dummy/public/javascripts/jrails.js +0 -1
  409. data/test/dummy/public/javascripts/jsTree/jquery.jstree.js +0 -3510
  410. data/test/dummy/public/javascripts/jsTree/jquery.tree.js +0 -2058
  411. data/test/dummy/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +0 -129
  412. data/test/dummy/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  413. data/test/dummy/public/javascripts/jsTree/themes/apple/d.png +0 -0
  414. data/test/dummy/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  415. data/test/dummy/public/javascripts/jsTree/themes/apple/icons.png +0 -0
  416. data/test/dummy/public/javascripts/jsTree/themes/apple/style.css +0 -60
  417. data/test/dummy/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  418. data/test/dummy/public/javascripts/lang/af.js +0 -40
  419. data/test/dummy/public/javascripts/lang/ar.js +0 -50
  420. data/test/dummy/public/javascripts/lang/de.js +0 -40
  421. data/test/dummy/public/javascripts/lang/du.js +0 -40
  422. data/test/dummy/public/javascripts/lang/en.js +0 -42
  423. data/test/dummy/public/javascripts/lang/es.js +0 -41
  424. data/test/dummy/public/javascripts/lang/fi.js +0 -40
  425. data/test/dummy/public/javascripts/lang/fr.js +0 -44
  426. data/test/dummy/public/javascripts/lang/gr.js +0 -40
  427. data/test/dummy/public/javascripts/lang/he.js +0 -49
  428. data/test/dummy/public/javascripts/lang/it.js +0 -13
  429. data/test/dummy/public/javascripts/lang/nl.js +0 -40
  430. data/test/dummy/public/javascripts/lang/no.js +0 -40
  431. data/test/dummy/public/javascripts/lang/pt.js +0 -50
  432. data/test/dummy/public/javascripts/lang/ro.js +0 -40
  433. data/test/dummy/public/javascripts/lang/ru.js +0 -40
  434. data/test/dummy/public/javascripts/lang/sp.js +0 -40
  435. data/test/dummy/public/javascripts/lang/sv.js +0 -41
  436. data/test/dummy/public/javascripts/lang/ua.js +0 -40
  437. data/test/dummy/public/javascripts/localization/messages_cn.js +0 -24
  438. data/test/dummy/public/javascripts/localization/messages_cs.js +0 -23
  439. data/test/dummy/public/javascripts/localization/messages_da.js +0 -21
  440. data/test/dummy/public/javascripts/localization/messages_de.js +0 -21
  441. data/test/dummy/public/javascripts/localization/messages_es.js +0 -24
  442. data/test/dummy/public/javascripts/localization/messages_fr.js +0 -23
  443. data/test/dummy/public/javascripts/localization/messages_hu.js +0 -21
  444. data/test/dummy/public/javascripts/localization/messages_it.js +0 -26
  445. data/test/dummy/public/javascripts/localization/messages_kk.js +0 -23
  446. data/test/dummy/public/javascripts/localization/messages_nl.js +0 -23
  447. data/test/dummy/public/javascripts/localization/messages_no.js +0 -23
  448. data/test/dummy/public/javascripts/localization/messages_pl.js +0 -23
  449. data/test/dummy/public/javascripts/localization/messages_ptbr.js +0 -30
  450. data/test/dummy/public/javascripts/localization/messages_ro.js +0 -24
  451. data/test/dummy/public/javascripts/localization/messages_ru.js +0 -23
  452. data/test/dummy/public/javascripts/localization/messages_se.js +0 -23
  453. data/test/dummy/public/javascripts/localization/messages_sk.js +0 -21
  454. data/test/dummy/public/javascripts/localization/messages_tr.js +0 -24
  455. data/test/dummy/public/javascripts/localization/messages_tw.js +0 -24
  456. data/test/dummy/public/javascripts/localization/messages_ua.js +0 -24
  457. data/test/dummy/public/javascripts/nested-attribute.js +0 -26
  458. data/test/dummy/public/javascripts/open_id.js +0 -15
  459. data/test/dummy/public/javascripts/product.js +0 -49
  460. data/test/dummy/public/javascripts/prototype.js +0 -6001
  461. data/test/dummy/public/javascripts/rails.js +0 -127
  462. data/test/dummy/public/javascripts/taxonomy.js +0 -197
  463. data/test/dummy/public/javascripts/zone.js +0 -40
  464. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  465. data/test/dummy/public/stylesheets/admin/admin-forms.css +0 -159
  466. data/test/dummy/public/stylesheets/admin/admin-reset.css +0 -67
  467. data/test/dummy/public/stylesheets/admin/admin-tables.css +0 -39
  468. data/test/dummy/public/stylesheets/admin/admin-typography.css +0 -117
  469. data/test/dummy/public/stylesheets/admin/admin.css +0 -579
  470. data/test/dummy/public/stylesheets/admin/autocomplete.css +0 -73
  471. data/test/dummy/public/stylesheets/admin/dashboard.css +0 -143
  472. data/test/dummy/public/stylesheets/admin/edit_checkouts.css +0 -57
  473. data/test/dummy/public/stylesheets/admin/grids.css +0 -314
  474. data/test/dummy/public/stylesheets/admin/promotions.css +0 -54
  475. data/test/dummy/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +0 -7
  476. data/test/dummy/public/stylesheets/admin/token-input.css +0 -109
  477. data/test/dummy/public/stylesheets/admin/yui-includes.css +0 -14
  478. data/test/dummy/public/stylesheets/datepicker.css +0 -263
  479. data/test/dummy/public/stylesheets/jquery.autocomplete.css +0 -48
  480. data/test/dummy/public/stylesheets/scaffold.css +0 -54
  481. data/test/dummy/public/stylesheets/screen.css +0 -1195
  482. data/test/dummy/script/rails +0 -6
  483. data/test/functional/press_controller_test.rb +0 -13
  484. data/test/integration/admin/press_test.rb +0 -15
  485. data/test/support/helper_methods.rb +0 -11
  486. data/test/support/integration_case.rb +0 -25
@@ -1,57 +0,0 @@
1
- #popup_container {
2
- font-family: Arial, sans-serif;
3
- font-size: 12px;
4
- min-width: 300px; /* Dialog will be no smaller than this */
5
- max-width: 600px; /* Dialog will wrap after this width */
6
- background: #FFF;
7
- border: solid 5px #999;
8
- color: #000;
9
- -moz-border-radius: 5px;
10
- -webkit-border-radius: 5px;
11
- border-radius: 5px;
12
- }
13
-
14
- #popup_title {
15
- font-size: 14px;
16
- font-weight: bold;
17
- text-align: center;
18
- line-height: 1.75em;
19
- color: #666;
20
- background: #CCC url(images/title.gif) top repeat-x;
21
- border: solid 1px #FFF;
22
- border-bottom: solid 1px #999;
23
- cursor: default;
24
- padding: 0em;
25
- margin: 0em;
26
- }
27
-
28
- #popup_content {
29
- background: 16px 16px no-repeat url(images/info.gif);
30
- padding: 1em 1.75em;
31
- margin: 0em;
32
- }
33
-
34
- #popup_content.alert {
35
- background-image: url(images/info.gif);
36
- }
37
-
38
- #popup_content.confirm {
39
- background-image: url(images/important.gif);
40
- }
41
-
42
- #popup_content.prompt {
43
- background-image: url(images/help.gif);
44
- }
45
-
46
- #popup_message {
47
- padding-left: 48px;
48
- }
49
-
50
- #popup_panel {
51
- text-align: center;
52
- margin: 1em 0em 0em 1em;
53
- }
54
-
55
- #popup_prompt {
56
- margin: .5em 0em;
57
- }
@@ -1,235 +0,0 @@
1
- // jQuery Alert Dialogs Plugin
2
- //
3
- // Version 1.1
4
- //
5
- // Cory S.N. LaViska
6
- // A Beautiful Site (http://abeautifulsite.net/)
7
- // 14 May 2009
8
- //
9
- // Visit http://abeautifulsite.net/notebook/87 for more information
10
- //
11
- // Usage:
12
- // jAlert( message, [title, callback] )
13
- // jConfirm( message, [title, callback] )
14
- // jPrompt( message, [value, title, callback] )
15
- //
16
- // History:
17
- //
18
- // 1.00 - Released (29 December 2008)
19
- //
20
- // 1.01 - Fixed bug where unbinding would destroy all resize events
21
- //
22
- // License:
23
- //
24
- // This plugin is dual-licensed under the GNU General Public License and the MIT License and
25
- // is copyright 2008 A Beautiful Site, LLC.
26
- //
27
- (function($) {
28
-
29
- $.alerts = {
30
-
31
- // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
32
-
33
- verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
34
- horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
35
- repositionOnResize: true, // re-centers the dialog on window resize
36
- overlayOpacity: .01, // transparency level of overlay
37
- overlayColor: '#FFF', // base color of overlay
38
- draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
39
- okButton: ' OK ', // text for the OK button
40
- cancelButton: ' Cancel ', // text for the Cancel button
41
- dialogClass: null, // if specified, this class will be applied to all dialogs
42
-
43
- // Public methods
44
-
45
- alert: function(message, title, callback) {
46
- if( title == null ) title = 'Alert';
47
- $.alerts._show(title, message, null, 'alert', function(result) {
48
- if( callback ) callback(result);
49
- });
50
- },
51
-
52
- confirm: function(message, title, callback) {
53
- if( title == null ) title = 'Confirm';
54
- $.alerts._show(title, message, null, 'confirm', function(result) {
55
- if( callback ) callback(result);
56
- });
57
- },
58
-
59
- prompt: function(message, value, title, callback) {
60
- if( title == null ) title = 'Prompt';
61
- $.alerts._show(title, message, value, 'prompt', function(result) {
62
- if( callback ) callback(result);
63
- });
64
- },
65
-
66
- // Private methods
67
-
68
- _show: function(title, msg, value, type, callback) {
69
-
70
- $.alerts._hide();
71
- $.alerts._overlay('show');
72
-
73
- $("BODY").append(
74
- '<div id="popup_container">' +
75
- '<h1 id="popup_title"></h1>' +
76
- '<div id="popup_content">' +
77
- '<div id="popup_message"></div>' +
78
- '</div>' +
79
- '</div>');
80
-
81
- if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass);
82
-
83
- // IE6 Fix
84
- var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed';
85
-
86
- $("#popup_container").css({
87
- position: pos,
88
- zIndex: 99999,
89
- padding: 0,
90
- margin: 0
91
- });
92
-
93
- $("#popup_title").text(title);
94
- $("#popup_content").addClass(type);
95
- $("#popup_message").text(msg);
96
- $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '<br />') );
97
-
98
- $("#popup_container").css({
99
- minWidth: $("#popup_container").outerWidth(),
100
- maxWidth: $("#popup_container").outerWidth()
101
- });
102
-
103
- $.alerts._reposition();
104
- $.alerts._maintainPosition(true);
105
-
106
- switch( type ) {
107
- case 'alert':
108
- $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /></div>');
109
- $("#popup_ok").click( function() {
110
- $.alerts._hide();
111
- callback(true);
112
- });
113
- $("#popup_ok").focus().keypress( function(e) {
114
- if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click');
115
- });
116
- break;
117
- case 'confirm':
118
- $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
119
- $("#popup_ok").click( function() {
120
- $.alerts._hide();
121
- if( callback ) callback(true);
122
- });
123
- $("#popup_cancel").click( function() {
124
- $.alerts._hide();
125
- if( callback ) callback(false);
126
- });
127
- $("#popup_ok").focus();
128
- $("#popup_ok, #popup_cancel").keypress( function(e) {
129
- if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
130
- if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
131
- });
132
- break;
133
- case 'prompt':
134
- $("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
135
- $("#popup_prompt").width( $("#popup_message").width() );
136
- $("#popup_ok").click( function() {
137
- var val = $("#popup_prompt").val();
138
- $.alerts._hide();
139
- if( callback ) callback( val );
140
- });
141
- $("#popup_cancel").click( function() {
142
- $.alerts._hide();
143
- if( callback ) callback( null );
144
- });
145
- $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) {
146
- if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
147
- if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
148
- });
149
- if( value ) $("#popup_prompt").val(value);
150
- $("#popup_prompt").focus().select();
151
- break;
152
- }
153
-
154
- // Make draggable
155
- if( $.alerts.draggable ) {
156
- try {
157
- $("#popup_container").draggable({ handle: $("#popup_title") });
158
- $("#popup_title").css({ cursor: 'move' });
159
- } catch(e) { /* requires jQuery UI draggables */ }
160
- }
161
- },
162
-
163
- _hide: function() {
164
- $("#popup_container").remove();
165
- $.alerts._overlay('hide');
166
- $.alerts._maintainPosition(false);
167
- },
168
-
169
- _overlay: function(status) {
170
- switch( status ) {
171
- case 'show':
172
- $.alerts._overlay('hide');
173
- $("BODY").append('<div id="popup_overlay"></div>');
174
- $("#popup_overlay").css({
175
- position: 'absolute',
176
- zIndex: 99998,
177
- top: '0px',
178
- left: '0px',
179
- width: '100%',
180
- height: $(document).height(),
181
- background: $.alerts.overlayColor,
182
- opacity: $.alerts.overlayOpacity
183
- });
184
- break;
185
- case 'hide':
186
- $("#popup_overlay").remove();
187
- break;
188
- }
189
- },
190
-
191
- _reposition: function() {
192
- var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset;
193
- var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset;
194
- if( top < 0 ) top = 0;
195
- if( left < 0 ) left = 0;
196
-
197
- // IE6 fix
198
- if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
199
-
200
- $("#popup_container").css({
201
- top: top + 'px',
202
- left: left + 'px'
203
- });
204
- $("#popup_overlay").height( $(document).height() );
205
- },
206
-
207
- _maintainPosition: function(status) {
208
- if( $.alerts.repositionOnResize ) {
209
- switch(status) {
210
- case true:
211
- $(window).bind('resize', $.alerts._reposition);
212
- break;
213
- case false:
214
- $(window).unbind('resize', $.alerts._reposition);
215
- break;
216
- }
217
- }
218
- }
219
-
220
- }
221
-
222
- // Shortuct functions
223
- jAlert = function(message, title, callback) {
224
- $.alerts.alert(message, title, callback);
225
- }
226
-
227
- jConfirm = function(message, title, callback) {
228
- $.alerts.confirm(message, title, callback);
229
- };
230
-
231
- jPrompt = function(message, value, title, callback) {
232
- $.alerts.prompt(message, value, title, callback);
233
- };
234
-
235
- })(jQuery);
@@ -1,30 +0,0 @@
1
- /* Spree Custom dialog styles */
2
- #popup_container.spree {
3
-
4
- color: #fff;
5
- background: #005294;
6
- border-color: #113F66;
7
- }
8
-
9
- #popup_container.spree #popup_title {
10
- color: #FFF;
11
- font-weight: normal;
12
- text-align: left;
13
- background: #76A5CC;
14
- border: solid 1px #005294;
15
- padding-left: 1em;
16
- }
17
-
18
- #popup_container.spree #popup_content {
19
- background: none;
20
- }
21
-
22
- #popup_container.spree #popup_message {
23
- padding-left: 0em;
24
- }
25
-
26
- #popup_container.spree INPUT[type='button'] {
27
- border: outset 2px #76A5CC;
28
- color: #fff;
29
- background: #3778AE;
30
- }
@@ -1,13 +0,0 @@
1
- /*
2
- * jQuery Autocomplete plugin 1.1
3
- *
4
- * Copyright (c) 2009 Jörn Zaefferer
5
- *
6
- * Dual licensed under the MIT and GPL licenses:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- * http://www.gnu.org/licenses/gpl.html
9
- *
10
- * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
11
- */;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){hasFocus=1;lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false;}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){var seperator=options.multipleSeparator.length;var cursorAt=$(input).selection().start;var wordAt,progress=0;$.each(words,function(i,word){progress+=word.length;if(cursorAt<=progress){wordAt=i;return false;}progress+=seperator;});words[wordAt]=v;v=words.join(options.multipleSeparator);}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value)return[""];if(!options.multiple)return[$.trim(value)];return $.map(value.split(options.multipleSeparator),function(word){return $.trim(value).length?$.trim(word):null;});}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);if(words.length==1)return words[0];var cursorAt=$(input).selection().start;if(cursorAt==value.length){words=trimWords(value)}else{words=trimWords(value.replace(value.substring(cursorAt),""));}return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$(input).selection(previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}else{$input.val("");$input.trigger("result",null);}}});}};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(options.matchContains=="word"){i=s.toLowerCase().search("\\b"+sub.toLowerCase());}if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else
12
- if(data[q]){return data[q];}else
13
- if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)element.css("width",options.width);needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}if($.fn.bgiframe)list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.fn.selection=function(start,end){if(start!==undefined){return this.each(function(){if(this.createTextRange){var selRange=this.createTextRange();if(end===undefined||start==end){selRange.move("character",start);selRange.select();}else{selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}}else if(this.setSelectionRange){this.setSelectionRange(start,end);}else if(this.selectionStart){this.selectionStart=start;this.selectionEnd=end;}});}var field=this[0];if(field.createTextRange){var range=document.selection.createRange(),orig=field.value,teststring="<->",textLength=range.text.length;range.text=teststring;var caretAt=field.value.indexOf(teststring);field.value=orig;this.selection(caretAt,caretAt+textLength);return{start:caretAt,end:caretAt+textLength}}else if(field.selectionStart!==undefined){return{start:field.selectionStart,end:field.selectionEnd}}};})(jQuery);
@@ -1,96 +0,0 @@
1
- /**
2
- * Cookie plugin
3
- *
4
- * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
5
- * Dual licensed under the MIT and GPL licenses:
6
- * http://www.opensource.org/licenses/mit-license.php
7
- * http://www.gnu.org/licenses/gpl.html
8
- *
9
- */
10
-
11
- /**
12
- * Create a cookie with the given name and value and other optional parameters.
13
- *
14
- * @example $.cookie('the_cookie', 'the_value');
15
- * @desc Set the value of a cookie.
16
- * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
17
- * @desc Create a cookie with all available options.
18
- * @example $.cookie('the_cookie', 'the_value');
19
- * @desc Create a session cookie.
20
- * @example $.cookie('the_cookie', null);
21
- * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
22
- * used when the cookie was set.
23
- *
24
- * @param String name The name of the cookie.
25
- * @param String value The value of the cookie.
26
- * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
27
- * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
28
- * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
29
- * If set to null or omitted, the cookie will be a session cookie and will not be retained
30
- * when the the browser exits.
31
- * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
32
- * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
33
- * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
34
- * require a secure protocol (like HTTPS).
35
- * @type undefined
36
- *
37
- * @name $.cookie
38
- * @cat Plugins/Cookie
39
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
40
- */
41
-
42
- /**
43
- * Get the value of a cookie with the given name.
44
- *
45
- * @example $.cookie('the_cookie');
46
- * @desc Get the value of a cookie.
47
- *
48
- * @param String name The name of the cookie.
49
- * @return The value of the cookie.
50
- * @type String
51
- *
52
- * @name $.cookie
53
- * @cat Plugins/Cookie
54
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
55
- */
56
- jQuery.cookie = function(name, value, options) {
57
- if (typeof value != 'undefined') { // name and value given, set cookie
58
- options = options || {};
59
- if (value === null) {
60
- value = '';
61
- options.expires = -1;
62
- }
63
- var expires = '';
64
- if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
65
- var date;
66
- if (typeof options.expires == 'number') {
67
- date = new Date();
68
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
69
- } else {
70
- date = options.expires;
71
- }
72
- expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
73
- }
74
- // CAUTION: Needed to parenthesize options.path and options.domain
75
- // in the following expressions, otherwise they evaluate to undefined
76
- // in the packed version for some reason...
77
- var path = options.path ? '; path=' + (options.path) : '';
78
- var domain = options.domain ? '; domain=' + (options.domain) : '';
79
- var secure = options.secure ? '; secure' : '';
80
- document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
81
- } else { // only name given, get cookie
82
- var cookieValue = null;
83
- if (document.cookie && document.cookie != '') {
84
- var cookies = document.cookie.split(';');
85
- for (var i = 0; i < cookies.length; i++) {
86
- var cookie = jQuery.trim(cookies[i]);
87
- // Does this cookie string begin with the name we want?
88
- if (cookie.substring(0, name.length + 1) == (name + '=')) {
89
- cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
90
- break;
91
- }
92
- }
93
- }
94
- return cookieValue;
95
- }
96
- };
@@ -1,35 +0,0 @@
1
- /*
2
- jQuery delayed observer - 0.8
3
- http://code.google.com/p/jquery-utils/
4
-
5
- (c) Maxime Haineault <haineault@gmail.com>
6
- http://haineault.com
7
-
8
- MIT License (http://www.opensource.org/licenses/mit-license.php)
9
-
10
- */
11
-
12
- (function($){
13
- $.extend($.fn, {
14
- delayedObserver: function(callback, delay, options){
15
- return this.each(function(){
16
- var el = $(this);
17
- var op = options || {};
18
- el.data('oldval', el.val())
19
- .data('delay', delay || 0.5)
20
- .data('condition', op.condition || function() { return ($(this).data('oldval') == $(this).val()); })
21
- .data('callback', callback)
22
- [(op.event||'keyup')](function(){
23
- if (el.data('condition').apply(el)) { return; }
24
- else {
25
- if (el.data('timer')) { clearTimeout(el.data('timer')); }
26
- el.data('timer', setTimeout(function(){
27
- el.data('callback').apply(el);
28
- }, el.data('delay') * 1000));
29
- el.data('oldval', el.val());
30
- }
31
- });
32
- });
33
- }
34
- });
35
- })(jQuery);