Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: Made the JS class used for gridfield detail actions apply to .…

…action-detail rather than specific actions.
  • Loading branch information...
commit dc1ccfe2515d982c1aaea9e6bfddfc5c4841d42a 1 parent 1e174b3
Andrew Short ajshort authored
11 javascript/GridField.js
View
@@ -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;
}
2  templates/Includes/GridFieldAddNewButton.ss
View
@@ -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>
2  templates/Includes/GridFieldEditButton.ss
View
@@ -1 +1 @@
-<a class="action edit-link" href="$Link">edit</a>
+<a class="action action-detail edit-link" href="$Link">edit</a>
Please sign in to comment.
Something went wrong with that request. Please try again.