comparison app/controller/grid/MessprogrammKategorie.js @ 1074:ca204e91012f

Enable add-Button only if the user is authorized.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 07 Apr 2016 14:02:51 +0200
parents 78ef9b52510e
children fe5fb960da9d
comparison
equal deleted inserted replaced
1073:e79403c3482e 1074:ca204e91012f
74 */ 74 */
75 cancelEdit: function(editor, context) { 75 cancelEdit: function(editor, context) {
76 if (!context.record.get('id') || 76 if (!context.record.get('id') ||
77 context.record.get('id') === '') { 77 context.record.get('id') === '') {
78 editor.getCmp().store.remove(context.record); 78 editor.getCmp().store.remove(context.record);
79 this.buttonToggle();
79 } 80 }
80 context.grid.getSelectionModel().deselect(context.record); 81 context.grid.getSelectionModel().deselect(context.record);
82 this.buttonToggle(context.grid.getSelectionModel(), context.record);
81 }, 83 },
82 84
83 /** 85 /**
84 * This function adds a new row to add a probenehmer 86 * This function adds a new row to add a probenehmer
85 */ 87 */

http://lada.wald.intevation.org