Mercurial > lada > lada-client
diff app/controller/Base.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | 446e99cfd425 |
children | 7c0653e8d9f7 |
line wrap: on
line diff
--- a/app/controller/Base.js Fri Oct 31 21:28:31 2014 +0100 +++ b/app/controller/Base.js Fri Oct 31 23:23:32 2014 +0100 @@ -28,7 +28,6 @@ */ models: [], init: function() { - console.log('Initialising the Kommentare controller'); this.addListeners(); }, /** @@ -72,8 +71,8 @@ deleteItem: function(button) { var grid = button.up('grid'); var selection = grid.getView().getSelectionModel().getSelection()[0]; - Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn){ - if(btn === 'yes'){ + Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn) { + if (btn === 'yes') { var store = grid.getStore(); var deleteUrl = selection.getProxy().url + selection.getId(); Ext.Ajax.request({