Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="doctors_edit_form">
- <%= render :partial => 'profile_tabs' %>
- <div id="general_information" class="profile_tabs">
- <% form_for current_user do |f| -%>
- <%= render :partial => 'shared/fields_profile_general', :locals => { :f => f } %>
- <div><%= submit_tag 'Save General Information' %></div>
- <% end -%>
- </div> <%# general_information -%>
- <div id="profile_information" class="profile_tabs">
- <% form_for @doctor do |f| -%>
- <%= render :partial => 'fields', :locals => { :f => f } %>
- <% end -%>
- <div class="tab_footer"><%= submit_tag 'Save' %></div>
- </div> <%# profile_information %>
- </div> <%# doctors_edit_form %>
- <script type="text/javascript" charset="utf-8">
- document.observe('dom:loaded', initShowWindow);
- function initShowWindow(e) {
- $$('.profile_tabs').each(function (elt) {
- elt.observe('click', hideMatchingWindow);
- });
- };
- function hideMatchingWindow(e) {
- var id = e.element().id.replace(/(.*)_information/, $1);
- console.log(id);
- // $(id).hide();
- // this.show();
- }
- </script>
Add Comment
Please, Sign In to add comment