Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Save Button In ModelAdmin

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 207 Views
  • anhtai063
    Community Member
    1 Post

    Save Button In ModelAdmin Link to this post

    Hi all, I have one problem about the save button. when i click on a item in seccond page, i dont found save button and delete button.
    i use version 2.4.9.
    i has required the MyModelAdmin.js file

    $(document).ready(function() {

    // Hide goBack and goForward buttons on initial load
    if(!this.future || !this.future.length) {
    $('#Form_EditForm_action_goForward, #Form_ResultsForm_action_goForward').hide();
    if(!this.history || this.history.length <= 1) {
    $('#Form_EditForm_action_goBack, #Form_ResultsForm_action_goBack').hide();

    * This will create a url with data from the corresponding SearchForm of the Default DataObject.
    * Don't use live to ensure this is run first on initial load.
    $('#right #Form_ResultsForm tbody td a:not(.deletelink,.downloadlink)').click(function(){
    // Set history on initial load for default managed Model
    if(!this.history || this.history.length < 1) {
    var action = $('#Form_ResultsForm').attr('action').replace('ResultsForm?','SearchForm');
    var form = $('form[action="'+action+'"]');
    if(typeof $(form).attr('action') != 'undefined'){
    var url = $(form).attr('action') + '?' + $(form).serialize();
    $('#ModelAdminPanel').fn('addHistory', url);


    tks all

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.