This JavaScript bit will be called when the GridFieldsave button is clicked .
(function($) {
$.entwine('ss', function($){
$('#Form_ItemEditForm_action_doSave').entwine({
onclick: function(e) {
console.log('Hello there');
this._super(e);
}
});
});
})(jQuery);
In SilverStripe 3.5, the default identifier for the save button GridFieldis Form_ItemEditForm_action_doSave. When using the module, the BetterButtonsidentifier of the save button Form_ItemEditForm_action_save.
source
share