AnsweredAssumed Answered

How to catch  "inline-save" click on list view

Question asked by Luca Bartolini on Jun 19, 2015
Latest reply on Jul 31, 2015 by Bal Hana Kim do Amaral Oliveira
When the "inline-save" button is shown and the user push it i want to give an alert

I wrote the code below into directory /custom/modules/Cases/clients/base/view/record/record.js

({

    extendsFrom: 'RecordView',

    initialize: function(options) {
                 _.bindAll(this);

                this._super("initialize", [options]);

                this.events = _.extend({}, this.events, {
                'click [name=inline-save]': 'saveClicked'
               );
    },

    saveClicked:function(evt){

                      console.log('saveClicked');

                      app.alert.show("workflow-status-message", {               
                              level: 'warning',
                              messages: app.lang.get('saveClicked' , 'Cases'),
                               autoClose: false
         });

    }

})

But doesn't work.
Any idea?

i'm using

Sugar 7.5.1 pro

Outcomes