This commit is contained in:
2023-05-30 17:34:56 +08:00
parent e728c66786
commit 9da1c4cf30
194 changed files with 10680 additions and 9060 deletions

View File

@ -306,14 +306,14 @@
function OnEditAccuracy() {
if (deviceid == undefined || deviceid <= 0) return;
$('#mask_bg').show();
showmaskbg(true);
$('#dialog_accuracy')
.attr('act', 'add')
.css({
'top': (document.documentElement.clientHeight - $('#dialog_accuracy').height()) / 3,
'left': (document.documentElement.clientWidth - $('#dialog_accuracy').width()) / 2
})
.showDialog();
.showDialogfixed();
$('#dialog_accuracyvalue').val($("#txtAccuracy").val()).select();
}
@ -340,7 +340,6 @@
else {
$("#txtAccuracy").val(accuracy);
deviceinfovm.device.AcceptableAccuracy = accuracy;
$('#mask_bg').hide();
$('#dialog_accuracy').hideDialog();
}
}, function (err) {
@ -496,7 +495,7 @@
}
function sendLocation() {
$('#mask_bg').show();
showmaskbg(true);
$('#dialog_map')
.attr('act', 'add')
.css({
@ -516,7 +515,7 @@
msg += "Location";
postMessage(msg, 2);
$('#dialog_map').hideDialog();
$('#mask_bg').hide();
showmaskbg(false);
}
else {
showAlert(GetTextByKey("P_M3_PLEASESELECTALOCATIONTOSENDTO", 'Please select a location to send to.'), GetTextByKey("P_M3_SENDLOCATION", 'Send Location'));
@ -734,11 +733,11 @@
});
$('#dialog_map').dialog(function () {
$('#mask_bg').hide();
showmaskbg(false);
});
$('#dialog_accuracy').dialog(function () {
$('#mask_bg').hide();
showmaskbg(false);
});
loadMap();
@ -889,7 +888,7 @@
<tr>
<td class="label" style="width: 100px;" data-lgid="P_M3_NOTE_COLON">Note:</td>
<td>
<textarea id="dialog_accuracynote" class="inputbox" maxlength="1000" tabindex="51" style="width: 240px; height: 100px; max-width: unset;"></textarea>
<textarea id="dialog_accuracynote" maxlength="1000" tabindex="51" style="width: 240px; height: 100px; max-width: unset;"></textarea>
</td>
</tr>
</table>