comparison app/view/window/DeleteProbe.js @ 890:def27cdd0dfa

Added Documentation to Windows
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 16:40:50 +0200
parents 2c686025934a
children 8054232535ba
comparison
equal deleted inserted replaced
889:81fc61545638 890:def27cdd0dfa
21 constrain: true, 21 constrain: true,
22 22
23 record: null, 23 record: null,
24 parentWindow: null, 24 parentWindow: null,
25 25
26 /**
27 * This function initialises the Window
28 */
26 initComponent: function() { 29 initComponent: function() {
27 var i18n = Lada.getApplication().bundle; 30 var i18n = Lada.getApplication().bundle;
28 31
29 // add listeners to change the window appearence when it becomes inactive 32 // add listeners to change the window appearence when it becomes inactive
30 this.on({ 33 this.on({
156 }]; 159 }];
157 this.callParent(arguments); 160 this.callParent(arguments);
158 }, 161 },
159 162
160 /** 163 /**
161 * Init 164 * Inititalise Data
162 */ 165 */
163 initData: function() { 166 initData: function() {
164 var i18n = Lada.getApplication().bundle; 167 var i18n = Lada.getApplication().bundle;
165 me = this; 168 me = this;
166 }, 169 },
174 r += response.data.length; 177 r += response.data.length;
175 r += ' ' + i18n.getMsg('probedeleted'); 178 r += ' ' + i18n.getMsg('probedeleted');
176 return r; 179 return r;
177 }, 180 },
178 181
182 /**
183 * Reload the Application
184 */
179 reload: function(btn) { 185 reload: function(btn) {
180 if (btn === 'yes') { 186 if (btn === 'yes') {
181 location.reload(); 187 location.reload();
182 } 188 }
183 } 189 }

http://lada.wald.intevation.org