Update url

This commit is contained in:
Pusdatin BPKD Jkt
2022-08-08 14:41:55 +07:00
parent cd7da3440d
commit 25e52858f8
11 changed files with 23 additions and 22 deletions
+7 -6
View File
@@ -1,5 +1,6 @@
// Currency Separator
var commaCounter = 10;
var Url = document.currentScript.getAttribute('myUrl');
function numberSeparator(Number) {
Number += '';
@@ -196,7 +197,7 @@ $(document).on("change", ".calculate_field_debt", function(){
$('.skpd_search').select2({
placeholder: 'Pilih SKPD',
ajax: {
url: '/skpd-search',
url:Url+'/skpd-search',
dataType: 'json',
delay: 250,
processResults: function (data) {
@@ -216,7 +217,7 @@ $('.skpd_search').select2({
$('.prog_search').select2({
placeholder: 'Pilih Program',
ajax: {
url: '/item-search-prog',
url: Url+'/item-search-prog',
dataType: 'json',
delay: 250,
processResults: function (data) {
@@ -236,7 +237,7 @@ $('.prog_search').select2({
$('.keg_search').select2({
placeholder: 'Pilih Kegiatan',
ajax: {
url: '/item-search-keg',
url: Url+'/item-search-keg',
dataType: 'json',
delay: 250,
processResults: function (data) {
@@ -256,7 +257,7 @@ $('.keg_search').select2({
$('.sk_search').select2({
placeholder: 'Pilih Sub Kegiatan',
ajax: {
url: '/item-search-sk',
url: Url+'/item-search-sk',
dataType: 'json',
delay: 250,
processResults: function (data) {
@@ -276,7 +277,7 @@ $('.sk_search').select2({
$('.rsk_search').select2({
placeholder: 'Pilih Rinci Sub Kegiatan',
ajax: {
url: '/item-search-rsk',
url: Url+'/item-search-rsk',
dataType: 'json',
delay: 250,
processResults: function (data) {
@@ -356,7 +357,7 @@ $($(currentLink).closest(".nav-treeview")).parentsUntil(".nav-sidebar > .nav-tre
$("#span_count_notif").hide();
refreshNotif = ()=>{
$.ajax({
url: "/notif/get-notif",
url: Url+"/notif/get-notif",
headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') },
type: "json",
method: "POST",