Guest User

Untitled

a guest
May 28th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <div id="doctors_edit_form">
  2.  
  3. <%= render :partial => 'profile_tabs' %>
  4.  
  5. <div id="general_information">
  6. <% form_for current_user do |f| -%>
  7. <%= render :partial => 'shared/fields_profile_general', :locals => { :f => f } %>
  8. <div><%= submit_tag 'Save General Information' %></div>
  9. <% end -%>
  10. </div> <%# general_information -%>
  11.  
  12. <div id="profile_information">
  13. <% form_for @doctor do |f| -%>
  14. <%= render :partial => 'fields', :locals => { :f => f } %>
  15. <% end -%>
  16. <div class="tab_footer"><%= submit_tag 'Save' %></div>
  17. </div> <%# profile_information %>
  18.  
  19. </div> <%# doctors_edit_form %>
  20.  
  21. <script type="text/javascript" charset="utf-8">
  22. // Event.observe('general_information_tab', 'click', function(e) { hideWindow('profile_information_tab'); });
  23. // Event.observe('profile_information_tab', 'click', function(e) { hideWindow('general_information_tab'); });
  24.  
  25.  
  26. document.observe('dom:loaded', initShowWindow);
  27. function initShowWindow(e) {Event.observe('general_information_tab', 'click', hideWindow('profile_information'))};
  28.  
  29. function hideWindow(e) {
  30. console.log(e);
  31. $(e).hide();
  32. // this.show();
  33. }
  34.  
  35. </script>
Add Comment
Please, Sign In to add comment