MINOR: Made the JS class used for gridfield detail actions apply to .action-detail rather than specific actions.
This commit is contained in:
parent
1e174b3102
commit
dc1ccfe251
|
@ -169,15 +169,8 @@
|
|||
}
|
||||
});
|
||||
|
||||
$('fieldset.ss-gridfield .new-link').entwine({
|
||||
onclick: function(e) {
|
||||
this.getGridField().showDetailView($(this).prop('href'));
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$('fieldset.ss-gridfield .edit-link').entwine({
|
||||
onclick: function(e) {
|
||||
$('.ss-gridfield .action-detail').entwine({
|
||||
onclick: function() {
|
||||
this.getGridField().showDetailView($(this).prop('href'));
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<a href="$NewLink" class="action ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link" data-icon="add"><% _t('GridField.AddNew', 'Add New') %></a>
|
||||
<a href="$NewLink" class="action action-detail ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link" data-icon="add"><% _t('GridField.AddNew', 'Add New') %></a>
|
|
@ -1 +1 @@
|
|||
<a class="action edit-link" href="$Link">edit</a>
|
||||
<a class="action action-detail edit-link" href="$Link">edit</a>
|
Loading…
Reference in New Issue