change the inside texts of frontend files
This commit is contained in:
@@ -42,9 +42,9 @@ var iranLayer = L.tileLayer(
|
||||
);
|
||||
|
||||
function makeIcon(iconSize, layer) {
|
||||
return L.divIcon({
|
||||
return L.divIcon({
|
||||
className: "custom-div-icon",
|
||||
html: "<span style='width: " + iconSize + "px;height: " + iconSize + "px;' class='" + layer._icon.childNodes[0].classList.value +"'></span>",
|
||||
html: "<span style='width: " + iconSize + "px;height: " + iconSize + "px;' class='" + layer._icon.childNodes[0].classList.value + "'></span>",
|
||||
iconSize: [0, 0],
|
||||
});
|
||||
}
|
||||
@@ -759,7 +759,7 @@ const showInMap = data => {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FILTERQUERY.displayType == 1) {
|
||||
// clusters
|
||||
mapMode = "clusters"
|
||||
@@ -778,9 +778,9 @@ const showInMap = data => {
|
||||
mapMode = "points"
|
||||
markersLayer = new L.LayerGroup(markers);
|
||||
map.addLayer(markersLayer);
|
||||
map.on('zoomend', function() {
|
||||
if(markersLayer === null){
|
||||
return 0 ;
|
||||
map.on('zoomend', function () {
|
||||
if (markersLayer === null) {
|
||||
return 0;
|
||||
}
|
||||
let iconSize;
|
||||
switch (map.getZoom()) {
|
||||
@@ -814,7 +814,7 @@ const showInMap = data => {
|
||||
break;
|
||||
}
|
||||
|
||||
markersLayer.eachLayer(function(layer) {
|
||||
markersLayer.eachLayer(function (layer) {
|
||||
return layer.setIcon(makeIcon(iconSize, layer));
|
||||
});
|
||||
});
|
||||
@@ -919,7 +919,7 @@ const roadItemsCreateMarkers = (data) => {
|
||||
modal.find('#modal_details_image_before_img').removeAttr('href')
|
||||
modal.find('#modal_details_image_after').removeAttr('src')
|
||||
modal.find('#modal_details_image_after_img').removeAttr('href')
|
||||
|
||||
|
||||
showLoaderScreen()
|
||||
},
|
||||
success: function (result) {
|
||||
@@ -932,10 +932,10 @@ const roadItemsCreateMarkers = (data) => {
|
||||
modal.find('#modal_details_subitem').text(result.items.sub_item_fa)
|
||||
modal.find('#modal_details_status').text(result.items.status_fa)
|
||||
|
||||
if(result.items.status != 2){
|
||||
if (result.items.status != 2) {
|
||||
modal.find('#modal_details_supervisor_description_div').addClass('d-none');
|
||||
modal.find('#modal_details_supervisor_description_div').removeClass('d-flex');
|
||||
}else{
|
||||
} else {
|
||||
modal.find('#modal_details_supervisor_description').text(result.items.supervisor_description)
|
||||
modal.find('#modal_details_supervisor_description_div').removeClass('d-none');
|
||||
modal.find('#modal_details_supervisor_description_div').addClass('d-flex');
|
||||
@@ -999,7 +999,7 @@ const roadPatrolsCreateMarkers = (data) => {
|
||||
const plaque = result.officer_plaque.split("-");
|
||||
modal.find('#modal_details_officer_plaque').html(`<div class="d-flex align-items-center justify-content-center" style="direction: ltr;"><div class="mr-1">${plaque[0]}</div><div class="mr-1">${plaque[1] == "*" ? '<i class="fa fa-wheelchair"></i>' : plaque[1]}</div><div class="mr-1">${plaque[2]}</div>-<div class="ml-1 mr-1">ایران</div><div>${plaque[3]}</div></div>`)
|
||||
modal.find('#modal_details_distance').text(`${result.distance} کیلومتر`)
|
||||
modal.find('#modal_detail_report_link').attr('href',`/v2/road_patrols/operator/report/${data[i].id}`)
|
||||
modal.find('#modal_detail_report_link').attr('href', `/v2/road_patrols/operator/report/${data[i].id}`)
|
||||
modal.modal('show')
|
||||
hideLoaderScreen()
|
||||
},
|
||||
@@ -1175,10 +1175,10 @@ const RoadObservationsCreateMarkers = (data) => {
|
||||
modal.find('#modal_details_status').text(result.data.status_fa)
|
||||
}
|
||||
|
||||
if(result.data.status != 2) {
|
||||
if (result.data.status != 2) {
|
||||
modal.find('#modal_details_supervisor_description_box').addClass('d-none');
|
||||
modal.find('#modal_details_supervisor_description_box').removeClass('d-flex');
|
||||
}else {
|
||||
} else {
|
||||
modal.find('#modal_details_supervisor_description').text(result.data.supervisor_description)
|
||||
modal.find('#modal_details_supervisor_description_box').removeClass('d-none');
|
||||
modal.find('#modal_details_supervisor_description_box').addClass('d-flex');
|
||||
@@ -1972,7 +1972,7 @@ const SafetyAndPrivacy = {
|
||||
$('.fill-step-sap').append(`
|
||||
<option value="-1">انتخاب وضعیت</option>
|
||||
<option value="1">گام اول (شناسایی)</option>
|
||||
<option value="2">گام دوم (اخطار)</option>
|
||||
<option value="2">گام دوم (مستندات قضایی)</option>
|
||||
<option value="3">گام سوم (برخورد)</option>
|
||||
`)
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ const fillFilterBox = () => {
|
||||
$('.fill-status').append(`
|
||||
<option value="-1">انتخاب وضعیت</option>
|
||||
<option value="1">گام اول (شناسایی)</option>
|
||||
<option value="2">گام دوم (اخطار)</option>
|
||||
<option value="2">گام دوم (مستندات قضایی)</option>
|
||||
<option value="3">گام سوم (برخورد)</option>
|
||||
`)
|
||||
}
|
||||
@@ -569,7 +569,7 @@ $(function () {
|
||||
return `<div class="d-flex flex-column"><button type="button" class="btn-dataTable show-action-picture-btn" data-toggle="tooltip" data-placement="top" title="نمایش"><i class="fa fa-image icon-btnTable"></i></button><span>${moment(data.action_picture_document_upload_date).format("HH:mm:ss | jYYYY/jMM/jDD")}</span></div>`;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// if (data.step >= 2)
|
||||
// return `<div class="d-flex flex-column"><button type="button" class="btn-dataTable show-action-picture-btn" data-toggle="tooltip" data-placement="top" title="نمایش"><i class="fa fa-image icon-btnTable"></i></button><span>${moment(data.action_picture_document_upload_date).format("HH:mm:ss | jYYYY/jMM/jDD")}</span></div>`;
|
||||
// return
|
||||
@@ -613,7 +613,7 @@ $(function () {
|
||||
},
|
||||
render: function (data, type, row) {
|
||||
let content = `<div class='d-flex justify-content-center'>`
|
||||
if ($.inArray("delete-safety-and-privacy", PERMISSIONS) != -1 ) {
|
||||
if ($.inArray("delete-safety-and-privacy", PERMISSIONS) != -1) {
|
||||
content += `<button type="button" class="btn-dataTable delete-item" data-toggle="tooltip" data-placement="top" title="حذف"><i class="fa fa-trash icon-btnTable"></i></button>`
|
||||
}
|
||||
content += `</div>`
|
||||
|
||||
Reference in New Issue
Block a user