Browse Source

Merge branch 'master' of https://revinr.site/mostafij-revinr/student-admission

Israat Zarin 1 year ago
parent
commit
6f4cd350fb

+ 1 - 1
app/Http/Controllers/AjaxController.php

@@ -93,7 +93,7 @@ class AjaxController extends Controller
                 });
             }
             return response(
-                ['msg'=>'Your login permission successfully updated.']
+                ['msg'=>'Successfully updated.']
             );
 
         }elseif($name=="set_country"){

+ 5 - 1
resources/views/admin/sub_contents/register_pending_teacher_load.blade.php

@@ -122,7 +122,11 @@
                         $.post("{{ route('ajax-post', ['name'=>'teacher_user_status_change'])}}" ,form_data).done(function(res){
 
                                 pop_up_msg(res.msg);
-                                window.location.reload();
+                                //window.location.reload();
+                                fetch_sub_content(
+                                    '#pending_teacher_load',
+                                    "{{ route('sub-content', ['name'=>'register_pending_teacher_load']) }}"
+                                );
 
                         }).fail(function(error){