Fixed file text editor in web application.
Ylian Saint-Hilaire committed
Dec 12, 2019 at 18:34 UTC
3c93ef0bc5236e8a123845297faa8b48bc543709
10 files changed
+59
-49
views/default-min.handlebars
+6
-5
@@ -5406,7 +5406,7 @@
5406
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
5407
if (downloadFile.tag == 'viewer') {
5408
// View the file in the dialog box
5409
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
5409
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
5410
QH('d4editorarea', EscapeHtml(downloadFile.data));
5411
QS('dialog').width = 'auto';
5412
QS('dialog').bottom = '80px';
@@ -6036,7 +6036,7 @@
6036
if (xxdialogMode) return false;
6037
var x = '';
6038
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Notification sound." + '</label></div>';
6039
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
6039
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
6040
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Device connections." + '</label></div>';
6041
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Device disconnections." + '</label></div>';
6042
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® AMT desktop and serial events." + '</label></div>';
@@ -8396,9 +8396,10 @@
8396
xxdialogFunc = f;
8397
xxdialogButtons = b;
8398
xxdialogTag = tag;
8399
- QS('dialog').width = null; // Reset dialog size
8400
- QS('dialog').left = null;
8401
- QS('dialog').right = null;
8399
+
8400
+ // Reset dialog size
8401
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
8402
+
8403
QE('idx_dlgOkButton', true);
8404
QV('idx_dlgOkButton', b & 1);
8405
QV('idx_dlgCancelButton', b & 2);
views/default.handlebars
+5
-4
@@ -6423,7 +6423,7 @@
6423
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
6424
if (downloadFile.tag == 'viewer') {
6425
// View the file in the dialog box
6426
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
6426
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
6427
QH('d4editorarea', EscapeHtml(downloadFile.data));
6428
QS('dialog').width = 'auto';
6429
QS('dialog').bottom = '80px';
@@ -9413,9 +9413,10 @@
9413
xxdialogFunc = f;
9414
xxdialogButtons = b;
9415
xxdialogTag = tag;
9416
- QS('dialog').width = null; // Reset dialog size
9417
- QS('dialog').left = null;
9418
- QS('dialog').right = null;
9416
+
9417
+ // Reset dialog size
9418
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
9419
+
9420
QE('idx_dlgOkButton', true);
9421
QV('idx_dlgOkButton', b & 1);
9422
QV('idx_dlgCancelButton', b & 2);
views/translations/default-min_cs.handlebars
+6
-5
@@ -5406,7 +5406,7 @@
5406
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
5407
if (downloadFile.tag == 'viewer') {
5408
// View the file in the dialog box
5409
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
5409
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
5410
QH('d4editorarea', EscapeHtml(downloadFile.data));
5411
QS('dialog').width = 'auto';
5412
QS('dialog').bottom = '80px';
@@ -6036,7 +6036,7 @@
6036
if (xxdialogMode) return false;
6037
var x = '';
6038
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Zvuk notifikací" + '</label></div>';
6039
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
6039
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
6040
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Připojení zařízení" + '</label></div>';
6041
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Odpojení zařízení" + '</label></div>';
6042
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® AMT desktop and serial události." + '</label></div>';
@@ -8396,9 +8396,10 @@
8396
xxdialogFunc = f;
8397
xxdialogButtons = b;
8398
xxdialogTag = tag;
8399
- QS('dialog').width = null; // Reset dialog size
8400
- QS('dialog').left = null;
8401
- QS('dialog').right = null;
8399
+
8400
+ // Reset dialog size
8401
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
8402
+
8403
QE('idx_dlgOkButton', true);
8404
QV('idx_dlgOkButton', b & 1);
8405
QV('idx_dlgCancelButton', b & 2);
views/translations/default-min_fr.handlebars
+6
-5
@@ -5406,7 +5406,7 @@
5406
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
5407
if (downloadFile.tag == 'viewer') {
5408
// View the file in the dialog box
5409
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
5409
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
5410
QH('d4editorarea', EscapeHtml(downloadFile.data));
5411
QS('dialog').width = 'auto';
5412
QS('dialog').bottom = '80px';
@@ -6036,7 +6036,7 @@
6036
if (xxdialogMode) return false;
6037
var x = '';
6038
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Notification sound." + '</label></div>';
6039
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
6039
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
6040
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Device connections." + '</label></div>';
6041
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Device disconnections." + '</label></div>';
6042
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® AMT desktop and serial events." + '</label></div>';
@@ -8396,9 +8396,10 @@
8396
xxdialogFunc = f;
8397
xxdialogButtons = b;
8398
xxdialogTag = tag;
8399
- QS('dialog').width = null; // Reset dialog size
8400
- QS('dialog').left = null;
8401
- QS('dialog').right = null;
8399
+
8400
+ // Reset dialog size
8401
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
8402
+
8403
QE('idx_dlgOkButton', true);
8404
QV('idx_dlgOkButton', b & 1);
8405
QV('idx_dlgCancelButton', b & 2);
views/translations/default-min_ja.handlebars
+6
-5
@@ -5406,7 +5406,7 @@
5406
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
5407
if (downloadFile.tag == 'viewer') {
5408
// View the file in the dialog box
5409
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
5409
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
5410
QH('d4editorarea', EscapeHtml(downloadFile.data));
5411
QS('dialog').width = 'auto';
5412
QS('dialog').bottom = '80px';
@@ -6036,7 +6036,7 @@
6036
if (xxdialogMode) return false;
6037
var x = '';
6038
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "通知音。" + '</label></div>';
6039
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
6039
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
6040
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "デバイス接続。" + '</label></div>';
6041
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "デバイスの切断。" + '</label></div>';
6042
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel&reg; AMTデスクトップおよびシリアルイベント。" + '</label></div>';
@@ -8396,9 +8396,10 @@
8396
xxdialogFunc = f;
8397
xxdialogButtons = b;
8398
xxdialogTag = tag;
8399
- QS('dialog').width = null; // Reset dialog size
8400
- QS('dialog').left = null;
8401
- QS('dialog').right = null;
8399
+
8400
+ // Reset dialog size
8401
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
8402
+
8403
QE('idx_dlgOkButton', true);
8404
QV('idx_dlgOkButton', b & 1);
8405
QV('idx_dlgCancelButton', b & 2);
views/translations/default-min_pt.handlebars
+6
-5
@@ -5406,7 +5406,7 @@
5406
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
5407
if (downloadFile.tag == 'viewer') {
5408
// View the file in the dialog box
5409
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
5409
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
5410
QH('d4editorarea', EscapeHtml(downloadFile.data));
5411
QS('dialog').width = 'auto';
5412
QS('dialog').bottom = '80px';
@@ -6036,7 +6036,7 @@
6036
if (xxdialogMode) return false;
6037
var x = '';
6038
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Som de notificação." + '</label></div>';
6039
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
6039
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
6040
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Conexões de dispositivos." + '</label></div>';
6041
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Desconexões de dispositivos." + '</label></div>';
6042
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® Área de trabalho AMT e eventos seriais." + '</label></div>';
@@ -8396,9 +8396,10 @@
8396
xxdialogFunc = f;
8397
xxdialogButtons = b;
8398
xxdialogTag = tag;
8399
- QS('dialog').width = null; // Reset dialog size
8400
- QS('dialog').left = null;
8401
- QS('dialog').right = null;
8399
+
8400
+ // Reset dialog size
8401
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
8402
+
8403
QE('idx_dlgOkButton', true);
8404
QV('idx_dlgOkButton', b & 1);
8405
QV('idx_dlgCancelButton', b & 2);
views/translations/default_cs.handlebars
+6
-5
@@ -6421,7 +6421,7 @@
6421
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
6422
if (downloadFile.tag == 'viewer') {
6423
// View the file in the dialog box
6424
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
6424
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
6425
QH('d4editorarea', EscapeHtml(downloadFile.data));
6426
QS('dialog').width = 'auto';
6427
QS('dialog').bottom = '80px';
@@ -7051,7 +7051,7 @@
7051
if (xxdialogMode) return false;
7052
var x = '';
7053
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Zvuk notifikací" + '</label></div>';
7054
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
7054
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
7055
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Připojení zařízení" + '</label></div>';
7056
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Odpojení zařízení" + '</label></div>';
7057
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® AMT desktop and serial události." + '</label></div>';
@@ -9411,9 +9411,10 @@
9411
xxdialogFunc = f;
9412
xxdialogButtons = b;
9413
xxdialogTag = tag;
9414
- QS('dialog').width = null; // Reset dialog size
9415
- QS('dialog').left = null;
9416
- QS('dialog').right = null;
9414
+
9415
+ // Reset dialog size
9416
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
9417
+
9418
QE('idx_dlgOkButton', true);
9419
QV('idx_dlgOkButton', b & 1);
9420
QV('idx_dlgCancelButton', b & 2);
views/translations/default_fr.handlebars
+6
-5
@@ -6421,7 +6421,7 @@
6421
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
6422
if (downloadFile.tag == 'viewer') {
6423
// View the file in the dialog box
6424
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
6424
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
6425
QH('d4editorarea', EscapeHtml(downloadFile.data));
6426
QS('dialog').width = 'auto';
6427
QS('dialog').bottom = '80px';
@@ -7051,7 +7051,7 @@
7051
if (xxdialogMode) return false;
7052
var x = '';
7053
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Notification sound." + '</label></div>';
7054
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
7054
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
7055
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Device connections." + '</label></div>';
7056
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Device disconnections." + '</label></div>';
7057
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® AMT desktop and serial events." + '</label></div>';
@@ -9411,9 +9411,10 @@
9411
xxdialogFunc = f;
9412
xxdialogButtons = b;
9413
xxdialogTag = tag;
9414
- QS('dialog').width = null; // Reset dialog size
9415
- QS('dialog').left = null;
9416
- QS('dialog').right = null;
9414
+
9415
+ // Reset dialog size
9416
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
9417
+
9418
QE('idx_dlgOkButton', true);
9419
QV('idx_dlgOkButton', b & 1);
9420
QV('idx_dlgCancelButton', b & 2);
views/translations/default_ja.handlebars
+6
-5
@@ -6421,7 +6421,7 @@
6421
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
6422
if (downloadFile.tag == 'viewer') {
6423
// View the file in the dialog box
6424
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
6424
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
6425
QH('d4editorarea', EscapeHtml(downloadFile.data));
6426
QS('dialog').width = 'auto';
6427
QS('dialog').bottom = '80px';
@@ -7051,7 +7051,7 @@
7051
if (xxdialogMode) return false;
7052
var x = '';
7053
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "通知音。" + '</label></div>';
7054
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
7054
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
7055
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "デバイス接続。" + '</label></div>';
7056
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "デバイスの切断。" + '</label></div>';
7057
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel&reg; AMTデスクトップおよびシリアルイベント。" + '</label></div>';
@@ -9411,9 +9411,10 @@
9411
xxdialogFunc = f;
9412
xxdialogButtons = b;
9413
xxdialogTag = tag;
9414
- QS('dialog').width = null; // Reset dialog size
9415
- QS('dialog').left = null;
9416
- QS('dialog').right = null;
9414
+
9415
+ // Reset dialog size
9416
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
9417
+
9418
QE('idx_dlgOkButton', true);
9419
QV('idx_dlgOkButton', b & 1);
9420
QV('idx_dlgCancelButton', b & 2);
views/translations/default_pt.handlebars
+6
-5
@@ -6421,7 +6421,7 @@
6421
if ((ReadInt(data, 0) & 1) != 0) { // Check end flag
6422
if (downloadFile.tag == 'viewer') {
6423
// View the file in the dialog box
6424
- setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack);
6424
+ setDialogMode(4, EscapeHtml(downloadFile.file), 3, p13editSaveBack, null, downloadFile.file);
6425
QH('d4editorarea', EscapeHtml(downloadFile.data));
6426
QS('dialog').width = 'auto';
6427
QS('dialog').bottom = '80px';
@@ -7051,7 +7051,7 @@
7051
if (xxdialogMode) return false;
7052
var x = '';
7053
x += '<div><label><input id=p2notifyPlayNotifySound type=checkbox />' + "Som de notificação." + '</label></div>';
7054
- x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Group Name" + '</label></div>';
7054
+ x += '<div><label><input id=p2notifyGroupName type=checkbox />' + "Display Device Group Name" + '</label></div>';
7055
x += '<div><label><input id=p2notifyIntelDeviceConnect type=checkbox />' + "Conexões de dispositivos." + '</label></div>';
7056
x += '<div><label><input id=p2notifyIntelDeviceDisconnect type=checkbox />' + "Desconexões de dispositivos." + '</label></div>';
7057
x += '<div><label><input id=p2notifyIntelAmtKvmActions type=checkbox />' + "Intel® Área de trabalho AMT e eventos seriais." + '</label></div>';
@@ -9411,9 +9411,10 @@
9411
xxdialogFunc = f;
9412
xxdialogButtons = b;
9413
xxdialogTag = tag;
9414
- QS('dialog').width = null; // Reset dialog size
9415
- QS('dialog').left = null;
9416
- QS('dialog').right = null;
9414
+
9415
+ // Reset dialog size
9416
+ QS('dialog').width = QS('dialog').top = QS('dialog').left = QS('dialog').right = QS('dialog').bottom = null;
9417
+
9418
QE('idx_dlgOkButton', true);
9419
QV('idx_dlgOkButton', b & 1);
9420
QV('idx_dlgCancelButton', b & 2);