Skip to content

Commit

Permalink
add another webui fix to the 0039-WebUI-Fix-Style-Glitches patch set
Browse files Browse the repository at this point in the history
which will make sure the rooms and functions popup will come up properly
centered rather than using a fixed height.
  • Loading branch information
jens-maus committed Jun 18, 2024
1 parent 355a724 commit 7ab96a7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3672,7 +3672,30 @@
"</tr>" +
"</table>";

@@ -38032,7 +38032,7 @@
@@ -27411,13 +27411,11 @@
case ID_ROOMS:
this.setTitle( translateKey("dialogEditRoom") /*"Raum bearbeiten"*/ );
this.setWidth75Perc();
- this.setHeight(700);
this.setFile( "/pages/msg/popupPropEditor.htm" );
break;
case ID_FUNCTIONS:
this.setTitle( translateKey("dialogEditFunction") /*"Gewerk bearbeiten"*/ );
this.setWidth75Perc();
- this.setHeight(700);
this.setFile( "/pages/msg/popupPropEditor.htm" );
break;
case ID_TRANSFER_PARAMETERS:
@@ -29007,7 +29005,7 @@
var opts = {
evalScripts: true,
onComplete: function(trans) {
- window.setTimeout(centerMessageBox, 200);
+ centerMessageBox();
}
};
var url = "/esp/system.htm?sid=" + SessionId + "&action=buildPropTable&id="+id;
@@ -38032,7 +38030,7 @@
//Defines
BORDER_COLOR = WebUI.getColor("channelBorder"); //Border
HL_COLOR = WebUI.getColor("channelHighlight"); //Highlight
Expand All @@ -3681,7 +3704,7 @@
HL_STROKE = 4;//Background
//-----

@@ -38084,8 +38084,8 @@
@@ -38084,8 +38082,8 @@

if (!form) return;

Expand All @@ -3692,7 +3715,7 @@

switch (form[gd_type])
{
@@ -38181,7 +38181,7 @@
@@ -38181,7 +38179,7 @@
previewPicTimer = window.setTimeout(function () {
HideElement('picDiv');
delete previewPicTimer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27411,13 +27411,11 @@ iseMessageBox.prototype =
case ID_ROOMS:
this.setTitle( translateKey("dialogEditRoom") /*"Raum bearbeiten"*/ );
this.setWidth75Perc();
this.setHeight(700);
this.setFile( "/pages/msg/popupPropEditor.htm" );
break;
case ID_FUNCTIONS:
this.setTitle( translateKey("dialogEditFunction") /*"Gewerk bearbeiten"*/ );
this.setWidth75Perc();
this.setHeight(700);
this.setFile( "/pages/msg/popupPropEditor.htm" );
break;
case ID_TRANSFER_PARAMETERS:
Expand Down Expand Up @@ -29007,7 +29005,7 @@ buildPropTable= function(id) {
var opts = {
evalScripts: true,
onComplete: function(trans) {
window.setTimeout(centerMessageBox, 200);
centerMessageBox();
}
};
var url = "/esp/system.htm?sid=" + SessionId + "&action=buildPropTable&id="+id;
Expand Down

0 comments on commit 7ab96a7

Please sign in to comment.