Skip to content

Commit b5ec19c

Browse files
committed
[Server] Fix file dialog not opening in admin panel
1 parent 5fad78a commit b5ec19c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

server/admin/srcjs/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ function expandAddAppForm() {
572572

573573
$('#addAppWrapper').css('z-index', 11);
574574
$overlay.data('current', $('#addAppWrapper')).fadeIn(300);
575-
$('#addAppWrapper').html(`<div class="app-box" id="expandedAddAppWrapper">
575+
$('#addAppWrapper').html(`<div class="app-box app-box-expanded" id="expandedAddAppWrapper">
576576
<div id="addAppSpinner" class="app-spinner">
577577
<div class="progress" style="position:relative;top:50%;margin-left:auto;margin-right:auto;width:90%">
578578
<div id="addAppProgress" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
@@ -902,9 +902,14 @@ $appsWrapper.on('drop', '.app-box-draggable', function (e) {
902902
});
903903

904904
$appsWrapper.on('click', '.app-box', function (e) {
905+
const $this = $(this);
906+
if ($this.hasClass('app-box-expanded')) {
907+
return;
908+
}
909+
$this.addClass('app-box-expanded');
910+
905911
e.preventDefault();
906912
e.stopPropagation();
907-
const $this = $(this);
908913
$this.children('.app-data-file-input').hide();
909914
const $target = $(e.target);
910915
if (

server/admin/www/model_update.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/admin/www/model_update.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)