|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
6 | 6 | -->
|
7 |
| -<div class="action-dropdown-menu-item-edit" if="$view().editable"> |
| 7 | +<div class="action-dropdown-menu-item-edit" if="$view.editable"> |
8 | 8 | <input
|
9 | 9 | class="admin__control-text"
|
10 | 10 | data-bind="
|
11 |
| - value: $view().value, |
12 |
| - hasFocus: isEditing($view().index), |
| 11 | + value: $view.value, |
| 12 | + hasFocus: $parent.isEditing($view.index), |
13 | 13 | autoselect,
|
14 | 14 | attr: {
|
15 |
| - placeholder: $view().label |
| 15 | + placeholder: $view.label |
16 | 16 | },
|
17 | 17 | keyboard: {
|
18 |
| - 13: updateAndSave.bind($data, $view().index), |
19 |
| - 27: endEdit.bind($data, $view().index) |
| 18 | + 13: $parent.updateAndSave.bind($parent, $view.index), |
| 19 | + 27: $parent.endEdit.bind($parent, $view.index) |
20 | 20 | }"
|
21 | 21 | type="text">
|
22 |
| - <button class="action-submit" type="button" attr="title: $t('Save all changes')" click="updateAndSave.bind($data, $view().index)"> |
| 22 | + <button class="action-submit" type="button" attr="title: $t('Save all changes')" click="$parent.updateAndSave.bind($parent, $view.index)"> |
23 | 23 | <span translate="'Submit'"/>
|
24 | 24 | </button>
|
25 | 25 | <div class="action-dropdown-menu-item-actions">
|
26 |
| - <button class="action-delete" type="button" attr="title: $t('Delete bookmark')" click="removeView.bind($data, $view().index)"> |
| 26 | + <button class="action-delete" type="button" attr="title: $t('Delete bookmark')" click="$parent.removeView.bind($parent, $view.index)"> |
27 | 27 | <span translate="'Delete'"/>
|
28 | 28 | </button>
|
29 | 29 | </div>
|
30 | 30 | </div>
|
31 | 31 |
|
32 | 32 | <div class="action-dropdown-menu-item">
|
33 |
| - <a href="" class="action-dropdown-menu-link" translate="$view().label" click="applyView.bind($data, $view().index)" closeCollapsible/> |
| 33 | + <a href="" class="action-dropdown-menu-link" translate="$view.label" click="$parent.applyView.bind($parent, $view.index)" closeCollapsible/> |
34 | 34 |
|
35 |
| - <div class="action-dropdown-menu-item-actions" if="$view().editable"> |
36 |
| - <button class="action-edit" type="button" attr="title: $t('Edit bookmark')" click="editView.bind($data, $view().index)"> |
| 35 | + <div class="action-dropdown-menu-item-actions" if="$view.editable"> |
| 36 | + <button class="action-edit" type="button" attr="title: $t('Edit bookmark')" click="$parent.editView.bind($parent, $view.index)"> |
37 | 37 | <span translate="'Edit'"/>
|
38 | 38 | </button>
|
39 | 39 | </div>
|
|
0 commit comments