Commit 4eb0fc1f authored by Muhamad's avatar Muhamad

upgrade tabbable, sidebarbutton

parent 6e69280d
...@@ -1400,15 +1400,23 @@ function modal_detail_point_pengaturan(id, db) { ...@@ -1400,15 +1400,23 @@ function modal_detail_point_pengaturan(id, db) {
var hasil = (JSON.stringify(poinin.toGeoJSON())) var hasil = (JSON.stringify(poinin.toGeoJSON()))
$("#coordinateZoneedit_p").val(hasil); $("#coordinateZoneedit_p").val(hasil);
}) })
$("#edit_point_p").click(function() {
setTimeout(function() {
map_edit_p.invalidateSize();
}, 1000);
})
} }
}); });
} }
$("#edit_point_p").click(function() {
$("#koordinat_cek_p").addClass("active")
$("#info_umum_p").removeClass("active")
$("#left-tab1-feas-upli").addClass("active")
$("#right-tab2-feas-upli").removeClass("active")
setTimeout(function() {
map_edit_p.invalidateSize();
}, 1000);
})
$("#saveuser").on("click", function() { $("#saveuser").on("click", function() {
var isObject = {}; var isObject = {};
var ars = '' var ars = ''
......
...@@ -90,13 +90,38 @@ $("#button_hide_panel").click(function() { ...@@ -90,13 +90,38 @@ $("#button_hide_panel").click(function() {
}) })
var cek_layer_keterangan = 1
var cek_layer_perbaikan = 0
$("#button_keterangan").click(function() { $("#button_keterangan").click(function() {
$(".pace-done").toggleClass("sidebar-move") if (cek_layer_keterangan == 0){
$("#panel-samping").toggleClass("move"); // $("#button_keterangan").removeClass("asctive");
$(".mymodal").toggleClass("input_perbaikan") // $("#button_keterangan").removeAttr("class");
$("#button_unhide_panel").toggleClass("move-btn"); $(".pace-done").toggleClass("sidebar-move")
$("#panel-samping").toggleClass("move");
$(".mymodal").toggleClass("input_perbaikan")
$("#button_unhide_panel").toggleClass("move-btn");
$("#keterangan_button").css("background", "#353847")
$("#perbaikan_manage").css("background", "#1E2233")
cek_layer_keterangan = 1
cek_layer_perbaikan = 0
}else{
$("#button_keterangan").addClass("asctive");
$("#keterangan_button").css("background", "#1E2233")
$("#manage_perbaikan").removeClass("active");
$("#panel-sm").removeClass("active");
$("#panel-sm2").removeClass("active");
$("#panel-sm").css('display', 'none');
cek_layer_keterangan = 0
cek_layer_perbaikan = 0
}
}) })
$("#button_keterangan").addClass("active");
$("#button_unhide_panel").click(function() { $("#button_unhide_panel").click(function() {
...@@ -108,13 +133,31 @@ $("#button_unhide_panel").click(function() { ...@@ -108,13 +133,31 @@ $("#button_unhide_panel").click(function() {
$("#manage_perbaikan").click(function() { $("#manage_perbaikan").click(function() {
$(".pace-done").toggleClass("sidebar-move"); console.log('a')
$("#panel-samping").toggleClass("move"); if(cek_layer_perbaikan == 0){
$(".mymodal").toggleClass("input_perbaikan"); console.log('b')
$("#button_unhide_panel").toggleClass("move-btn"); cek_layer_perbaikan = 1
cek_layer_keterangan = 0
$("#perbaikan-dashboard").toggleClass("perbaikan-dashboard"); $(".pace-done").toggleClass("sidebar-move");
$("#panel-samping").toggleClass("move");
$(".mymodal").toggleClass("input_perbaikan");
$("#button_unhide_panel").toggleClass("move-btn");
$("#panel-sm2").addClass("active");
$("#perbaikan_manage").css("background", "#353847")
$("#keterangan_button").css("background", "#1E2233")
$("#perbaikan-dashboard").toggleClass("perbaikan-dashboard");
}else{
console.log('c')
cek_layer_perbaikan = 0
cek_layer_keterangan = 0
$("#perbaikan_manage").css("background", "#1E2233")
$("#manage_perbaikan").addClass("active");
$("#panel-sm").removeClass("active");
$("#panel-sm2").removeClass("active");
$("#panel-sm").css('display', 'none');
}
}) })
......
...@@ -3757,6 +3757,13 @@ map.on('contextmenu', function(e) { ...@@ -3757,6 +3757,13 @@ map.on('contextmenu', function(e) {
$(".btn_create_jalan").click(function() { $(".btn_create_jalan").click(function() {
$("#tab_koor").addClass("active")
$("#tab_info").removeClass("active")
$("#koordinatjalan").addClass("active")
$("#informasi_create").removeClass("active")
$("#create_all > div > ul").css("display", "block") $("#create_all > div > ul").css("display", "block")
$("#modal__create").modal("show"); $("#modal__create").modal("show");
$(".title-create").html("Create Jalan") $(".title-create").html("Create Jalan")
...@@ -3882,6 +3889,12 @@ map.on('contextmenu', function(e) { ...@@ -3882,6 +3889,12 @@ map.on('contextmenu', function(e) {
}) })
$(".btn_create_bangunan").click(function() { $(".btn_create_bangunan").click(function() {
$("#tab_koor").addClass("active")
$("#tab_info").removeClass("active")
$("#koordinatjalan").addClass("active")
$("#informasi_create").removeClass("active")
$("#create_all > div > ul").css("display", "block") $("#create_all > div > ul").css("display", "block")
$("#modal__create").modal("show"); $("#modal__create").modal("show");
$(".title-create").html("Create Bangunan") $(".title-create").html("Create Bangunan")
...@@ -4162,6 +4175,12 @@ map.on('contextmenu', function(e) { ...@@ -4162,6 +4175,12 @@ map.on('contextmenu', function(e) {
}); });
$(".btn_create_lahan").click(function() { $(".btn_create_lahan").click(function() {
$("#tab_koor").addClass("active")
$("#tab_info").removeClass("active")
$("#koordinatjalan").addClass("active")
$("#informasi_create").removeClass("active")
$("#create_all > div > ul").css("display", "block") $("#create_all > div > ul").css("display", "block")
$("#modal__create").modal("show"); $("#modal__create").modal("show");
$(".title-create").html("Create Lahan") $(".title-create").html("Create Lahan")
...@@ -4327,6 +4346,12 @@ map.on('contextmenu', function(e) { ...@@ -4327,6 +4346,12 @@ map.on('contextmenu', function(e) {
}); });
$(".btn_create_point").click(function() { $(".btn_create_point").click(function() {
$("#tab_koor").addClass("active")
$("#tab_info").removeClass("active")
$("#koordinatjalan").addClass("active")
$("#informasi_create").removeClass("active")
$("#modal__create").modal("show"); $("#modal__create").modal("show");
$(".title-create").html("Create Point") $(".title-create").html("Create Point")
$(".tombol_action_create").html(``) $(".tombol_action_create").html(``)
......
...@@ -2441,8 +2441,8 @@ ...@@ -2441,8 +2441,8 @@
<div class="tabbable"> <div class="tabbable">
<ul class="nav nav-tabs nav-tabs-bottom nav-justified"> <ul class="nav nav-tabs nav-tabs-bottom nav-justified">
<li onclick="changetabs(this)" id="koordinat_cek" class="active"><a href="#left-tab1-feas-upli" data-toggle="tab">Koordinat</a></li> <li onclick="changetabs(this)" id="koordinat_cek_p" class="active"><a href="#left-tab1-feas-upli" data-toggle="tab">Koordinat</a></li>
<li onclick="changetabs(this)" id="info_umum"><a href="#right-tab2-feas-upli" data-toggle="tab">Informasi Umum</a></li> <li onclick="changetabs(this)" id="info_umum_p"><a href="#right-tab2-feas-upli" data-toggle="tab">Informasi Umum</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
......
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