|
53 | 53 | <!-- Pin button with tooltip (positioned absolutely) --> |
54 | 54 | <%= link_to toggle_image_pin_path(image_type: 'image_upload', image_id: image_data.id), |
55 | 55 | class: "pin-button-overlay js-toggle-pin #{is_pinned ? 'amber-text' : 'grey-text'} tooltipped", |
56 | | - remote: true, |
57 | | - method: :post, |
58 | | - data: { |
59 | | - type: 'json', |
| 56 | + data: { |
60 | 57 | position: 'top', |
61 | 58 | tooltip: 'Pin this image to always use it in previews of this page' |
62 | 59 | } do %> |
|
66 | 63 | <!-- Delete button with tooltip (positioned absolutely) --> |
67 | 64 | <%= link_to image_deletion_path(image_data.id), |
68 | 65 | class: 'delete-button-overlay js-remove-image red-text tooltipped', |
69 | | - method: 'delete', |
70 | | - remote: true, |
71 | | - data: { |
| 66 | + data: { |
72 | 67 | confirm: "Are you sure? This can't be undone.", |
73 | 68 | position: 'top', |
74 | | - tooltip: 'Delete this image' |
| 69 | + tooltip: 'Delete this image' |
75 | 70 | } do %> |
76 | 71 | <i class="material-icons">delete</i> |
77 | 72 | <% end %> |
|
102 | 97 | <!-- Pin button with tooltip (positioned absolutely) --> |
103 | 98 | <%= link_to toggle_image_pin_path(image_type: 'basil_commission', image_id: image_data.id), |
104 | 99 | class: "pin-button-overlay js-toggle-pin #{is_pinned ? 'amber-text' : 'grey-text'} tooltipped", |
105 | | - remote: true, |
106 | | - method: :post, |
107 | | - data: { |
108 | | - type: 'json', |
109 | | - position: 'top', |
| 100 | + data: { |
| 101 | + position: 'top', |
110 | 102 | tooltip: 'Pin this image to always use it in previews of this page' |
111 | 103 | } do %> |
112 | 104 | <i class="material-icons">push_pin</i> |
|
115 | 107 | <!-- Delete button with tooltip (positioned absolutely) --> |
116 | 108 | <%= link_to basil_delete_path(image_data), |
117 | 109 | class: 'delete-button-overlay js-remove-image red-text tooltipped', |
118 | | - method: 'delete', |
119 | | - remote: true, |
120 | | - data: { |
| 110 | + data: { |
121 | 111 | confirm: "Are you sure? This can't be undone.", |
122 | 112 | position: 'top', |
123 | 113 | tooltip: 'Delete this image' |
|
0 commit comments