Created
December 8, 2010 19:29
-
-
Save batasrki/733771 to your computer and use it in GitHub Desktop.
Evil, man.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript" type="text/JavaScript"> | |
<!-- | |
var shipMethods = new Array(); | |
shipMethods.push('<select name="order[ship_method]" id="ship_method">\n<%= options_for_select( Order::SHIP_METHODS_CA_US, @order.ship_method ).gsub(/\n/, '\n').gsub(/\//, '\/') %>\n<\/select>'); | |
shipMethods.push('<select name="order[ship_method]" id="ship_method">\n<%= options_for_select( Order::SHIP_METHODS_UK, @order.ship_method ).gsub(/\n/, '\n').gsub(/\//, '\/') %>\n<\/select>'); | |
shipMethods.push('<select name="order[ship_method]" id="ship_method">\n<%= options_for_select( Order::SHIP_METHODS_INTL, @order.ship_method ).gsub(/\n/, '\n').gsub(/\//, '\/') %>\n<\/select>'); | |
var cardTypes = new Array(); | |
cardTypes.push('<select name="order[card_type]" id="order_card_type">\n<%= options_for_select( Order::CARD_TYPES, @order.card_type ).gsub("\n",'\n') %>\n<\/select>'); | |
cardTypes.push('<select name="order[card_type]" id="order_card_type">\n<%= options_for_select( Order::CARD_TYPES_UK, @order.card_type ).gsub("\n",'\n') %>\n<\/select>'); | |
//--> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment