Mercurial > lada > lada-client
diff app/view/window/Messprogramm.js @ 890:def27cdd0dfa
Added Documentation to Windows
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Jul 2015 16:40:50 +0200 |
parents | 6249b731d438 |
children | 8054232535ba |
line wrap: on
line diff
--- a/app/view/window/Messprogramm.js Thu Jul 23 16:40:28 2015 +0200 +++ b/app/view/window/Messprogramm.js Thu Jul 23 16:40:50 2015 +0200 @@ -29,6 +29,9 @@ record: null, + /** + * This function initialises the Window + */ initComponent: function() { var i18n = Lada.getApplication().bundle; var me = this; @@ -190,10 +193,18 @@ // there are no children.... }, + /** + * 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) { this.down('messprogrammform').setMessages(errors, warnings); }, + /** + * Instructs the fields / forms listed in this method to clear their messages. + */ clearMessages: function() { this.down('messprogrammform').clearMessages(); }