@@ -90,7 +90,9 @@ |
||
| 90 | 90 | $container->js(true, new jsExpression('new ClipboardJS(".copy-button")')); |
| 91 | 91 | |
| 92 | 92 | $container->on('click', '.delete-link', $this->add(['jsCallback', 'postTrigger' => 'link'])->set(function($j, $linkId) { |
| 93 | - if (! $link = FileRemoteAccess::find($linkId)) return; |
|
| 93 | + if (! $link = FileRemoteAccess::find($linkId)) { |
|
| 94 | + return; |
|
| 95 | + } |
|
| 94 | 96 | |
| 95 | 97 | $link->delete(); |
| 96 | 98 | |