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">
- <% 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">
- <% 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">
- // Event.observe('general_information_tab', 'click', function(e) { hideWindow('profile_information_tab'); });
- // Event.observe('profile_information_tab', 'click', function(e) { hideWindow('general_information_tab'); });
- document.observe('dom:loaded', initShowWindow);
- function initShowWindow(e) {Event.observe('general_information_tab', 'click', hideWindow('profile_information'))};
- function hideWindow(e) {
- console.log(e);
- $(e).hide();
- // this.show();
- }
- </script>
Add Comment
Please, Sign In to add comment