Browse files

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

…action-detail rather than specific actions.
  • Loading branch information...
1 parent 1e174b3 commit dc1ccfe2515d982c1aaea9e6bfddfc5c4841d42a @ajshort ajshort committed May 11, 2012
View
11 javascript/GridField.js
@@ -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
2 templates/Includes/GridFieldAddNewButton.ss
@@ -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
2 templates/Includes/GridFieldEditButton.ss
@@ -1 +1 @@
-<a class="action edit-link" href="$Link">edit</a>
+<a class="action action-detail edit-link" href="$Link">edit</a>

0 comments on commit dc1ccfe

Please sign in to comment.