Mercurial > lada > lada-client
comparison app/controller/Base.js @ 499:8b4ec61c5752
Removed most log messages to make the application less verbose.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 06 Nov 2014 11:12:21 +0100 |
parents | 7c0653e8d9f7 |
children |
comparison
equal
deleted
inserted
replaced
498:c1b77fb96b01 | 499:8b4ec61c5752 |
---|---|
44 /** | 44 /** |
45 * Method to save the kommentar in the database. The method is called when | 45 * Method to save the kommentar in the database. The method is called when |
46 * the user clicks on the "Save" button | 46 * the user clicks on the "Save" button |
47 */ | 47 */ |
48 saveItem: function(button) { | 48 saveItem: function(button) { |
49 console.log('Saving ...'); | |
50 var form = button.up('window').down('form'); | 49 var form = button.up('window').down('form'); |
51 form.commit(); | 50 form.commit(); |
52 }, | 51 }, |
53 /** | 52 /** |
54 * Method to open a window to enter the values for a new kommentar. | 53 * Method to open a window to enter the values for a new kommentar. |
85 method: 'DELETE', | 84 method: 'DELETE', |
86 success: function() { | 85 success: function() { |
87 store.reload(); | 86 store.reload(); |
88 } | 87 } |
89 }); | 88 }); |
90 console.log('Deleting ' + selection); | |
91 } | |
92 else { | |
93 console.log('Cancel Deleting ' + selection); | |
94 } | 89 } |
95 }); | 90 }); |
96 }, | 91 }, |
97 /** | 92 /** |
98 * Method to trigger the action after successfull save (create). | 93 * Method to trigger the action after successfull save (create). |