MINOR: Made the JS class used for gridfield detail actions apply to .action-detail rather than specific actions.

This commit is contained in:
Andrew Short 2012-05-11 17:35:48 +10:00
parent 1e174b3102
commit dc1ccfe251
3 changed files with 4 additions and 11 deletions

View File

@ -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;
}

View File

@ -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>

View File

@ -1 +1 @@
<a class="action edit-link" href="$Link">edit</a>
<a class="action action-detail edit-link" href="$Link">edit</a>