Skip to content
Snippets Groups Projects
Commit 7ae6beef authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

fix fallout from ClipboardWidget cleanup, fixes #1133

Closes #1133

Merge request studip/studip!717
parent dc259559
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ class ClipboardWidget extends SidebarWidget ...@@ -80,7 +80,7 @@ class ClipboardWidget extends SidebarWidget
} }
$this->setId("ClipboardWidget_{$this->clipboard_widget_id}"); $this->setId("ClipboardWidget_{$this->clipboard_widget_id}");
$this->setAdditionalAttribute('data-widget_id', $this->getId()); $this->setAdditionalAttribute('data-widget_id', $this->clipboard_widget_id);
$this->addLayoutCSSClass('clipboard-widget'); $this->addLayoutCSSClass('clipboard-widget');
} }
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
] ]
); ?> ); ?>
<? if (!$readonly): ?>
<ul class="widget-list widget-links invisible"> <ul class="widget-list widget-links invisible">
<? foreach ($elements as $index => $element): ?> <? foreach ($elements as $index => $element): ?>
<li id="<?= htmlReady('link-' . md5($element->url)) ?>" <?= $element->icon ? 'style="' . $element->icon->asCSS() .'"' : '' ?>> <li id="<?= htmlReady('link-' . md5($element->url)) ?>" <?= $element->icon ? 'style="' . $element->icon->asCSS() .'"' : '' ?>>
...@@ -23,6 +22,8 @@ ...@@ -23,6 +22,8 @@
</li> </li>
<? endforeach; ?> <? endforeach; ?>
</ul> </ul>
</div>
<? if (!$readonly): ?>
<form class="default new-clipboard-form" <form class="default new-clipboard-form"
action="<?= URLHelper::getLink( action="<?= URLHelper::getLink(
'dispatch.php/clipboard/add' 'dispatch.php/clipboard/add'
...@@ -49,4 +50,3 @@ ...@@ -49,4 +50,3 @@
</form> </form>
<? endif ?> <? endif ?>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment