mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
remove ujs handling of pinning images so our custom click handling can handle it (doubled up, oops)
This commit is contained in:
parent
d1225c30c5
commit
9b145e5f2b
@ -53,10 +53,7 @@
|
||||
<!-- Pin button with tooltip (positioned absolutely) -->
|
||||
<%= link_to toggle_image_pin_path(image_type: 'image_upload', image_id: image_data.id),
|
||||
class: "pin-button-overlay js-toggle-pin #{is_pinned ? 'amber-text' : 'grey-text'} tooltipped",
|
||||
remote: true,
|
||||
method: :post,
|
||||
data: {
|
||||
type: 'json',
|
||||
data: {
|
||||
position: 'top',
|
||||
tooltip: 'Pin this image to always use it in previews of this page'
|
||||
} do %>
|
||||
@ -66,12 +63,10 @@
|
||||
<!-- Delete button with tooltip (positioned absolutely) -->
|
||||
<%= link_to image_deletion_path(image_data.id),
|
||||
class: 'delete-button-overlay js-remove-image red-text tooltipped',
|
||||
method: 'delete',
|
||||
remote: true,
|
||||
data: {
|
||||
data: {
|
||||
confirm: "Are you sure? This can't be undone.",
|
||||
position: 'top',
|
||||
tooltip: 'Delete this image'
|
||||
tooltip: 'Delete this image'
|
||||
} do %>
|
||||
<i class="material-icons">delete</i>
|
||||
<% end %>
|
||||
@ -102,11 +97,8 @@
|
||||
<!-- Pin button with tooltip (positioned absolutely) -->
|
||||
<%= link_to toggle_image_pin_path(image_type: 'basil_commission', image_id: image_data.id),
|
||||
class: "pin-button-overlay js-toggle-pin #{is_pinned ? 'amber-text' : 'grey-text'} tooltipped",
|
||||
remote: true,
|
||||
method: :post,
|
||||
data: {
|
||||
type: 'json',
|
||||
position: 'top',
|
||||
data: {
|
||||
position: 'top',
|
||||
tooltip: 'Pin this image to always use it in previews of this page'
|
||||
} do %>
|
||||
<i class="material-icons">push_pin</i>
|
||||
@ -115,9 +107,7 @@
|
||||
<!-- Delete button with tooltip (positioned absolutely) -->
|
||||
<%= link_to basil_delete_path(image_data),
|
||||
class: 'delete-button-overlay js-remove-image red-text tooltipped',
|
||||
method: 'delete',
|
||||
remote: true,
|
||||
data: {
|
||||
data: {
|
||||
confirm: "Are you sure? This can't be undone.",
|
||||
position: 'top',
|
||||
tooltip: 'Delete this image'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user