Commit 1b750968 authored by Muhamad's avatar Muhamad

modal hide

parent 318a31cf
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
<i class="icon-pie-chart5"></i> <i class="icon-pie-chart5"></i>
</a> </a>
</li> </li>
<!-- <li style="margin-top: 60vh;position: absolute;"> <li style="margin-top: 60vh;position: absolute;">
<a href="#" id="btn-hide-all" class="side-bar-but" style="position: absolute;margin-top: 20px; display: block!important;"> <a href="#" id="btn-hide-all" class="side-bar-but" style="position: absolute;margin-top: 20px; display: block!important;">
<i class="icon-arrow-right13"></i> <i class="icon-arrow-right13"></i>
</a> </a>
</li> --> </li>
</ul> </ul>
...@@ -468,7 +468,7 @@ ...@@ -468,7 +468,7 @@
<td>{{all.tgl_selesai}}</td> <td>{{all.tgl_selesai}}</td>
<td>{{all.anggaran}}</td> <td>{{all.anggaran}}</td>
<td class="text-center "> <td class="text-center ">
<a class="btn mdlFire " onclick="loaddetailid( '{{all.id_object}}') " data-toggle="modal" data-target="#modal_detail_perbaikan " style="background-color: #5A9AFB;color: white;border-radius: 5px;width: 85px;height: 25px; "> <a class="btn mdlFire " onclick="loaddetailid( '{{all.id_object}}') " data-toggle="modal" data-target="#modal_detail_perbaikan" style="background-color: #5A9AFB;color: white;border-radius: 5px;width: 85px;height: 25px; ">
<div style="margin-top: -5px; "> <div style="margin-top: -5px; ">
<i class="icon-search4 text-muted text-size-base " style="color: white;font-size: 10px; "></i> <i class="icon-search4 text-muted text-size-base " style="color: white;font-size: 10px; "></i>
<span>&nbsp;&nbsp; <span>&nbsp;&nbsp;
...@@ -794,7 +794,7 @@ ...@@ -794,7 +794,7 @@
}; };
$("#tbody_perbaikan ").html(data_perbaikan) $("#tbody_perbaikan ").html(data_perbaikan)
datatatataI() datatatata()
} }
...@@ -845,7 +845,11 @@ ...@@ -845,7 +845,11 @@
} }
$("#perbaikan_manage").click(function() { $("#perbaikan_manage").click(function() {
datatatata() $(".datatable-show-all.list_perb").dataTable().fnDestroy();
setTimeout(function() {
datatatata()
}, 100);
}) })
...@@ -862,6 +866,8 @@ ...@@ -862,6 +866,8 @@
dataType: 'json', dataType: 'json',
type: 'post', type: 'post',
success: function(data) { success: function(data) {
$("#modal_detail_perbaikan").modal('show')
$(".map_detail_p").html(`<div id="map_detail_perbaikan" style=" position: relative; height: 220px; width: 90%; border-radius: 5px; ">`) $(".map_detail_p").html(`<div id="map_detail_perbaikan" style=" position: relative; height: 220px; width: 90%; border-radius: 5px; ">`)
var map_detail_perbaikan = L.map('map_detail_perbaikan', { var map_detail_perbaikan = L.map('map_detail_perbaikan', {
...@@ -1243,6 +1249,6 @@ ...@@ -1243,6 +1249,6 @@
} }
function destroymodper() { function destroymodper() {
$("#modal_detail_perbaikan").css("display", "none") $("#modal_detail_perbaikan").modal('hide')
} }
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment