diff app/view/window/MessprogrammOrt.js @ 890:def27cdd0dfa

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents 097d4edc2f00
children 0a47e8af9006
line wrap: on
line diff
--- a/app/view/window/MessprogrammOrt.js	Thu Jul 23 16:40:28 2015 +0200
+++ b/app/view/window/MessprogrammOrt.js	Thu Jul 23 16:40:50 2015 +0200
@@ -29,6 +29,9 @@
     parentWindow: null,
     record: null,
 
+    /**
+     * This function initialises the Window
+     */
     initComponent: function() {
         var i18n = Lada.getApplication().bundle;
 
@@ -120,6 +123,9 @@
         this.callParent(arguments);
     },
 
+    /**
+     * Initialise the Data of this Window.
+     */
     initData: function() {
         //Only do this if an OrtId exists...
         var ortId = this.record.get('ortId');
@@ -226,10 +232,19 @@
                 .ortWindow = null;
         this.close();
     },
+
+    /**
+     * 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
     }

http://lada.wald.intevation.org