diff --git a/app/views/layouts/contact_carts.html.erb b/app/views/layouts/contact_carts.html.erb deleted file mode 100644 index 3982b27..0000000 --- a/app/views/layouts/contact_carts.html.erb +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - ContactCarts: <%= controller.action_name %> - <%= stylesheet_link_tag 'scaffold' %> - - - -

<%= flash[:notice] %>

- -<%= yield %> - - - diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 9b87bf0..c3c73fc 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -36,21 +36,8 @@ document.observe("dom:loaded", function() { if($('contact-edit-form')){ observe_is_primary_radio_buttons(); } -// if($('contact-cart-remove-submit')){ -// observe_and_transform_contact_cart_submit_button(); -// } + }); -// TODO: Ajaxify submit button -// function observe_and_transform_contact_cart_submit_button(){ -// $('.contact-cart-remove-submit').each(function(el){ -// el.replace('Vcard_delete'); -// }); -// $$('.contact-cart-remove-submit').each(function(el){ -// el.observe('click', function(form) { -// -// }); -// }); -// } function observe_is_primary_radio_buttons(){ $('contact-edit-form').select('[id*="is_primary_true"]').each(