Melakukan Perubahan
This commit is contained in:
@@ -52,7 +52,9 @@ class RealisasiBelanjaController extends Controller
|
|||||||
return redirect(URL::to("/realisasi-belanja"))
|
return redirect(URL::to("/realisasi-belanja"))
|
||||||
->with('error','Data dengan RSK yand dipilih sudah ada!');
|
->with('error','Data dengan RSK yand dipilih sudah ada!');
|
||||||
}
|
}
|
||||||
|
|
||||||
$VwDpaRsk = VwDpaRsk::where("I_ID",$get["rsk"])->first();
|
$VwDpaRsk = VwDpaRsk::where("I_ID",$get["rsk"])->first();
|
||||||
|
|
||||||
$unitSatuan = UnitSatuan::orderBy("id")->get();
|
$unitSatuan = UnitSatuan::orderBy("id")->get();
|
||||||
return view('realisasi_belanja.create', compact("unitSatuan","VwDpaRsk"));
|
return view('realisasi_belanja.create', compact("unitSatuan","VwDpaRsk"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
$("select[name=keg]").append($newOptionKegiatan).trigger('change');
|
$("select[name=keg]").append($newOptionKegiatan).trigger('change');
|
||||||
$("select[name=keg]").attr("disabled", true);
|
$("select[name=keg]").attr("disabled", true);
|
||||||
|
|
||||||
let $newOptionSubKegiatan = $("<option selected='selected'></option>").val("{{ $VwDpaRsk->c_subgiat }}").text("{{ $VwDpaRsk->c_subgiat." | ".$VwDpaRsk->n_subgiat }}")
|
let $newOptionSubKegiatan = $("<option selected='selected'></option>").val("{{ $VwDpaRsk->c_subgiat }}").text("{{ $VwDpaRsk->c_subgiat." | ".trim($VwDpaRsk->n_subgiat) }}")
|
||||||
$("select[name=sk]").val("{{ $VwDpaRsk->c_subgiat }}");
|
$("select[name=sk]").val("{{ $VwDpaRsk->c_subgiat }}");
|
||||||
$("select[name=sk]").append($newOptionSubKegiatan).trigger('change');
|
$("select[name=sk]").append($newOptionSubKegiatan).trigger('change');
|
||||||
$("select[name=sk]").attr("disabled", true);
|
$("select[name=sk]").attr("disabled", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user