Mercurial > lada > lada-client
diff app/view/window/OrtCreate.js @ 890:def27cdd0dfa
Added Documentation to Windows
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Jul 2015 16:40:50 +0200 |
parents | 7267bae1d43f |
children |
line wrap: on
line diff
--- a/app/view/window/OrtCreate.js Thu Jul 23 16:40:28 2015 +0200 +++ b/app/view/window/OrtCreate.js Thu Jul 23 16:40:50 2015 +0200 @@ -28,6 +28,9 @@ record: null, grid: null, + /** + * This function initialises the Window + */ initComponent: function() { this.title = 'Ort'; this.buttons = [{ @@ -87,6 +90,9 @@ this.callParent(arguments); }, + /** + * Initialise the Data of this Window + */ initData: function() { var ort = Ext.create('Lada.model.Ort', { probeId: this.record.get('id') @@ -122,10 +128,18 @@ } }, + /** + * Instructs the fields / forms listed in this method to set a message. + * @param errors These Errors shall be shown + * @param warnings These Warning shall be shown + */ setMessages: function(errors, warnings) { //todo this is a stub }, + /** + * Instructs the fields / forms listed in this method to clear their messages. + */ clearMessages: function() { //todo this is a stub }