change nominatim original function

This commit is contained in:
2024-02-19 10:15:00 +00:00
parent 8176faf117
commit 1074a2dc79
88 changed files with 2334847 additions and 27475 deletions

View File

@@ -6,7 +6,7 @@ $(document).ready(function() {
// get user profile
$.ajax({
url: "https://rms.rmto.ir/valid/submitinfo/myData",
url: "/valid/submitinfo/myData",
type: "GET",
headers: {
accept: "application/json",
@@ -176,7 +176,7 @@ function shownextpage() {
data.append("avatar", $('#inputFile1').get(0).files[0]);
$.ajax({
url: "https://rms.rmto.ir/valid/submitinfo",
url: "/valid/submitinfo",
type: "POST",
beforeSend: function() {
$('#submitform').attr('disabled', 'disabled');
@@ -194,7 +194,7 @@ function shownextpage() {
$('#submitform').text('ثبت شد');
$('#submitform').removeClass('btn-primary');
$('#submitform').addClass('btn-success');
window.location = "https://rms.rmto.ir/new-template";
window.location = "/";
},
error: function(xhr) {
$('#submitform').removeAttr('disabled');

View File

@@ -7,7 +7,7 @@ $(document).ready(function() {
// get user profile
$.ajax({
url: "https://rms.rmto.ir/valid/submitinfo/myData",
url: "/valid/submitinfo/myData",
type: "GET",
headers: {
accept: "application/json",
@@ -176,7 +176,7 @@ function shownextpage() {
data.append("avatar", $('#inputFile1').get(0).files[0]);
$.ajax({
url: "https://rms.rmto.ir/profile/edit",
url: "/profile/edit",
type: "POST",
beforeSend: function() {
$('#submitform').attr('disabled', 'disabled');
@@ -194,7 +194,7 @@ function shownextpage() {
$('#submitform').text('ثبت شد');
$('#submitform').removeClass('btn-primary');
$('#submitform').addClass('btn-success');
window.location = "https://rms.rmto.ir/new-template";
window.location = "/";
},
error: function(xhr) {
$('#submitform').removeAttr('disabled');

View File

@@ -211,7 +211,7 @@ $(document).ready(function () {
// PERMISSIONS
$.ajax({
url: "https://rms.rmto.ir/webapi/user/get-permission",
url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -226,7 +226,7 @@ $(document).ready(function () {
},
});
$.ajax({
url: "https://rms.rmto.ir/csi/operation",
url: "/csi/operation",
type: "GET",
cache: false,
contentType: false,
@@ -257,8 +257,8 @@ $(document).ready(function () {
// ) {
$.ajax({
//// [start] contract_add_province_url-word
url: `https://rms.rmto.ir/webapi/getuser/province-perm?type=all`,
// url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("word-export-contract", PERMISSIONS) != -1 ? "?type=all" : ""
url: `/webapi/getuser/province-perm?type=all`,
// url: `/webapi/getuser/province-perm${$.inArray("word-export-contract", PERMISSIONS) != -1 ? "?type=all" : ""
// }`,
//// [end] contract_add_province_url-word
type: "GET",
@@ -296,7 +296,7 @@ $(document).ready(function () {
) {
$.ajax({
//// [start] contract_add_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("show-contract", PERMISSIONS) != -1 ? "?type=all" : ""
url: `/webapi/getuser/province-perm${$.inArray("show-contract", PERMISSIONS) != -1 ? "?type=all" : ""
}`,
//// [end] contract_add_province_url
type: "GET",
@@ -356,7 +356,7 @@ $(document).ready(function () {
) {
$.ajax({
//// [start] contract_add_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("add-contract", PERMISSIONS) != -1 ? "?type=all" : ""
url: `/webapi/getuser/province-perm${$.inArray("add-contract", PERMISSIONS) != -1 ? "?type=all" : ""
}`,
//// [end] contract_add_province_url
type: "GET",
@@ -397,7 +397,7 @@ $(document).ready(function () {
) {
$.ajax({
/// [start] contract_edit_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("edit-contract", PERMISSIONS) != -1 ? "?type=all" : ""
url: `/webapi/getuser/province-perm${$.inArray("edit-contract", PERMISSIONS) != -1 ? "?type=all" : ""
}`,
/// [end] contract_edit_province_url
type: "GET",
@@ -521,7 +521,7 @@ $(document).ready(function () {
processing: true,
select: true,
ajax: {
url: "https://rms.rmto.ir/contracts/index",
url: "/contracts/index",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -909,7 +909,7 @@ $(document).ready(function () {
className: "excel-btn-cta",
text: '<div class="btn-table-excel"><div class="d-flex flex-column"><i class="fa fa-check-circle mb-2 icon-color"></i>خروجی قرارداد</div></div>',
action: function (e, dt, node, config) {
const url = `https://rms.rmto.ir/reports/contracts${queryParemsExcel.length != 0 ? `?${queryParemsExcel.join("&")}` : ""
const url = `/reports/contracts${queryParemsExcel.length != 0 ? `?${queryParemsExcel.join("&")}` : ""
}`;
topPosition = $(e.target).parents('.btn-table-excel').offset().top + $(e.target).parents('.btn-table-excel').height() + 5
$(".parent-excel").css('top', topPosition);
@@ -1265,7 +1265,7 @@ $(document).on("click", "#add-contract-cta", function () {
});
} else {
$.ajax({
url: "https://rms.rmto.ir/contracts/store-dev",
url: "/contracts/store-dev",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1468,7 +1468,7 @@ $(document).on("click", ".edit-contract-btn", function () {
$.ajax({
url: "https://rms.rmto.ir/v2/contract/" + contractRowId + "/unserialize",
url: "/v2/contract/" + contractRowId + "/unserialize",
type: "GET",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1681,7 +1681,7 @@ $(document).on("click", "#edit-contract-cta", function () {
} else {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/contracts/update-dev/" + contractRowId,
url: "/contracts/update-dev/" + contractRowId,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1891,7 +1891,7 @@ $("#main-table-contract").on("click", ".delete-contract-btn", function () {
preConfirm: () => {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/contracts/delete",
url: "/contracts/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2001,7 +2001,7 @@ $('input[type="number"]').on("input", function () {
function planNumber() {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/contracts/eblagh",
url: "/contracts/eblagh",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2037,7 +2037,7 @@ function planNumber() {
function planNumberedit(dataArray) {
$.ajax({
url: "https://rms.rmto.ir/contracts/eblagh",
url: "/contracts/eblagh",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2164,7 +2164,7 @@ $(document).on("change", "#add-subcontract-nature", function () {
"<option amountable='0' unit='-' value='0'>انتخاب نوع عملیات</option>"
);
$.ajax({
url: "https://rms.rmto.ir/csi/operation/" + addSubcontractNature,
url: "/csi/operation/" + addSubcontractNature,
type: "GET",
cache: false,
contentType: false,
@@ -2237,7 +2237,7 @@ $(document).on("change", "#edit-subcontract-nature", function () {
"<option amountable='0' unit='-' value='0'>انتخاب نوع عملیات</option>"
);
$.ajax({
url: "https://rms.rmto.ir/csi/operation/" + editSubcontractNature,
url: "/csi/operation/" + editSubcontractNature,
type: "GET",
cache: false,
contentType: false,
@@ -2853,7 +2853,7 @@ $(document).on("click", "#add-subcontract-cta", function () {
} else {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/csi/store-dev",
url: "/csi/store-dev",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2896,7 +2896,7 @@ function showSubProvince(city_id) {
);
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/public/contents/provinces/" + provinceIdForSub,
url: "/public/contents/provinces/" + provinceIdForSub,
type: "GET",
async: "false",
success: function (data) {
@@ -3340,7 +3340,7 @@ $(document).on("click", ".choose-project-type", function () {
destroy: true,
ajax: {
url:
"https://rms.rmto.ir/api/finance/maintenance?project_id=" +
"/api/finance/maintenance?project_id=" +
contractRowId,
type: "GET",
dataSrc: function (json) {
@@ -3404,19 +3404,19 @@ $(document).on("change", "#choose_project_type", function () {
let url;
if (ProTypeChoose == 1) {
url =
"https://rms.rmto.ir/api/finance/maintenance?project_id=" + contractRowId;
"/api/finance/maintenance?project_id=" + contractRowId;
} else if (ProTypeChoose == 2) {
url = "https://rms.rmto.ir/api/finance/danger?project_id=" + contractRowId;
url = "/api/finance/danger?project_id=" + contractRowId;
} else if (ProTypeChoose == 3) {
url =
"https://rms.rmto.ir/api/finance/upgradeSafety?project_id=" +
"/api/finance/upgradeSafety?project_id=" +
contractRowId;
} else if (ProTypeChoose == 4) {
url =
"https://rms.rmto.ir/api/finance/technical?project_id=" + contractRowId;
"/api/finance/technical?project_id=" + contractRowId;
} else if (ProTypeChoose == 5) {
url =
"https://rms.rmto.ir/api/finance/tollhouse?project_id=" + contractRowId;
"/api/finance/tollhouse?project_id=" + contractRowId;
}
$.ajax({
url: url,
@@ -3443,20 +3443,20 @@ $(document).on("click", "#addToSubcontract", function () {
let imgUrl_show;
if ($("#choose_project_type").val() == 1) {
imgUrl_show =
"https://rms.rmto.ir/api/finance/maintanance/show?id=" + currentProjectId;
"/api/finance/maintanance/show?id=" + currentProjectId;
} else if ($("#choose_project_type").val() == 2) {
imgUrl_show =
"https://rms.rmto.ir/api/finance/danger/show?id=" + currentProjectId;
"/api/finance/danger/show?id=" + currentProjectId;
} else if ($("#choose_project_type").val() == 3) {
imgUrl_show =
"https://rms.rmto.ir/api/finance/upgradesafety/show?id=" +
"/api/finance/upgradesafety/show?id=" +
currentProjectId;
} else if ($("#choose_project_type").val() == 4) {
imgUrl_show =
"https://rms.rmto.ir/api/finance/technical/show?id=" + currentProjectId;
"/api/finance/technical/show?id=" + currentProjectId;
} else if ($("#choose_project_type").val() == 5) {
imgUrl_show =
"https://rms.rmto.ir/api/finance/tollhouse/show?id=" + currentProjectId;
"/api/finance/tollhouse/show?id=" + currentProjectId;
}
var positions = {};
if (row.data().end_latlng != null) {
@@ -3629,7 +3629,7 @@ $(document).on("click", "#addToSubcontract", function () {
);
$.ajax({
url:
"https://rms.rmto.ir/csi/operation/" + $("#add-subcontract-nature").val(),
"/csi/operation/" + $("#add-subcontract-nature").val(),
type: "GET",
cache: false,
contentType: false,
@@ -3731,7 +3731,7 @@ $(document).on("click", ".show-subcontract-btn", function () {
order: [[0, "desc"]],
processing: true,
ajax: {
url: "https://rms.rmto.ir/contracts/show/" + id,
url: "/contracts/show/" + id,
type: "GET",
dataSrc: function (json) {
hideLoaderScreen();
@@ -3944,11 +3944,11 @@ $(document).on("click", ".btn-show-img-subitem", function () {
$("#imgSubItem1").attr(
"src",
"https://rms.rmto.ir/" + row.data().image_path1
"/" + row.data().image_path1
);
$("#imgSubItem2").attr(
"src",
"https://rms.rmto.ir/" + row.data().image_path2
"/" + row.data().image_path2
);
$("#subItemImgModal").modal("show");
@@ -3960,23 +3960,23 @@ $("#pre_distance_choose").on("click", function () {
const currentProjectId = $(this).data("projectId");
showLoaderScreen();
const url_distance1 =
"https://rms.rmto.ir/rahdari/road-maintenance-project/" +
"/rahdari/road-maintenance-project/" +
currentProjectId +
"/get-distance-update-list";
const url_distance2 =
"https://rms.rmto.ir/rahdari/road-danger-prevention/" +
"/rahdari/road-danger-prevention/" +
currentProjectId +
"/get-distance-update-list";
const url_distance3 =
"https://rms.rmto.ir/rahdari/road-upgrade-safety/" +
"/rahdari/road-upgrade-safety/" +
currentProjectId +
"/get-distance-update-list";
const url_distance4 =
"https://rms.rmto.ir/rahdari/road-technical-building/" +
"/rahdari/road-technical-building/" +
currentProjectId +
"/get-distance-update-list";
const url_distance5 =
"https://rms.rmto.ir/rahdari/road-tollhouse-management/" +
"/rahdari/road-tollhouse-management/" +
currentProjectId +
"/get-distance-update-list";
if (ProTypeChoose == 1) {
@@ -4276,7 +4276,7 @@ $(document).on("click", ".btn-delete-subitem", function () {
preConfirm: () => {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/csi/delete",
url: "/csi/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -4345,7 +4345,7 @@ $(document).on("click", ".btn-history-subitem", function () {
order: [[18, "desc"]],
processing: true,
ajax: {
url: "https://rms.rmto.ir/csi/history/" + row.data().id,
url: "/csi/history/" + row.data().id,
type: "GET",
dataSrc: function (json) {
hideLoaderScreen();
@@ -4571,11 +4571,11 @@ $(document).on("click", ".btn-show-img-history-subitem", function () {
$("#imgSubItem1").attr(
"src",
"https://rms.rmto.ir/" + row.data().image_path1
"/" + row.data().image_path1
);
$("#imgSubItem2").attr(
"src",
"https://rms.rmto.ir/" + row.data().image_path2
"/" + row.data().image_path2
);
$("#subItemImgModal").modal("show");
@@ -4789,7 +4789,7 @@ $(document).on("click", ".btn-edit-subitem", function () {
if (image_path1 != null) {
$("#edit-deviceImg1Preview").attr(
"src",
"https://rms.rmto.ir/" + image_path1
"/" + image_path1
);
$("#edit-deviceImg1Title").css("display", "none");
$("#edit-deleteDeviceImg1").prop("disabled", false);
@@ -4797,7 +4797,7 @@ $(document).on("click", ".btn-edit-subitem", function () {
if (image_path2 != null) {
$("#edit-deviceImg2Preview").attr(
"src",
"https://rms.rmto.ir/" + image_path2
"/" + image_path2
);
$("#edit-deviceImg2Title").css("display", "none");
$("#edit-deleteDeviceImg2").prop("disabled", false);
@@ -4845,7 +4845,7 @@ $(document).on("click", ".btn-edit-subitem", function () {
"<option amountable='0' unit='-' value='0'>انتخاب نوع عملیات</option>"
);
$.ajax({
url: "https://rms.rmto.ir/csi/operation/" + project_type_id,
url: "/csi/operation/" + project_type_id,
type: "GET",
cache: false,
contentType: false,
@@ -6128,7 +6128,7 @@ $(document).on("click", "#edit-subcontract-cta", function () {
} else {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/csi/update-dev/" + updateId,
url: "/csi/update-dev/" + updateId,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -6291,14 +6291,14 @@ $("#btn_excel-download").on("click", function () {
}
}
if (province != 0) queryParems.push(`province=${province}`);
const url = `https://rms.rmto.ir/reports/${project_type}${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""
const url = `/reports/${project_type}${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""
}`;
window.open(url, "_blank");
});
$(document).on("click", "#btn_word_download", function () {
const provinceWordVal = $("#select-province-word option:selected").val();
window.open(
"https://rms.rmto.ir/contracts/document?province=" +
"/contracts/document?province=" +
provinceWordVal +
"&type=1",
"_blank"

View File

@@ -5,7 +5,7 @@ var PERMISSIONS = [];
(function () {
$.ajax({
url: "https://rms.rmto.ir/webapi/user/get-permission",
url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -40,7 +40,7 @@ var PERMISSIONS = [];
if ($.inArray('add-lawmaker', PERMISSIONS) != -1 || $.inArray('add-lawmaker-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] lawmaker_add_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('add-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('add-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] lawmaker_add_province_url
type: "GET",
beforeSend: function () {
@@ -87,7 +87,7 @@ var PERMISSIONS = [];
if ($.inArray('edit-lawmaker', PERMISSIONS) != -1 || $.inArray('edit-lawmaker-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] lawmaker_edit_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('edit-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('edit-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] lawmaker_edit_province_url
type: "GET",
beforeSend: function () {
@@ -132,7 +132,7 @@ var PERMISSIONS = [];
$.ajax({
/// [start] lawmaker_filter_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('show-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('show-lawmaker', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] lawmaker_filter_province_url
type: "GET",
beforeSend: function () {
@@ -174,7 +174,7 @@ var PERMISSIONS = [];
});
$.ajax({
url: "https://rms.rmto.ir/api/get-units",
url: "/api/get-units",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -261,7 +261,7 @@ var PERMISSIONS = [];
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/lawmakers/all",
url: "/lawmakers/all",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -467,7 +467,7 @@ $(document).on('click', '.btn-edit-lawmaker', function () {
modal.find('#btn_edit_lawmaker').prop('disabled', false)
$.ajax({
url: "https://rms.rmto.ir/api/get-constituencies/" + row.data().province_id,
url: "/api/get-constituencies/" + row.data().province_id,
type: "GET",
beforeSend: function () {
modal.find(".select-lawmaker-constituency").empty();
@@ -713,7 +713,7 @@ $(document).on('click', '#btn_add_lawmaker', function () {
formData.append("last_action", last_action);
$.ajax({
url: "https://rms.rmto.ir/lawmakers/store",
url: "/lawmakers/store",
type: "POST",
data: formData,
cache: false,
@@ -915,7 +915,7 @@ $(document).on('click', '#btn_edit_lawmaker', function () {
formData.append("last_action", last_action);
$.ajax({
url: "https://rms.rmto.ir/lawmakers/update/" + id,
url: "/lawmakers/update/" + id,
type: "POST",
data: formData,
cache: false,
@@ -973,7 +973,7 @@ $(document).on('click', '.btn-delete-lawmaker', function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
url: "https://rms.rmto.ir/lawmakers/delete/" + row.data().id,
url: "/lawmakers/delete/" + row.data().id,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1021,7 +1021,7 @@ $(document).on('change', '.select-lawmaker-province', function () {
const provinceId = $(this).val()
$.ajax({
url: "https://rms.rmto.ir/api/get-constituencies/" + provinceId,
url: "/api/get-constituencies/" + provinceId,
type: "GET",
beforeSend: function () {
modal.find(".select-lawmaker-constituency").empty();
@@ -1066,7 +1066,7 @@ $(document).on('change', '.select-filter-province', function () {
const provinceId = $(this).val()
$.ajax({
url: "https://rms.rmto.ir/api/get-constituencies/" + provinceId,
url: "/api/get-constituencies/" + provinceId,
type: "GET",
beforeSend: function () {
parent.find(".select-filter-constituency").empty();
@@ -1173,7 +1173,7 @@ $(document).on('click', '#btn_excel_download', function () {
if (constituency > 0)
queryParems.push(`constituency=${constituency}`)
const url = `https://rms.rmto.ir/reports/lawmakers${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
const url = `/reports/lawmakers${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
window.open(url, '_blank')
})

View File

@@ -81,7 +81,7 @@ $(document).ready(function () {
idkol = $('#page_id').val()
$.ajax({
url:
"https://rms.rmto.ir/bama-index/" + idkol,
"/bama-index/" + idkol,
type: "GET",
contentType: false,
processData: false,
@@ -117,21 +117,21 @@ $(document).ready(function () {
function setdataforshown(resultData) {
if (resultData.image_path1 != null) {
image_1 = `<div onclick="showimagealert(1)">\
<img class="imageshowrow" src = "https://rms.rmto.ir/${resultData.image_path1.replace("public", "storage")}" >\
<img class="imageshowrow" src = "/${resultData.image_path1.replace("public", "storage")}" >\
</div> `
$(".imagelistshown").append(image_1)
print_image1 = `<div class="col-3">\
<img class="imageshowrow img-fluid" src ="https://rms.rmto.ir/${resultData.image_path1.replace("public", "storage")}" >\
<img class="imageshowrow img-fluid" src ="/${resultData.image_path1.replace("public", "storage")}" >\
</div>`;
$(".imagelistshown2edit").append(print_image1);
}
if (resultData.image_path2 != null) {
image_2 = `<div onclick="showimagealert(2)">\
<img class="imageshowrow" src = "https://rms.rmto.ir/${resultData.image_path2.replace("public", "storage")}" >\
<img class="imageshowrow" src = "/${resultData.image_path2.replace("public", "storage")}" >\
</div> `
$(".imagelistshown").append(image_2)
print_image2 = `<div class="col-3">\
<img class="imageshowrow img-fluid" src ="https://rms.rmto.ir/${resultData.image_path2.replace("public", "storage")}" >\
<img class="imageshowrow img-fluid" src ="/${resultData.image_path2.replace("public", "storage")}" >\
</div>`;
$(".imagelistshown2edit").append(print_image2);
}
@@ -805,7 +805,7 @@ function showimagealert(num) {
(index + 1) +
" / " +
2 +
'</div><img src="https://rms.rmto.ir/' + imageArray[index].replace("public", "storage") + '"> ' +
'</div><img src="/' + imageArray[index].replace("public", "storage") + '"> ' +
"</div>";
$("#slideshow-slide").append(divSlide);
$("#slideshow-dot").append(

View File

@@ -21,7 +21,7 @@ $(document).ready(function () {
urlParams = new URLSearchParams(window.location.search);
queryparams = window.location.search;
$.ajax({
url: "https://rms.rmto.ir/bama-index" + window.location.search,
url: "/bama-index" + window.location.search,
type: "GET",
success: function (result) {
globalDataCount = result.counts
@@ -155,7 +155,7 @@ function showeachcard(data) {
var listdata = ""
for (var index = 0; index < data.length; index++) {
listdata += `<div class="col-sm-6 content p-10"><a class="contentwidth" href="https://rms.rmto.ir/v2/rahdari_projects/project/${data[index].id}" target="_blank">
listdata += `<div class="col-sm-6 content p-10"><a class="contentwidth" href="/v2/rahdari_projects/project/${data[index].id}" target="_blank">
<div class="row card-div ">
<div class="col-sm-9 show-data">
<div class="col-sm-12 pb-2 start-text"><div class="row col-sm-12"><div class="col-sm-6">اداره کل :${data[index].province_fa}</div><div class="col-sm-6"> تاریخ انعقاد قرارداد : ${moment(data[index].contract_date_from_parent_contract).format("jYYYY/jMM/jDD")}</div></div>
@@ -177,7 +177,7 @@ function showeachcard(data) {
function showResponsiveCard(data) {
var listdata = ""
for (var index = 0; index < data.length; index++) {
listdata += `<div class="content p-10"><a class="contentwidth" href="https://rms.rmto.ir/bama/${data[index].id}" target="_blank">
listdata += `<div class="content p-10"><a class="contentwidth" href="/bama/${data[index].id}" target="_blank">
<div class="row card-div">
<div class="col-sm-9 show-data">
<div class="col-sm-12 pb-2 start-text"><div class="row col-sm-12"><div class="col-sm-6">اداره کل :${data[index].province_fa}</div><div class="col-sm-6"> تاریخ انعقاد قرارداد : ${moment(data[index].contract_date_from_parent_contract).format("jYYYY/jMM/jDD")}</div></div>
@@ -197,7 +197,7 @@ function showResponsiveCard(data) {
paginatepage()
}
function returnimage(url) {
return url != null ? "https://rms.rmto.ir/" + url : "../dist/images/notavailable.jpg"
return url != null ? "/" + url : "../dist/images/notavailable.jpg"
}
function projectfilter(num) {
if (querylength == 1) {
@@ -219,7 +219,7 @@ function projectfilter(num) {
function showimagefilter(data) {
if (data != null) {
return "https://rms.rmto.ir/storage" + data.slice(6)
return "/storage" + data.slice(6)
}
else {
return "../dist/images/notavailable.jpg"
@@ -325,7 +325,7 @@ function showprovincefilter(array) {
}
function showCityFilter(num) {
$.ajax({
url: "https://rms.rmto.ir/public/contents/provinces/" + num,
url: "/public/contents/provinces/" + num,
type: "GET",
success: function (result) {
showCityList(result.data)
@@ -517,7 +517,7 @@ function showProvinceNum() {
var specificProName = ""
if (globalDataCount.provinces.length == 0) {
$.ajax({
url: `https://rms.rmto.ir/webapi/getuser/province-perm?type=all`,
url: `/webapi/getuser/province-perm?type=all`,
type: "GET",
async: false,
success: function (result) {
@@ -636,7 +636,7 @@ function showCityChoosen() {
var cityName
if (province != null) {
$.ajax({
url: "https://rms.rmto.ir/public/contents/provinces/" + province,
url: "/public/contents/provinces/" + province,
type: "GET",
async: false,
success: function (result) {
@@ -798,7 +798,7 @@ function checkWindowSize() {
function findProvinces(num) {
console.log("num", num)
$.ajax({
url: `https://rms.rmto.ir/webapi/getuser/province-perm?type=all`,
url: `/webapi/getuser/province-perm?type=all`,
type: "GET",
success: function (result) {
console.log(result)

View File

@@ -110,7 +110,7 @@ var endDivIconEdit = L.divIcon({
(function () {
$.ajax({
url: "https://rms.rmto.ir/webapi/user/get-permission",
url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -126,7 +126,7 @@ var endDivIconEdit = L.divIcon({
})
$.ajax({
/// [start] lawmaker_filter_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('show-proposal-province', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('show-proposal-province', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] lawmaker_filter_province_url
type: "GET",
beforeSend: function () {
@@ -170,7 +170,7 @@ var endDivIconEdit = L.divIcon({
if ($.inArray('add-proposal', PERMISSIONS) != -1 || $.inArray('add-proposal-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] proposal_add_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('add-proposal', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('add-proposal', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] proposal_add_province_url
type: "GET",
beforeSend: function () {
@@ -208,7 +208,7 @@ var endDivIconEdit = L.divIcon({
if ($.inArray('edit-proposal', PERMISSIONS) != -1 || $.inArray('edit-proposal-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] proposal_edit_province_url
url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('edit-proposal', PERMISSIONS) != -1 ? '?type=all' : ''}`,
url: `/webapi/getuser/province-perm${$.inArray('edit-proposal', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] proposal_edit_province_url
type: "GET",
beforeSend: function () {
@@ -277,7 +277,7 @@ var endDivIconEdit = L.divIcon({
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/webapi/proposal/get-data",
url: "/webapi/proposal/get-data",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -892,7 +892,7 @@ $(document).on('click', '.btn-edit-project', function () {
modal.find(".select-project-opration").append("<option amountable='0' unit='-' value='0'>انتخاب نوع عملیات</option>");
$.ajax({
url: "https://rms.rmto.ir/csi/operation/" + row.data().project_type_id,
url: "/csi/operation/" + row.data().project_type_id,
type: "GET",
cache: false,
beforeSend: function () {
@@ -970,7 +970,7 @@ $(document).on('click', '.btn-edit-project', function () {
if (row.data().document_image != null) {
modal.find('.img-title').css('display', 'none')
modal.find('.btn-delete-img').prop('disabled', false)
modal.find('#edit_project_document_image_preview').attr('src', `https://rms.rmto.ir/storage/${row.data().document_image}`)
modal.find('#edit_project_document_image_preview').attr('src', `/storage/${row.data().document_image}`)
}
modal.modal('show')
@@ -1003,7 +1003,7 @@ $(document).on('change', '.select-project-type', function () {
modal.find(".select-project-opration").attr("disabled", false);
modal.find(".select-project-opration").append("<option amountable='0' unit='-' value='0'>انتخاب نوع عملیات</option>");
$.ajax({
url: "https://rms.rmto.ir/csi/operation/" + projectType,
url: "/csi/operation/" + projectType,
type: "GET",
cache: false,
beforeSend: function () {
@@ -1042,7 +1042,7 @@ $(document).on('click', '.btn-delete-project', function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
url: "https://rms.rmto.ir/webapi/proposal/delete/" + row.data().id,
url: "/webapi/proposal/delete/" + row.data().id,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1420,7 +1420,7 @@ $(document).on('click', '#btn_add_project', function () {
formData.append("end_lng", end_lng);
$.ajax({
url: "https://rms.rmto.ir/webapi/proposal/store",
url: "/webapi/proposal/store",
type: "POST",
data: formData,
cache: false,
@@ -1778,7 +1778,7 @@ $(document).on('click', '#btn_edit_project', function () {
formData.append("document_technical", document_technical);
$.ajax({
url: "https://rms.rmto.ir/webapi/proposal/update/" + id,
url: "/webapi/proposal/update/" + id,
type: "POST",
data: formData,
cache: false,
@@ -2276,7 +2276,7 @@ $(document).on('click', '#btn_excel_download', function () {
if (province != 0)
queryParems.push(`province=${province}`)
const url = `https://rms.rmto.ir/reports/proposal${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
const url = `/reports/proposal${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
window.open(url, '_blank')
})

View File

@@ -2,8 +2,8 @@ var fromDateshowrizitem, toDateshowrizitem;
var PERMISSIONS = []
var PROVINCES = [];
var gozareshtable;
var MAIN_URL = "https://rms.rmto.ir/v2/receipt/report/province-data"
var EXCEL_API = "https://rms.rmto.ir/v2/receipt/report/excel";
var MAIN_URL = "/v2/receipt/report/province-data"
var EXCEL_API = "/v2/receipt/report/excel";
function checkfunctionS(obj) {
if (obj != undefined) {
@@ -15,7 +15,7 @@ function checkfunctionS(obj) {
$(document).ready(function () {
let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
let reqUrl = "/public/contents/provinces";
$.ajax({
url: reqUrl,
@@ -105,10 +105,10 @@ $(document).ready(function () {
},
});
$.getScript('https://rms.rmto.ir/version2/js/dashboard_pages/receipt/subtable.js');
$.getScript('/version2/js/dashboard_pages/receipt/subtable.js');
$.ajax({
url: "https://rms.rmto.ir/webapi/user/get-permission",
url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,

View File

@@ -44,7 +44,7 @@ $("#gozarehtowntable").on("click", "td.details-control", async function (e) {
dataTableRows = [];
$.ajax({
url: "https://rms.rmto.ir/v2/receipt/report/city-data?province_id=" + provinceid +
url: "/v2/receipt/report/city-data?province_id=" + provinceid +
"&from_date=" +
date_from +
"&date_to=" +

File diff suppressed because it is too large Load Diff

View File

@@ -44,7 +44,7 @@ $("#gozarehtowntable").on("click", "td.details-control", async function(e) {
dataTableRows = [];
$.ajax({
url: "https://rms.rmto.ir/v2/safety_and_privacy/report/total_group_province_city?province_id=" + provinceid +
url: "/v2/safety_and_privacy/report/total_group_province_city?province_id=" + provinceid +
"&from_date=" +
date_from +
"&date_to=" +

View File

@@ -158,7 +158,7 @@ $(document).bind('click', function (e) {
],
processing: true,
ajax: {
url: `https://rms.rmto.ir/user-activity-report-index`,
url: `/user-activity-report-index`,
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -284,7 +284,7 @@ $(document).bind('click', function (e) {
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/user-activity-report/log-list",
url: "/user-activity-report/log-list",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -355,7 +355,7 @@ $(document).bind('click', function (e) {
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/webapi/users",
url: "/webapi/users",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -447,7 +447,7 @@ $(document).bind('click', function (e) {
],
processing: true,
ajax: {
url: "https://rms.rmto.ir/webapi/users",
url: "/webapi/users",
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -549,7 +549,7 @@ $('#btn_filter').on('click', function () {
})
function reloadTableUserGroups() {
const url = `https://rms.rmto.ir/user-activity-report-index${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
const url = `/user-activity-report-index${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
$.ajax({
url: url,
@@ -602,7 +602,7 @@ $(document).on('click', '.btn-edit-user-group', function () {
$(`.check-users`, usersTableEdit.rows().nodes()).prop('checked', false)
$.ajax({
url: "https://rms.rmto.ir/user-activity-report/show-users/" + row.data().group_id,
url: "/user-activity-report/show-users/" + row.data().group_id,
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -686,7 +686,7 @@ $('#btn_add_user_group').on('click', function () {
formData.append("users", arrUsersId);
$.ajax({
url: "https://rms.rmto.ir/user-activity-report/add",
url: "/user-activity-report/add",
type: "POST",
data: formData,
cache: false,
@@ -773,7 +773,7 @@ $('#btn_edit_user_group').on('click', function () {
formData.append("users", arrUsersId);
$.ajax({
url: "https://rms.rmto.ir/user-activity-report/edit/" + group_id,
url: "/user-activity-report/edit/" + group_id,
type: "POST",
data: formData,
cache: false,
@@ -818,24 +818,24 @@ $('#btn_edit_user_group').on('click', function () {
$(document).on('click', '.btn-excel-user-group', function () {
const tr = $(this).closest("tr");
const row = userGroupsTable.row(tr);
const url = `https://rms.rmto.ir/reports/user-activity-report?group_id=${row.data().group_id}&${queryParemsFilter.join('&')}`
const url = `/reports/user-activity-report?group_id=${row.data().group_id}&${queryParemsFilter.join('&')}`
window.open(url)
})
$(document).on('click', '.btn-pdf-user-group', function () {
const tr = $(this).closest("tr");
const row = userGroupsTable.row(tr);
const url = `https://rms.rmto.ir/user-activity-report/print/${row.data().group_id}${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
const url = `/user-activity-report/print/${row.data().group_id}${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
window.open(url, '_blank')
})
$(document).on('click', '.btn-pdf-country-chart', function () {
const url = `https://rms.rmto.ir/user-activity-report/static-print-country-chart${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
const url = `/user-activity-report/static-print-country-chart${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
window.open(url, '_blank')
})
$(document).on('click', '.btn-pdf-organization-chart', function () {
const url = `https://rms.rmto.ir/user-activity-report/static-print-organization-chart${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
const url = `/user-activity-report/static-print-organization-chart${queryParemsFilter.length != 0 ? `?${queryParemsFilter.join('&')}` : ''}`
window.open(url, '_blank')
})
@@ -854,7 +854,7 @@ $(document).on('click', '.btn-delete-user-group', function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
url: "https://rms.rmto.ir/user-activity-report/delete/" + row.data().group_id,
url: "/user-activity-report/delete/" + row.data().group_id,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -908,7 +908,7 @@ $(document).on('click', '.btn-show-user-group', function () {
const row = userGroupsTable.row(tr);
$.ajax({
url: "https://rms.rmto.ir/user-activity-report/show-users/" + row.data().group_id,
url: "/user-activity-report/show-users/" + row.data().group_id,
type: "GET",
beforeSend: function () {
showLoaderScreen()

View File

@@ -78,7 +78,7 @@ function errorHandler(error) {
function GetAuthUserId() {
$.ajax({
url: "https://rms.rmto.ir/valid/submitinfo/myData",
url: "/valid/submitinfo/myData",
type: "GET",
cache: false,
async: false,
@@ -95,7 +95,7 @@ function GetAuthUserId() {
function assigenPermissions(params) {
$.ajax({
url: "https://rms.rmto.ir/webapi/user/get-permission",
url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -199,7 +199,7 @@ function setUserName(action = "add") {
function getProvinces(action_type = "crud") {
let reqUrl = `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("full-user-management", PERMISSIONS) != -1 ? "?type=all" : ""}`;
let reqUrl = `/webapi/getuser/province-perm${$.inArray("full-user-management", PERMISSIONS) != -1 ? "?type=all" : ""}`;
$.ajax({
url: reqUrl,
type: "GET",
@@ -238,7 +238,7 @@ function getProvinces(action_type = "crud") {
}
function getProvincesOffice() {
let reqUrl = "https://rms.rmto.ir/public/contents/edarateOstani";
let reqUrl = "/public/contents/edarateOstani";
$.ajax({
url: reqUrl,
type: "GET",
@@ -317,7 +317,7 @@ function initPemissions() {
const modalPermission = $('#modal_permission')
const modalRoleForm = $('#modal_role_form')
const modalAssignRoleGroupAction = $('#modal_assign_role_group_action')
let reqUrl = "https://rms.rmto.ir/user/permissions";
let reqUrl = "/user/permissions";
$.ajax({
url: reqUrl,
type: "GET",
@@ -382,7 +382,7 @@ function initPemissions() {
function getCityByProvince(province_id, dom_id, selected_id = 0) {
$.ajax({
url: "https://rms.rmto.ir/public/contents/provinces/" + province_id,
url: "/public/contents/provinces/" + province_id,
type: "GET",
async: false,
beforeSend: function () {
@@ -419,7 +419,7 @@ function getCityByProvince(province_id, dom_id, selected_id = 0) {
function getCityOfficeByCity(city_id, dom_id, selected_id = 0) {
$.ajax({
url: "https://rms.rmto.ir/public/contents/edarateShahri/" + city_id,
url: "/public/contents/edarateShahri/" + city_id,
type: "GET",
async: false,
beforeSend: function () {
@@ -456,7 +456,7 @@ function getCityOfficeByCity(city_id, dom_id, selected_id = 0) {
function getCityOfficeByProvince(province_id, dom_id, selected_id = 0) {
$.ajax({
url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + province_id,
url: "/public/contents/edarate_shahri_by_province/" + province_id,
type: "GET",
async: false,
beforeSend: function () {
@@ -616,7 +616,7 @@ $(document).ready(function () {
processing: true,
select: true,
ajax: {
url: "https://rms.rmto.ir/users",
url: "/users",
type: "GET",
dataSrc: function (json) {
return json.data;
@@ -788,7 +788,7 @@ $(document).ready(function () {
buttons: [$.inArray("full-user-management", PERMISSIONS) != -1 ? {
text: '<div class="btn-send-activity"><div class="d-flex flex-column"><i class="fa mb-2 fa-calculator icon-color"></i>گزارش کارکرد</div></div>',
action: function (e, dt, node, config) {
window.location = 'https://rms.rmto.ir/v2/user_management/activity_report'
window.location = '/v2/user_management/activity_report'
},
} : {},
$.inArray("full-user-management", PERMISSIONS) != -1 ? {
@@ -811,7 +811,7 @@ $(document).ready(function () {
text: '<div class="btn-table-role"><div class="d-flex flex-column"><i class="fa mb-2 fa-tasks icon-color"></i> نقش ها</div></div>',
action: function (e, dt, node, config) {
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -877,7 +877,7 @@ $(document).ready(function () {
processing: true,
select: true,
ajax: {
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
dataSrc: function (json) {
return json.data;
@@ -941,7 +941,7 @@ $(document).on('click', '#user_report', function () {
} else {
const convert_fromDate_reprt = moment(fromDate_report.getState().selected.unixDate).format("YYYY-MM-DD");
const convert_toDate_reprt = moment(toDate_report.getState().selected.unixDate).format("YYYY-MM-DD");
window.open(`https://rms.rmto.ir/user-activity-report/print/user/${$("#selected_user_for_report").val()}?fromDate=${convert_fromDate_reprt}&toDate=${convert_toDate_reprt}`, `_blank`);
window.open(`/user-activity-report/print/user/${$("#selected_user_for_report").val()}?fromDate=${convert_fromDate_reprt}&toDate=${convert_toDate_reprt}`, `_blank`);
modal.modal("hide")
}
})
@@ -989,7 +989,7 @@ $(document).on('click', '#activity_report', function () {
$("#user_national_code_activity_report").text(national_code);
if (avatar != null) {
$('#user_image_activity_report').attr('src', `https://rms.rmto.ir/${avatar}`);
$('#user_image_activity_report').attr('src', `/${avatar}`);
$('#edit_user_photo_title').css('display', 'none');
} else {
$('#user_image_activity_report').removeAttr('src');
@@ -997,7 +997,7 @@ $(document).on('click', '#activity_report', function () {
}
$.ajax({
url: "https://rms.rmto.ir/users/summary_report/" + row.data().id,
url: "/users/summary_report/" + row.data().id,
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1061,7 +1061,7 @@ $(document).on('click', '.permission-control', function () {
})
$.ajax({
url: "https://rms.rmto.ir/users/" + row.data().id + "/permission",
url: "/users/" + row.data().id + "/permission",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1075,7 +1075,7 @@ $(document).on('click', '.permission-control', function () {
})
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
modal.find('#roles_tools').empty()
@@ -1115,7 +1115,7 @@ $('.roles-tools').on('change', function () {
if (roleId == -1) return false
$.ajax({
url: "https://rms.rmto.ir/show-role/" + roleId,
url: "/show-role/" + roleId,
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1151,7 +1151,7 @@ $('#submit_form_permission').on('click', function () {
formData.append("permissions", arrPermission);
$.ajax({
url: `https://rms.rmto.ir/users/${userId}/permission`,
url: `/users/${userId}/permission`,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1187,10 +1187,10 @@ $('#submitForRole').on('click', function () {
switch (modal.data('mode')) {
case 'add':
url = `https://rms.rmto.ir/create-role`
url = `/create-role`
break;
case 'edit':
url = `https://rms.rmto.ir/edit-role/${modal.find('#role_id').val()}`
url = `/edit-role/${modal.find('#role_id').val()}`
break;
}
@@ -1209,7 +1209,7 @@ $('#submitForRole').on('click', function () {
},
success: function (result) {
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1253,7 +1253,7 @@ $(document).on('click', '.edit-role', function () {
$.ajax({
url: "https://rms.rmto.ir/show-role/" + row.data().id,
url: "/show-role/" + row.data().id,
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1302,7 +1302,7 @@ $(document).on('click', '.delete-role', function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
url: `https://rms.rmto.ir/delete-role/${row.data().id}`,
url: `/delete-role/${row.data().id}`,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1315,7 +1315,7 @@ $(document).on('click', '.delete-role', function () {
},
success: function (result) {
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1360,7 +1360,7 @@ $(document).on('click', '#change_enabled', function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
url: `https://rms.rmto.ir/users/change_user_enabeld/${row.data().id}`,
url: `/users/change_user_enabeld/${row.data().id}`,
type: "GET",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1500,7 +1500,7 @@ $(".remove-imagekarbar").on("click", function () {
function tablereload() {
$.ajax({
url: "https://rms.rmto.ir/users",
url: "/users",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1547,7 +1547,7 @@ $("#user_data_table").on("click", "button.delete_user", function () {
preConfirm: () => {
$.ajax({
url: "https://rms.rmto.ir/users/delete",
url: "/users/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1586,7 +1586,7 @@ $("#btn_filter_show").on("click", function () {
queryParems.push(`province=${province}`)
if (city != 0 && city != null)
queryParems.push(`city=${city}`)
const url = `https://rms.rmto.ir/users/${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
const url = `/users/${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
$.ajax({
url: url,
type: "GET",
@@ -1686,7 +1686,7 @@ $(document).on("click", "#users_edit_cta", function () {
formData.append("user_ids", user_ids);
formData.append("confirm", confirm);
$.ajax({
url: "https://rms.rmto.ir/users/change_confirmed_status",
url: "/users/change_confirmed_status",
type: "POST",
data: formData,
cache: false,
@@ -1795,7 +1795,7 @@ $(document).on('click', "#change_password_submit_form", function () {
formData.append("password_confirmation", repass);
$.ajax({
url: `https://rms.rmto.ir/users/change_password/${id}`,
url: `/users/change_password/${id}`,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1834,7 +1834,7 @@ $(document).on('click', "#change_password_submit_form", function () {
$(document).on('click', "#assign_role_group_action", function () {
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
$('#assign_role_list_of_roles').empty()
@@ -1872,7 +1872,7 @@ $('#assign_role_group_action_submit').on('click', function () {
})
formData.append("user_ids", checkedItemsId);
$.ajax({
url: `https://rms.rmto.ir/users/give_permissions`,
url: `/users/give_permissions`,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1886,7 +1886,7 @@ $('#assign_role_group_action_submit').on('click', function () {
},
success: function (result) {
$.ajax({
url: "https://rms.rmto.ir/show-all-roles",
url: "/show-all-roles",
type: "GET",
beforeSend: function () {
showLoaderScreen()
@@ -1944,7 +1944,7 @@ $(document).on('click', '#delete_users_group_action', function () {
preConfirm: () => {
showLoaderScreen();
$.ajax({
url: "https://rms.rmto.ir/users/delete",
url: "/users/delete",
type: "POST",
data: formData,
cache: false,
@@ -2023,7 +2023,7 @@ $("#user_data_table").on("click", "button.edit_user_show_modal_button", function
$("#edit_user_photo").val('');
if (avatar != null) {
$('#edit_user_photo_preview').attr('src', `https://rms.rmto.ir/${avatar}`);
$('#edit_user_photo_preview').attr('src', `/${avatar}`);
$('#edit_user_photo_title').css('display', 'none');
} else {
$('#edit_user_photo_preview').removeAttr('src');
@@ -2257,7 +2257,7 @@ $("#edit_submit_form").on("click", function () {
}
$.ajax({
url: "https://rms.rmto.ir/users/" + global_user_id,
url: "/users/" + global_user_id,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2535,7 +2535,7 @@ $("#add_submit_form").on("click", function () {
formData.append("avatar", $("#add_user_photo")[0].files[0]);
}
$.ajax({
url: "https://rms.rmto.ir/users",
url: "/users",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2745,7 +2745,7 @@ $("#add_simple_submit_form").on("click", function () {
formData.append("national_code", national_code);
$.ajax({
url: "https://rms.rmto.ir/add-simple-users",
url: "/add-simple-users",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),