Skip to content

Commit

Permalink
fix: remove label from alfred edit icon (can break json)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Apr 11, 2023
1 parent cd5a687 commit f7b8378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Alfred.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@
$elements.append(this.plus("right", config.addRight));
$(el).removeAttr("alfred");
} catch (error) {
console.log($elements);
alert(
"invalid json in alfred - dont forget |noescape filter when working with latte files"
"invalid json in alfred - dont forget |noescape filter when working with latte files. The element that threw this error was logged to the console."
);
}
};
Expand Down
1 change: 0 additions & 1 deletion RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ public function ___getIcons($page, $opt)
if ($page and $page->editable() and $opt->edit) {
$icons[] = (object)[
'icon' => 'edit',
'label' => $page->title,
'tooltip' => "Edit Block #{$page->id}",
'href' => $page->editUrl() . $fields,
'class' => 'pw-modal alfred-edit',
Expand Down

0 comments on commit f7b8378

Please sign in to comment.