aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/institute
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-11-11 13:56:06 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-11-11 13:56:06 +0000
commit6bc51a71aa09d4f3e7797631517707851ce19acf (patch)
tree6757e5da72274ecfba34056e0cc1dfe26188912f /app/controllers/institute
parentbdcccdeed469faf21bdc9f85ca2caddb32825a9f (diff)
set default icon size to 20, fixes #2801
Closes #2801 Merge request studip/studip!1908
Diffstat (limited to 'app/controllers/institute')
-rw-r--r--app/controllers/institute/files.php9
-rw-r--r--app/controllers/institute/members.php5
2 files changed, 6 insertions, 8 deletions
diff --git a/app/controllers/institute/files.php b/app/controllers/institute/files.php
index afcd0fd..ca46dc8 100644
--- a/app/controllers/institute/files.php
+++ b/app/controllers/institute/files.php
@@ -56,9 +56,8 @@ class Institute_FilesController extends AuthenticatedController
$actions->addLink(
_("Ordner bearbeiten"),
$this->url_for("file/edit_folder/".$this->topFolder->getId()),
- Icon::create("edit", "clickable"),
- ['data-dialog' => 1]
- );
+ Icon::create('edit')
+ )->asDialog();
}
if ($this->topFolder && $this->topFolder->isSubfolderAllowed($GLOBALS['user']->id)) {
@@ -67,14 +66,14 @@ class Institute_FilesController extends AuthenticatedController
URLHelper::getUrl(
'dispatch.php/file/new_folder/' . $this->topFolder ->getId()
),
- Icon::create('folder-empty', 'clickable')
+ Icon::create('folder-empty')
)->asDialog();
}
if ($this->topFolder && $this->topFolder->isWritable($GLOBALS['user']->id)) {
$actions->addLink(
_('Dokument hinzufügen'),
'#',
- Icon::create('add', 'clickable'),
+ Icon::create('add'),
['onclick' => "STUDIP.Files.openAddFilesWindow(); return false;"]
);
}
diff --git a/app/controllers/institute/members.php b/app/controllers/institute/members.php
index d5d991d..d70fdc1 100644
--- a/app/controllers/institute/members.php
+++ b/app/controllers/institute/members.php
@@ -605,9 +605,8 @@ class Institute_MembersController extends AuthenticatedController
$actions->addLink(
_('Stud.IP Rundmail'),
$this->url_for('messages/write', ['inst_id' => $this->institute->id, 'emailrequest' => 1]),
- Icon::create('mail', 'clickable'),
- ['data-dialog' => 'size=50%']
- );
+ Icon::create('mail')
+ )->asDialog('size=50%');
}
$sidebar->addWidget($actions);