Mostafijur Rahman 1 year ago
parent
commit
cd28495eef
1 changed files with 9 additions and 4 deletions
  1. 9 4
      resources/views/teacher_profile.blade.php

+ 9 - 4
resources/views/teacher_profile.blade.php

@@ -857,10 +857,9 @@ tbody, td, tfoot, th, thead, tr {
                                                                 <span class="title p-2" style="margin-bottom: 0px !important; color: #141639c4; font-weight:bold !important;">Profile</span>
                                                             </div>
                                                             <div class="right" style="width: 10%;">
-                                                                <span class="title" style="font-size:11px; font-weight: 600;">
-                                                                    <a role="button" data-bs-toggle="collapse" data-bs-parent="#collapse" href="#collapse1" aria-expanded="true" aria-controls="collapse1">
-                                                                        <button type="button" class="btn btn2" data-toggle="collapse" data-target="#demo16" style="padding: 2px 5px !important; font-size: 11px;"><i class="fa fa-pencil"></i></button>
-                                                                    </a>
+                                                                <span class="title" style="font-size:11px; font-weight: 600;"> 
+                                                                        <button type="button" class="btn btn2" id="edit_profile_open_hide" style="padding: 2px 5px !important; font-size: 11px;"><i class="fa fa-pencil"></i></button>
+                                                                    
                                                                 </span>
                                                             </div>
                                                         </div>
@@ -1171,6 +1170,9 @@ tbody, td, tfoot, th, thead, tr {
 
 
         $(function(){
+            $("#edit_profile_open_hide").on('click', function(){
+                $("#demo16").show();
+            });
 
             $(".start_date").flatpickr({
                 dateFormat: "M y",
@@ -1223,6 +1225,8 @@ tbody, td, tfoot, th, thead, tr {
                 $.post("{{ route('ajax-post', ['name'=>'update_profile']) }}", form_data, function(res){
                     pop_up_msg(res.msg);
 
+                    $("#demo16").hide();
+
                     fetch_sub_content(
                         '#load_profile_info',
                         "{{ route('sub-content', ['name'=>'load_profile_info']) }}"
@@ -1271,6 +1275,7 @@ tbody, td, tfoot, th, thead, tr {
 
                 $.post("{{ route('ajax-post', ['name'=>'research_interest']) }}", form_data, function(res){
                     pop_up_msg(res.msg);
+                    $('#research').val('');
                     fetch_sub_content(
                         '#load_research_interest',
                         "{{ route('sub-content', ['name'=>'load_research_interest']) }}"