grdLiveSubscribers.js 843 Bytes

Ext.define('App.controller.grdLiveSubscribers', {
    extend: 'Ext.app.Controller',
    stores: ['LiveSubscribersStore'],
    models: ['LiveSubscribers'],
    views: [
        'grdLiveSubscribers'
    ],
    refs: [
        {
            ref: 'filterPanel',
            selector: 'panel'
        }
    ],
    init: function () {
        ReloadData();
        this.control({
           
            'grdlivesubscribers': {
                edit:this.editfunc
            }
			
        });
    },

	editfunc: function (editor,e) 
	{


	 var record = e.record;
     var recordData = record.getData();

	
   


     var res = UpdatePhone.run(recordData.id, recordData.phone, recordData.phoneszs, recordData.siren);

     var grdLiveSubscribers = Ext.create('App.view.grdLiveSubscribers');
     grdLiveSubscribers.store.load();

	}
	

    });