Skip to content

Commit a50645e

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 48acca0 + 4fba504 commit a50645e

12 files changed

Lines changed: 24 additions & 98 deletions

File tree

js/src/gis_data_editor.ts

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -146,30 +146,15 @@ function loadGISEditor (value, field, type, inputName) {
146146
}
147147

148148
function openGISEditorInternal () {
149-
// Center the popup
150-
var windowWidth = document.documentElement.clientWidth;
151-
var windowHeight = document.documentElement.clientHeight;
152-
var popupWidth = windowWidth * 0.9;
153-
var popupHeight = windowHeight * 0.9;
154-
var popupOffsetTop = windowHeight / 2 - popupHeight / 2;
155-
var popupOffsetLeft = windowWidth / 2 - popupWidth / 2;
156-
157-
var $gisEditor = $('#gis_editor');
158-
var $background = $('#popup_background');
159-
160-
$gisEditor.css({ 'top': popupOffsetTop, 'left': popupOffsetLeft, 'width': popupWidth, 'height': popupHeight });
161-
$background.css({ 'opacity': '0.7' });
162-
163-
$gisEditor.append(
164-
'<div id="gis_data_editor">' +
165-
'<img class="ajaxIcon" id="loadingMonitorIcon" src="' +
166-
window.themeImagePath + 'ajax_clock_small.gif" alt="">' +
167-
'</div>'
168-
);
169-
170-
// Make it appear
171-
$background.fadeIn('fast');
172-
$gisEditor.fadeIn('fast');
149+
$('#popup_background').fadeIn('fast');
150+
$('#gis_editor')
151+
.append(
152+
'<div id="gis_data_editor">' +
153+
'<img class="ajaxIcon" id="loadingMonitorIcon" src="' +
154+
window.themeImagePath + 'ajax_clock_small.gif" alt="">' +
155+
'</div>'
156+
)
157+
.fadeIn('fast');
173158
}
174159

175160
/**

public/themes/bootstrap/scss/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ select.invalid_value,
800800
top: 0;
801801
left: 0;
802802
background: $black;
803+
opacity: 0.7;
803804
z-index: 1000;
804805
overflow: hidden;
805806
}

public/themes/bootstrap/scss/_gis.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ a.close_gis_editor {
88
#gis_editor {
99
display: none;
1010
position: fixed;
11+
width: 100%;
12+
height: 100%;
13+
top: 0;
14+
left: 0;
15+
padding: 40px;
1116
z-index: 1001;
1217
overflow-y: auto;
1318
overflow-x: hidden;
@@ -19,6 +24,8 @@ a.close_gis_editor {
1924

2025
#gis_data_textarea {
2126
height: 6em;
27+
resize: vertical;
28+
width: 100%;
2229
}
2330

2431
#gis_data_editor {

public/themes/metro/scss/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ input {
10881088
top: 0;
10891089
left: 0;
10901090
background: #000;
1091+
opacity: 0.7;
10911092
z-index: 1000;
10921093
overflow: hidden;
10931094
}

public/themes/metro/scss/_gis.scss

Lines changed: 0 additions & 34 deletions
This file was deleted.

public/themes/metro/scss/theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import "root";
55
@import "common";
66
@import "enum-editor";
7-
@import "gis";
7+
@import "../../bootstrap/scss/gis";
88
@import "navigation";
99
@import "designer";
1010
@import "codemirror";

public/themes/original/scss/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ select.invalid_value,
796796
top: 0;
797797
left: 0;
798798
background: #000;
799+
opacity: 0.7;
799800
z-index: 1000;
800801
overflow: hidden;
801802
}

public/themes/original/scss/theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "../../bootstrap/scss/bootstrap";
33
@import "common";
44
@import "../../pmahomme/scss/enum-editor";
5-
@import "../../pmahomme/scss/gis";
5+
@import "../../bootstrap/scss/gis";
66
@import "navigation";
77
@import "../../pmahomme/scss/designer";
88
@import "../../pmahomme/scss/codemirror";

public/themes/pmahomme/scss/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ input#import_merge {
995995
top: 0;
996996
left: 0;
997997
background: #000;
998+
opacity: 0.7;
998999
z-index: 1000;
9991000
overflow: hidden;
10001001
}

public/themes/pmahomme/scss/_gis.scss

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)